public abstract class VillagerConfig extends ExtendedConfig<VillagerConfig>
ExtendedConfigIInitListener.StepconfigProperties| Constructor and Description |
|---|
VillagerConfig(int defaultId,
java.lang.String namedId,
java.lang.String comment,
java.lang.Class<? extends ConfigurableVillager> element)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurableType |
getHolderType()
Return the configurable type for which this config holds data
|
int |
getId() |
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.
|
void |
setId(int id)
Set the ID.
|
compareTo, downCast, getComment, getConfigPropertyPrefix, getElement, getFullUnlocalizedName, getNamedId, getSubInstance, getSubUniqueName, initSubInstance, isDisableable, isHardDisabled, onInit, onRegistered, save, setEnabled, showDoubleInitErrorpublic VillagerConfig(int defaultId,
java.lang.String namedId,
java.lang.String comment,
java.lang.Class<? extends ConfigurableVillager> 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<VillagerConfig>public ConfigurableType getHolderType()
ExtendedConfiggetHolderType in class ExtendedConfig<VillagerConfig>public int getId()
public void setId(int id)
id - The new ID.public boolean isEnabled()
ExtendedConfigisEnabled in class ExtendedConfig<VillagerConfig>