public interface IRegisterable<T>
Block or Item implementing it to be registered via
MalisisRegistry.register(IRegisterable).IForgeRegistryEntry if this is implemented by a class that also implements
IForgeRegistryEntry| Modifier and Type | Method and Description |
|---|---|
default net.minecraft.item.Item |
getItem(net.minecraft.block.Block block)
Gets the item to register the implementing
Block with. |
default net.minecraft.util.ResourceLocation |
getName()
Gets the registry name of this
IRegisterable |
net.minecraft.util.ResourceLocation |
getRegistryName()
Gets the registry name for this
IRegisterable. |
default void |
register()
Registers this
IRegisterable into the MalisisRegistry. |
default T |
setName(java.lang.String name)
Sets the registry name of this
IRegisterable. |
T |
setRegistryName(java.lang.String name)
Sets the registry name for this
IRegisterable. |
T setRegistryName(java.lang.String name)
name - the namenet.minecraft.util.ResourceLocation getRegistryName()
default T setName(java.lang.String name)
IRegisterable.name - the namedefault net.minecraft.util.ResourceLocation getName()
IRegisterabledefault net.minecraft.item.Item getItem(net.minecraft.block.Block block)
Block with.block - the blockdefault void register()
IRegisterable into the MalisisRegistry.