Class CountedItemStackList.ItemStackEntry
java.lang.Object
com.simibubi.create.foundation.utility.Pair<Integer,V>
com.simibubi.create.foundation.utility.IntAttached<net.minecraft.world.item.ItemStack>
com.simibubi.create.foundation.item.CountedItemStackList.ItemStackEntry
- Enclosing class:
- CountedItemStackList
public static class CountedItemStackList.ItemStackEntry
extends IntAttached<net.minecraft.world.item.ItemStack>
-
Constructor Summary
ConstructorsConstructorDescriptionItemStackEntry(net.minecraft.world.item.ItemStack stack) ItemStackEntry(net.minecraft.world.item.ItemStack stack, int amount) -
Method Summary
Methods inherited from class com.simibubi.create.foundation.utility.IntAttached
comparator, decrement, exceeds, getValue, increment, isOrBelowZero, isZero, read, serializeNBT, with, withZero
-
Constructor Details
-
ItemStackEntry
public ItemStackEntry(net.minecraft.world.item.ItemStack stack) -
ItemStackEntry
public ItemStackEntry(net.minecraft.world.item.ItemStack stack, int amount)
-
-
Method Details
-
matches
public boolean matches(net.minecraft.world.item.ItemStack other) -
stack
public net.minecraft.world.item.ItemStack stack() -
grow
public void grow(int amount) -
count
public int count()
-