public class SubtypeRegistry extends java.lang.Object implements ISubtypeRegistry
ISubtypeRegistry.ISubtypeInterpreter| Constructor and Description |
|---|
SubtypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSubtypeInfo(net.minecraft.item.ItemStack itemStack)
Get the data from an itemStack that is relevant to comparing and telling subtypes apart.
|
boolean |
hasSubtypeInterpreter(net.minecraft.item.ItemStack itemStack)
Returns whether an
ISubtypeRegistry.ISubtypeInterpreter has been registered for this item. |
void |
registerNbtInterpreter(net.minecraft.item.Item item,
ISubtypeRegistry.ISubtypeInterpreter interpreter)
Add an interpreter to compare item subtypes.
|
void |
registerSubtypeInterpreter(net.minecraft.item.Item item,
ISubtypeRegistry.ISubtypeInterpreter interpreter)
Add an interpreter to compare item subtypes.
|
void |
useNbtForSubtypes(net.minecraft.item.Item... items)
Tells JEI to treat all NBT as relevant to these items' subtypes.
|
public void useNbtForSubtypes(net.minecraft.item.Item... items)
ISubtypeRegistryuseNbtForSubtypes in interface ISubtypeRegistrypublic void registerNbtInterpreter(net.minecraft.item.Item item,
ISubtypeRegistry.ISubtypeInterpreter interpreter)
ISubtypeRegistryregisterNbtInterpreter in interface ISubtypeRegistryitem - the item that has subtypes.interpreter - the interpreter for the item.public void registerSubtypeInterpreter(net.minecraft.item.Item item,
ISubtypeRegistry.ISubtypeInterpreter interpreter)
ISubtypeRegistryregisterSubtypeInterpreter in interface ISubtypeRegistryitem - the item that has subtypes.interpreter - the interpreter for the item.@Nullable public java.lang.String getSubtypeInfo(net.minecraft.item.ItemStack itemStack)
ISubtypeRegistrygetSubtypeInfo in interface ISubtypeRegistrypublic boolean hasSubtypeInterpreter(net.minecraft.item.ItemStack itemStack)
ISubtypeRegistryISubtypeRegistry.ISubtypeInterpreter has been registered for this item.hasSubtypeInterpreter in interface ISubtypeRegistry