public interface IStackHelper
IJeiHelpers.getStackHelper().| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUniqueIdentifierForStack(net.minecraft.item.ItemStack stack,
UidContext context)
Gets the unique identifier for a stack, ignoring NBT on items without subtypes, and uses the
ISubtypeManager. |
default boolean |
isEquivalent(net.minecraft.item.ItemStack lhs,
net.minecraft.item.ItemStack rhs)
Deprecated.
since JEI 7.3.0. Use
isEquivalent(ItemStack, ItemStack, UidContext) |
boolean |
isEquivalent(net.minecraft.item.ItemStack lhs,
net.minecraft.item.ItemStack rhs,
UidContext context)
Similar to ItemStack.areItemStacksEqual but ignores NBT on items without subtypes, and uses the
ISubtypeManager |
boolean isEquivalent(@Nullable
net.minecraft.item.ItemStack lhs,
@Nullable
net.minecraft.item.ItemStack rhs,
UidContext context)
ISubtypeManager@Deprecated
default boolean isEquivalent(@Nullable
net.minecraft.item.ItemStack lhs,
@Nullable
net.minecraft.item.ItemStack rhs)
isEquivalent(ItemStack, ItemStack, UidContext)ISubtypeManagerjava.lang.String getUniqueIdentifierForStack(net.minecraft.item.ItemStack stack,
UidContext context)
ISubtypeManager.
If two unique identifiers are equal, then the items can be considered equivalent.