public abstract class EnchantmentConfig extends ExtendedConfig<EnchantmentConfig>
ExtendedConfigIInitListener.Step| Modifier and Type | Field and Description |
|---|---|
int |
ID
The ID for the configurable.
|
configProperties| Constructor and Description |
|---|
EnchantmentConfig(int defaultId,
java.lang.String namedId,
java.lang.String comment,
java.lang.Class<? extends net.minecraft.enchantment.Enchantment> element)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurableType |
getHolderType()
Return the configurable type for which this config holds data
|
java.lang.String |
getUnlocalizedName()
Get the unlocalized name (must be unique!) for this configurable.
|
boolean |
isEnabled()
Checks if the eConfig refers to a target that should be enabled.
|
compareTo, downCast, getComment, getConfigPropertyPrefix, getElement, getFullUnlocalizedName, getNamedId, getSubInstance, getSubUniqueName, initSubInstance, isDisableable, isHardDisabled, onInit, onRegistered, save, setEnabled, showDoubleInitErrorpublic EnchantmentConfig(int defaultId,
java.lang.String namedId,
java.lang.String comment,
java.lang.Class<? extends net.minecraft.enchantment.Enchantment> element)
defaultId - The default ID for the configurable.namedId - The unique name ID for the configurable.comment - The comment to add in the config file for this configurable.element - The class of this configurable.public java.lang.String getUnlocalizedName()
ExtendedConfiggetUnlocalizedName in class ExtendedConfig<EnchantmentConfig>public boolean isEnabled()
ExtendedConfigisEnabled in class ExtendedConfig<EnchantmentConfig>public ConfigurableType getHolderType()
ExtendedConfiggetHolderType in class ExtendedConfig<EnchantmentConfig>