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)
ISubtypeRegistry
useNbtForSubtypes
in interface ISubtypeRegistry
public void registerNbtInterpreter(net.minecraft.item.Item item, ISubtypeRegistry.ISubtypeInterpreter interpreter)
ISubtypeRegistry
registerNbtInterpreter
in interface ISubtypeRegistry
item
- the item that has subtypes.interpreter
- the interpreter for the item.public void registerSubtypeInterpreter(net.minecraft.item.Item item, ISubtypeRegistry.ISubtypeInterpreter interpreter)
ISubtypeRegistry
registerSubtypeInterpreter
in interface ISubtypeRegistry
item
- the item that has subtypes.interpreter
- the interpreter for the item.@Nullable public java.lang.String getSubtypeInfo(net.minecraft.item.ItemStack itemStack)
ISubtypeRegistry
getSubtypeInfo
in interface ISubtypeRegistry
public boolean hasSubtypeInterpreter(net.minecraft.item.ItemStack itemStack)
ISubtypeRegistry
ISubtypeRegistry.ISubtypeInterpreter
has been registered for this item.hasSubtypeInterpreter
in interface ISubtypeRegistry