public final class ChangingItemStack extends ChangingObject<net.minecraft.item.ItemStack>
ItemStack that changes between a specified list of stacks. Useful for displaying possible inputs
or outputs for recipes that use the oredictionary, or recipes that vary the output depending on the metadata of the
input (for example a pipe colouring recipe)options| Constructor and Description |
|---|
ChangingItemStack(net.minecraft.item.crafting.Ingredient ingredient) |
ChangingItemStack(net.minecraft.item.ItemStack stack) |
ChangingItemStack(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> stacks)
Creates a stack list that iterates through all of the given stacks.
|
ChangingItemStack(java.lang.String oreId) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
computeHash() |
boolean |
matches(net.minecraft.item.ItemStack target) |
equals, get, get, hashCode, setTimeGappublic ChangingItemStack(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> stacks)
stacks - The list to iterate through.public ChangingItemStack(@Nonnull
net.minecraft.item.crafting.Ingredient ingredient)
public ChangingItemStack(net.minecraft.item.ItemStack stack)
public ChangingItemStack(java.lang.String oreId)
protected int computeHash()
computeHash in class ChangingObject<net.minecraft.item.ItemStack>public boolean matches(net.minecraft.item.ItemStack target)