new mob config "creatures.conf"

This commit is contained in:
nossr50 2019-03-19 08:56:48 -07:00
parent bd0a4c75c0
commit 7cd8099d3c
4 changed files with 38 additions and 0 deletions

View File

@ -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.items.ConfigItems;
import com.gmail.nossr50.config.hocon.language.ConfigLanguage; import com.gmail.nossr50.config.hocon.language.ConfigLanguage;
import com.gmail.nossr50.config.hocon.metrics.ConfigMetrics; 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.motd.ConfigMOTD;
import com.gmail.nossr50.config.hocon.notifications.ConfigNotifications; import com.gmail.nossr50.config.hocon.notifications.ConfigNotifications;
import com.gmail.nossr50.config.hocon.particles.ConfigParticles; import com.gmail.nossr50.config.hocon.particles.ConfigParticles;
@ -103,6 +104,7 @@ public final class ConfigManager {
private SerializedConfigLoader<ConfigNotifications> configNotifications; private SerializedConfigLoader<ConfigNotifications> configNotifications;
private SerializedConfigLoader<ConfigSuperAbilities> configSuperAbilities; private SerializedConfigLoader<ConfigSuperAbilities> configSuperAbilities;
private SerializedConfigLoader<ConfigAdmin> configAdmin; private SerializedConfigLoader<ConfigAdmin> configAdmin;
private SerializedConfigLoader<ConfigMobs> configMobs;
//Data //Data
private SerializedConfigLoader<ConfigPartyData> partyData; private SerializedConfigLoader<ConfigPartyData> partyData;
@ -164,6 +166,7 @@ public final class ConfigManager {
configNotifications = new SerializedConfigLoader<>(ConfigNotifications.class, "chat_and_hud_notifications.conf", null); configNotifications = new SerializedConfigLoader<>(ConfigNotifications.class, "chat_and_hud_notifications.conf", null);
configSuperAbilities = new SerializedConfigLoader<>(ConfigSuperAbilities.class, "skill_super_abilities.conf", null); configSuperAbilities = new SerializedConfigLoader<>(ConfigSuperAbilities.class, "skill_super_abilities.conf", null);
configAdmin = new SerializedConfigLoader<>(ConfigAdmin.class, "admin.conf", null); configAdmin = new SerializedConfigLoader<>(ConfigAdmin.class, "admin.conf", null);
configMobs = new SerializedConfigLoader<>(ConfigMobs.class, "creatures.conf", null);
//Serialized Data //Serialized Data
partyData = new SerializedConfigLoader<>(ConfigPartyData.class, "partydata.conf", null); partyData = new SerializedConfigLoader<>(ConfigPartyData.class, "partydata.conf", null);
@ -431,4 +434,12 @@ public final class ConfigManager {
public HashMap<String, Integer> getPartyFeatureUnlocks() { public HashMap<String, Integer> getPartyFeatureUnlocks() {
return partyFeatureUnlocks; return partyFeatureUnlocks;
} }
public ConfigAdmin getConfigAdmin() {
return configAdmin.getConfig();
}
public ConfigMobs getConfigMobs() {
return configMobs.getConfig();
}
} }

View File

@ -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;
}
}

View File

@ -0,0 +1,6 @@
package com.gmail.nossr50.config.hocon.mobs;
@ConfigSerializable
public class ConfigSectionCombat {
}

View File

@ -0,0 +1,6 @@
package com.gmail.nossr50.config.hocon.mobs;
@ConfigSerializable
public class ConfigSectionHealthBars {
}