From 4433ea7118a0f86192501e88aaec82e339e0ce88 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 9 Apr 2019 17:48:51 -0700 Subject: [PATCH] hocon exp config pt 1 --- .../hocon/experience/ConfigExperience.java | 10 ++++++ .../ConfigExperienceAcrobatics.java | 21 +++++++++++ .../experience/HerbalismExperienceConfig.java | 36 ------------------- .../experience/MiningExperienceConfig.java | 36 ------------------- .../WoodcuttingExperienceConfig.java | 36 ------------------- 5 files changed, 31 insertions(+), 108 deletions(-) create mode 100644 src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperience.java create mode 100644 src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAcrobatics.java delete mode 100644 src/main/java/com/gmail/nossr50/config/hocon/experience/HerbalismExperienceConfig.java delete mode 100644 src/main/java/com/gmail/nossr50/config/hocon/experience/MiningExperienceConfig.java delete mode 100644 src/main/java/com/gmail/nossr50/config/hocon/experience/WoodcuttingExperienceConfig.java diff --git a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperience.java b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperience.java new file mode 100644 index 000000000..052986d47 --- /dev/null +++ b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperience.java @@ -0,0 +1,10 @@ +package com.gmail.nossr50.config.hocon.experience; + +import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; + +import java.util.ArrayList; + +@ConfigSerializable +public class ConfigExperience { + ArrayList +} \ No newline at end of file diff --git a/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAcrobatics.java b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAcrobatics.java new file mode 100644 index 000000000..fd4321553 --- /dev/null +++ b/src/main/java/com/gmail/nossr50/config/hocon/experience/ConfigExperienceAcrobatics.java @@ -0,0 +1,21 @@ +package com.gmail.nossr50.config.hocon.experience; + +import ninja.leaping.configurate.objectmapping.Setting; +import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; + +import java.util.HashMap; + +@ConfigSerializable +public class ConfigExperienceAcrobatics { + + private final static HashMap ACROBATICS_DEFAULT_XP_MAP; + + static { + ACROBATICS_DEFAULT_XP_MAP = new HashMap<>(); + + } + + @Setting(value = "Acrobatics-Experience-Values", comment = "Experience values for Acrobatics.") + HashMap acrobaticsXPMap; + +} \ No newline at end of file diff --git a/src/main/java/com/gmail/nossr50/config/hocon/experience/HerbalismExperienceConfig.java b/src/main/java/com/gmail/nossr50/config/hocon/experience/HerbalismExperienceConfig.java deleted file mode 100644 index b50b7428d..000000000 --- a/src/main/java/com/gmail/nossr50/config/hocon/experience/HerbalismExperienceConfig.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.gmail.nossr50.config.hocon.experience; - -import com.gmail.nossr50.config.ConfigConstants; -import com.gmail.nossr50.config.ConfigValidated; -import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; - -import java.util.List; - -@ConfigSerializable -public class HerbalismExperienceConfig extends ConfigValidated { - - public HerbalismExperienceConfig() - { - super("xp_herbalism", ConfigConstants.getDataFolder(), ConfigConstants.RELATIVE_PATH_XP_DIR, true, true, true, false); - } - - @Override - public void unload() { - - } - - @Override - public List validateKeys() { - return null; - } - - /** - * The version of this config - * - * @return - */ - @Override - public double getConfigVersion() { - return 1; - } -} diff --git a/src/main/java/com/gmail/nossr50/config/hocon/experience/MiningExperienceConfig.java b/src/main/java/com/gmail/nossr50/config/hocon/experience/MiningExperienceConfig.java deleted file mode 100644 index 0a038c816..000000000 --- a/src/main/java/com/gmail/nossr50/config/hocon/experience/MiningExperienceConfig.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.gmail.nossr50.config.hocon.experience; - -import com.gmail.nossr50.config.ConfigConstants; -import com.gmail.nossr50.config.ConfigValidated; -import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; - -import java.util.List; - -@ConfigSerializable -public class MiningExperienceConfig extends ConfigValidated { - - public MiningExperienceConfig() - { - super("xp_mining", ConfigConstants.getDataFolder(), ConfigConstants.RELATIVE_PATH_XP_DIR, true, true, true, false); - } - - @Override - public void unload() { - - } - - @Override - public List validateKeys() { - return null; - } - - /** - * The version of this config - * - * @return - */ - @Override - public double getConfigVersion() { - return 1; - } -} diff --git a/src/main/java/com/gmail/nossr50/config/hocon/experience/WoodcuttingExperienceConfig.java b/src/main/java/com/gmail/nossr50/config/hocon/experience/WoodcuttingExperienceConfig.java deleted file mode 100644 index 8471385db..000000000 --- a/src/main/java/com/gmail/nossr50/config/hocon/experience/WoodcuttingExperienceConfig.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.gmail.nossr50.config.hocon.experience; - -import com.gmail.nossr50.config.ConfigConstants; -import com.gmail.nossr50.config.ConfigValidated; -import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; - -import java.util.List; - -@ConfigSerializable -public class WoodcuttingExperienceConfig extends ConfigValidated { - - public WoodcuttingExperienceConfig() - { - super("xp_woodcutting", ConfigConstants.getDataFolder(), ConfigConstants.RELATIVE_PATH_XP_DIR, true, true, true, false); - } - - @Override - public void unload() { - - } - - @Override - public List validateKeys() { - return null; - } - - /** - * The version of this config - * - * @return - */ - @Override - public double getConfigVersion() { - return 1; - } -}