Class StackedContents

java.lang.Object
net.minecraft.world.entity.player.StackedContents

public class StackedContents extends Object
  • Field Details

    • EMPTY

      private static final int EMPTY
      See Also:
      Constant Field Values
    • contents

      public final it.unimi.dsi.fastutil.ints.Int2IntMap contents
  • Constructor Details

    • StackedContents

      public StackedContents()
  • Method Details

    • accountSimpleStack

      public void accountSimpleStack(ItemStack p_36467_)
    • accountStack

      public void accountStack(ItemStack p_36492_)
    • accountStack

      public void accountStack(ItemStack p_36469_, int p_36470_)
    • getStackingIndex

      public static int getStackingIndex(ItemStack p_36497_)
    • has

      boolean has(int p_36483_)
    • take

      int take(int p_36457_, int p_36458_)
    • put

      void put(int p_36485_, int p_36486_)
    • canCraft

      public boolean canCraft(Recipe<?> p_36476_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_36477_)
    • canCraft

      public boolean canCraft(Recipe<?> p_36479_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_36480_, int p_36481_)
    • getBiggestCraftableStack

      public int getBiggestCraftableStack(Recipe<?> p_36494_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_36495_)
    • getBiggestCraftableStack

      public int getBiggestCraftableStack(Recipe<?> p_36472_, int p_36473_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_36474_)
    • fromStackingIndex

      public static ItemStack fromStackingIndex(int p_36455_)
    • clear

      public void clear()