Class CountedItemStackList.ItemStackEntry
java.lang.Object
net.createmod.catnip.data.Pair<Integer,net.minecraft.world.item.ItemStack>
net.createmod.catnip.data.IntAttached<net.minecraft.world.item.ItemStack>
com.simibubi.create.foundation.item.CountedItemStackList.ItemStackEntry
- Enclosing class:
CountedItemStackList
public static class CountedItemStackList.ItemStackEntry
extends net.createmod.catnip.data.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 net.createmod.catnip.data.IntAttached
codec, comparator, decrement, exceeds, getValue, increment, isOrBelowZero, isZero, read, serializeNBT, streamCodec, with, withZeroMethods inherited from class net.createmod.catnip.data.Pair
codec, copy, equals, getFirst, getSecond, hashCode, of, setFirst, setSecond, streamCodec, swap, toString
-
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()
-