public abstract class ItemBucketConfig extends ItemConfig
ItemConfig.ExtendedConfig,
ItemConfigIInitListener.StepconfigProperties| Constructor and Description |
|---|
ItemBucketConfig(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 |
|---|---|
abstract net.minecraft.block.Block |
getFluidBlockInstance()
Get the
ConfigurableBlockFluidClassic this bucket can place / pick up. |
abstract net.minecraftforge.fluids.Fluid |
getFluidInstance()
Get the
ConfigurableFluid this bucket can contain. |
java.lang.String |
getUnlocalizedName()
Get the unlocalized name (must be unique!)
|
boolean |
isDisableable()
Override this method to prevent configs to be disabled from the config file.
|
void |
onRegistered()
Overridable method that is immediately called after the element of this config is registered.
|
blendAlpha, getFullUnlocalizedName, getHolderType, getItemInstance, getOreDictionaryId, initSubInstancecompareTo, downCast, getComment, getConfigPropertyPrefix, getElement, getNamedId, getSubInstance, getSubUniqueName, isEnabled, isHardDisabled, onInit, save, setEnabled, showDoubleInitErrorpublic ItemBucketConfig(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.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 ItemConfigpublic abstract net.minecraftforge.fluids.Fluid getFluidInstance()
ConfigurableFluid this bucket can contain.public abstract net.minecraft.block.Block getFluidBlockInstance()
ConfigurableBlockFluidClassic this bucket can place / pick up.public void onRegistered()
ExtendedConfigonRegistered in class ItemConfigpublic boolean isDisableable()
ExtendedConfigisDisableable in class ExtendedConfig<ItemConfig>