public class SubtypeRegistration extends java.lang.Object implements ISubtypeRegistration
Constructor and Description |
---|
SubtypeRegistration() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<net.minecraft.fluid.Fluid,IIngredientSubtypeInterpreter<net.minecraftforge.fluids.FluidStack>> |
getFluidInterpreters() |
com.google.common.collect.ImmutableMap<net.minecraft.item.Item,IIngredientSubtypeInterpreter<net.minecraft.item.ItemStack>> |
getItemInterpreters() |
boolean |
hasSubtypeInterpreter(net.minecraftforge.fluids.FluidStack fluidStack)
Returns whether an
IIngredientSubtypeInterpreter has been registered for this fluid. |
boolean |
hasSubtypeInterpreter(net.minecraft.item.ItemStack itemStack)
Returns whether an
IIngredientSubtypeInterpreter has been registered for this item. |
void |
registerSubtypeInterpreter(net.minecraft.fluid.Fluid fluid,
IIngredientSubtypeInterpreter<net.minecraftforge.fluids.FluidStack> interpreter)
Add an interpreter to compare fluid subtypes.
|
void |
registerSubtypeInterpreter(net.minecraft.item.Item item,
IIngredientSubtypeInterpreter<net.minecraft.item.ItemStack> interpreter)
Add an interpreter to compare item subtypes.
|
void |
registerSubtypeInterpreter(net.minecraft.item.Item item,
ISubtypeInterpreter interpreter)
Add an interpreter to compare item subtypes.
|
void |
useNbtForSubtypes(net.minecraft.fluid.Fluid... fluids)
Tells JEI to treat all NBT as relevant to these fluids' 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)
ISubtypeRegistration
useNbtForSubtypes
in interface ISubtypeRegistration
public void useNbtForSubtypes(net.minecraft.fluid.Fluid... fluids)
ISubtypeRegistration
useNbtForSubtypes
in interface ISubtypeRegistration
public void registerSubtypeInterpreter(net.minecraft.item.Item item, ISubtypeInterpreter interpreter)
ISubtypeRegistration
registerSubtypeInterpreter
in interface ISubtypeRegistration
item
- the item that has subtypes.interpreter
- the interpreter for the item.public void registerSubtypeInterpreter(net.minecraft.item.Item item, IIngredientSubtypeInterpreter<net.minecraft.item.ItemStack> interpreter)
ISubtypeRegistration
registerSubtypeInterpreter
in interface ISubtypeRegistration
item
- the item that has subtypes.interpreter
- the interpreter for the item.public void registerSubtypeInterpreter(net.minecraft.fluid.Fluid fluid, IIngredientSubtypeInterpreter<net.minecraftforge.fluids.FluidStack> interpreter)
ISubtypeRegistration
registerSubtypeInterpreter
in interface ISubtypeRegistration
fluid
- the fluid that has subtypes.interpreter
- the interpreter for the fluid.public boolean hasSubtypeInterpreter(net.minecraft.item.ItemStack itemStack)
ISubtypeRegistration
IIngredientSubtypeInterpreter
has been registered for this item.hasSubtypeInterpreter
in interface ISubtypeRegistration
public boolean hasSubtypeInterpreter(net.minecraftforge.fluids.FluidStack fluidStack)
ISubtypeRegistration
IIngredientSubtypeInterpreter
has been registered for this fluid.hasSubtypeInterpreter
in interface ISubtypeRegistration
public com.google.common.collect.ImmutableMap<net.minecraft.item.Item,IIngredientSubtypeInterpreter<net.minecraft.item.ItemStack>> getItemInterpreters()
public com.google.common.collect.ImmutableMap<net.minecraft.fluid.Fluid,IIngredientSubtypeInterpreter<net.minecraftforge.fluids.FluidStack>> getFluidInterpreters()