public class StackHelper
extends java.lang.Object
implements mezz.jei.api.helpers.IStackHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
StackHelper.UidMode |
| Constructor and Description |
|---|
StackHelper(mezz.jei.api.ingredients.subtypes.ISubtypeManager subtypeManager) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUniqueIdentifierForStack(net.minecraft.item.ItemStack stack) |
java.lang.String |
getUniqueIdentifierForStack(net.minecraft.item.ItemStack stack,
StackHelper.UidMode mode) |
boolean |
isEquivalent(net.minecraft.item.ItemStack lhs,
net.minecraft.item.ItemStack rhs)
Similar to ItemStack.areItemStacksEqual but ignores NBT on items without subtypes, and uses the
ISubtypeManager |
public StackHelper(mezz.jei.api.ingredients.subtypes.ISubtypeManager subtypeManager)
public boolean isEquivalent(@Nullable
net.minecraft.item.ItemStack lhs,
@Nullable
net.minecraft.item.ItemStack rhs)
ISubtypeManagerisEquivalent in interface mezz.jei.api.helpers.IStackHelperpublic java.lang.String getUniqueIdentifierForStack(net.minecraft.item.ItemStack stack)
public java.lang.String getUniqueIdentifierForStack(net.minecraft.item.ItemStack stack,
StackHelper.UidMode mode)