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

    Constructors
    Constructor
    Description
    ItemStackEntry(net.minecraft.world.item.ItemStack stack)
     
    ItemStackEntry(net.minecraft.world.item.ItemStack stack, int amount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    grow(int amount)
     
    boolean
    matches(net.minecraft.world.item.ItemStack other)
     
    net.minecraft.world.item.ItemStack
     

    Methods inherited from class net.createmod.catnip.data.IntAttached

    codec, comparator, decrement, exceeds, getValue, increment, isOrBelowZero, isZero, read, serializeNBT, streamCodec, with, withZero

    Methods inherited from class net.createmod.catnip.data.Pair

    codec, copy, equals, getFirst, getSecond, hashCode, of, setFirst, setSecond, streamCodec, swap, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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()