public class PotionSubtypeInterpreter extends java.lang.Object implements IIngredientSubtypeInterpreter<net.minecraft.item.ItemStack>
Modifier and Type | Field and Description |
---|---|
static PotionSubtypeInterpreter |
INSTANCE |
NONE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apply(net.minecraft.item.ItemStack itemStack,
UidContext context)
Get the data from an ingredient that is relevant to telling subtypes apart in the given context.
|
public static final PotionSubtypeInterpreter INSTANCE
public java.lang.String apply(net.minecraft.item.ItemStack itemStack, UidContext context)
IIngredientSubtypeInterpreter
UidContext
can be used to give different subtype information depending on the given context.
Most cases will return the same value for all contexts and it can usually be ignored.
Return IIngredientSubtypeInterpreter.NONE
if there is no data used for subtypes.apply
in interface IIngredientSubtypeInterpreter<net.minecraft.item.ItemStack>