public interface IStackHelper
IJeiHelpers.getStackHelper()
.Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
containsAnyStack(java.lang.Iterable<net.minecraft.item.ItemStack> stacks,
java.lang.Iterable<net.minecraft.item.ItemStack> contains)
Returns an ItemStack from 'stacks' that matches any of the ItemStacks in 'contains'.
|
java.util.List<java.util.List<net.minecraft.item.ItemStack>> |
expandRecipeItemStackInputs(java.util.List inputs)
Expands ItemStacks, OreDict Strings, and Iterables into a list of lists of ItemStacks.
|
java.util.List<net.minecraft.item.ItemStack> |
getAllSubtypes(java.lang.Iterable stacks)
Expands an Iterable, which may contain ItemStacks or more Iterables, and
returns all the subtypes of itemStacks if they have wildcard meta value.
|
java.util.List<net.minecraft.item.ItemStack> |
getSubtypes(net.minecraft.item.ItemStack itemStack)
Returns all the subtypes of itemStack if it has a wildcard meta value.
|
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
ISubtypeRegistry |
java.util.List<net.minecraft.item.ItemStack> |
toItemStackList(java.lang.Object stacks)
Flattens ItemStacks, OreDict Strings, and Iterables into a list of ItemStacks.
|
java.util.List<net.minecraft.item.ItemStack> getSubtypes(net.minecraft.item.ItemStack itemStack)
java.util.List<net.minecraft.item.ItemStack> getAllSubtypes(java.lang.Iterable stacks)
java.util.List<net.minecraft.item.ItemStack> toItemStackList(@Nullable java.lang.Object stacks)
java.util.List<java.util.List<net.minecraft.item.ItemStack>> expandRecipeItemStackInputs(@Nullable java.util.List inputs)
@Nullable net.minecraft.item.ItemStack containsAnyStack(java.lang.Iterable<net.minecraft.item.ItemStack> stacks, java.lang.Iterable<net.minecraft.item.ItemStack> contains)
boolean isEquivalent(@Nullable net.minecraft.item.ItemStack lhs, @Nullable net.minecraft.item.ItemStack rhs)
ISubtypeRegistry