public abstract class BlockConfig extends ExtendedConfig<BlockConfig>
ExtendedConfigIInitListener.StepconfigProperties| Constructor and Description |
|---|
BlockConfig(boolean enabled,
java.lang.String namedId,
java.lang.String comment,
java.lang.Class<? extends net.minecraft.block.Block> element)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.block.Block |
getBlockInstance()
Get the casted instance of the block.
|
java.lang.String |
getFullUnlocalizedName()
Get the full unlocalized name for this configurable.
|
ConfigurableType |
getHolderType()
Return the configurable type for which this config holds data
|
java.lang.Class<? extends net.minecraft.item.ItemBlock> |
getItemBlockClass()
If hasSubTypes() returns true this method can be overwritten to define another ItemBlock class
|
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!)
|
boolean |
isMultipartEnabled()
If this block should enable Forge Multiparts and BC facades.
|
compareTo, downCast, getComment, getConfigPropertyPrefix, getElement, getNamedId, getSubInstance, getSubUniqueName, initSubInstance, isDisableable, isEnabled, isHardDisabled, onInit, onRegistered, save, setEnabled, showDoubleInitErrorpublic BlockConfig(boolean enabled,
java.lang.String namedId,
java.lang.String comment,
java.lang.Class<? extends net.minecraft.block.Block> element)
enabled - If this should is enabled.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<BlockConfig>public java.lang.String getFullUnlocalizedName()
ExtendedConfiggetFullUnlocalizedName in class ExtendedConfig<BlockConfig>public ConfigurableType getHolderType()
ExtendedConfiggetHolderType in class ExtendedConfig<BlockConfig>public java.lang.Class<? extends net.minecraft.item.ItemBlock> getItemBlockClass()
public java.lang.String getOreDictionaryId()
public boolean isMultipartEnabled()
public net.minecraft.block.Block getBlockInstance()