public abstract class ItemConfig extends ExtendedConfig<ItemConfig>
ExtendedConfigIInitListener.StepconfigProperties| Constructor and Description |
|---|
ItemConfig(boolean enabled,
java.lang.String namedId,
java.lang.String comment,
java.lang.Class<? extends net.minecraft.item.Item> element)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
blendAlpha()
If this item should be rendered with a blended alpha channel, thereby using the AlphaRenderItem.
|
java.lang.String |
getFullUnlocalizedName()
Get the full unlocalized name for this configurable.
|
ConfigurableType |
getHolderType()
Return the configurable type for which this config holds data
|
net.minecraft.item.Item |
getItemInstance()
Get the casted instance of the item.
|
java.lang.String |
getOreDictionaryId()
If the IConfigurable is registered in the OreDictionary, use this name to identify it.
|
java.lang.String |
getUnlocalizedName()
Get the unlocalized name (must be unique!) for this configurable.
|
protected IConfigurable |
initSubInstance()
This method will by default just return null.
|
void |
onRegistered()
Overridable method that is immediately called after the element of this config is registered.
|
compareTo, downCast, getComment, getConfigPropertyPrefix, getElement, getNamedId, getSubInstance, getSubUniqueName, isDisableable, isEnabled, isHardDisabled, onInit, save, setEnabled, showDoubleInitErrorpublic ItemConfig(boolean enabled,
java.lang.String namedId,
java.lang.String comment,
java.lang.Class<? extends net.minecraft.item.Item> element)
enabled - If this should is enabled.OnamedId - 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.protected IConfigurable initSubInstance()
ExtendedConfiginitSubInstance in class ExtendedConfig<ItemConfig>public java.lang.String getUnlocalizedName()
ExtendedConfiggetUnlocalizedName in class ExtendedConfig<ItemConfig>public java.lang.String getFullUnlocalizedName()
ExtendedConfiggetFullUnlocalizedName in class ExtendedConfig<ItemConfig>public ConfigurableType getHolderType()
ExtendedConfiggetHolderType in class ExtendedConfig<ItemConfig>public java.lang.String getOreDictionaryId()
public boolean blendAlpha()
public net.minecraft.item.Item getItemInstance()
public void onRegistered()
ExtendedConfigonRegistered in class ExtendedConfig<ItemConfig>