diff --git a/src/main/java/com/gmail/nossr50/config/ConfigManager.java b/src/main/java/com/gmail/nossr50/config/ConfigManager.java index 42b4e3c91..f8b57fcdd 100644 --- a/src/main/java/com/gmail/nossr50/config/ConfigManager.java +++ b/src/main/java/com/gmail/nossr50/config/ConfigManager.java @@ -15,6 +15,7 @@ import com.gmail.nossr50.config.hocon.hardcore.ConfigHardcore; import com.gmail.nossr50.config.hocon.items.ConfigItems; import com.gmail.nossr50.config.hocon.language.ConfigLanguage; import com.gmail.nossr50.config.hocon.metrics.ConfigMetrics; +import com.gmail.nossr50.config.hocon.mobs.ConfigMobs; import com.gmail.nossr50.config.hocon.motd.ConfigMOTD; import com.gmail.nossr50.config.hocon.notifications.ConfigNotifications; import com.gmail.nossr50.config.hocon.particles.ConfigParticles; @@ -103,6 +104,7 @@ public final class ConfigManager { private SerializedConfigLoader configNotifications; private SerializedConfigLoader configSuperAbilities; private SerializedConfigLoader configAdmin; + private SerializedConfigLoader configMobs; //Data private SerializedConfigLoader partyData; @@ -164,6 +166,7 @@ public final class ConfigManager { configNotifications = new SerializedConfigLoader<>(ConfigNotifications.class, "chat_and_hud_notifications.conf", null); configSuperAbilities = new SerializedConfigLoader<>(ConfigSuperAbilities.class, "skill_super_abilities.conf", null); configAdmin = new SerializedConfigLoader<>(ConfigAdmin.class, "admin.conf", null); + configMobs = new SerializedConfigLoader<>(ConfigMobs.class, "creatures.conf", null); //Serialized Data partyData = new SerializedConfigLoader<>(ConfigPartyData.class, "partydata.conf", null); @@ -431,4 +434,12 @@ public final class ConfigManager { public HashMap getPartyFeatureUnlocks() { return partyFeatureUnlocks; } + + public ConfigAdmin getConfigAdmin() { + return configAdmin.getConfig(); + } + + public ConfigMobs getConfigMobs() { + return configMobs.getConfig(); + } } diff --git a/src/main/java/com/gmail/nossr50/config/hocon/mobs/ConfigMobs.java b/src/main/java/com/gmail/nossr50/config/hocon/mobs/ConfigMobs.java new file mode 100644 index 000000000..c6e4a2597 --- /dev/null +++ b/src/main/java/com/gmail/nossr50/config/hocon/mobs/ConfigMobs.java @@ -0,0 +1,15 @@ +package com.gmail.nossr50.config.hocon.mobs; + +import ninja.leaping.configurate.objectmapping.Setting; +import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; + +@ConfigSerializable +public class ConfigMobs { + + @Setting(value = "Combat", comment = "Settings related to combat with Mobs (Monsters / Animals / Etc)") + private ConfigSectionCombat combat = new ConfigSectionCombat(); + + public ConfigSectionCombat getCombat() { + return combat; + } +} \ No newline at end of file diff --git a/src/main/java/com/gmail/nossr50/config/hocon/mobs/ConfigSectionCombat.java b/src/main/java/com/gmail/nossr50/config/hocon/mobs/ConfigSectionCombat.java new file mode 100644 index 000000000..e5f31b37d --- /dev/null +++ b/src/main/java/com/gmail/nossr50/config/hocon/mobs/ConfigSectionCombat.java @@ -0,0 +1,6 @@ +package com.gmail.nossr50.config.hocon.mobs; + +@ConfigSerializable +public class ConfigSectionCombat { + +} \ No newline at end of file diff --git a/src/main/java/com/gmail/nossr50/config/hocon/mobs/ConfigSectionHealthBars.java b/src/main/java/com/gmail/nossr50/config/hocon/mobs/ConfigSectionHealthBars.java new file mode 100644 index 000000000..7a6cbb414 --- /dev/null +++ b/src/main/java/com/gmail/nossr50/config/hocon/mobs/ConfigSectionHealthBars.java @@ -0,0 +1,6 @@ +package com.gmail.nossr50.config.hocon.mobs; + +@ConfigSerializable +public class ConfigSectionHealthBars { + +} \ No newline at end of file