类 StackedContents

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

public class StackedContents extends Object
  • 字段详细资料

    • EMPTY

      private static final int EMPTY
      另请参阅:
    • contents

      public final it.unimi.dsi.fastutil.ints.Int2IntMap contents
  • 构造器详细资料

    • StackedContents

      public StackedContents()
  • 方法详细资料

    • accountSimpleStack

      public void accountSimpleStack(ItemStack pStack)
    • accountStack

      public void accountStack(ItemStack pStack)
    • accountStack

      public void accountStack(ItemStack pStack, int pAmount)
    • getStackingIndex

      public static int getStackingIndex(ItemStack pStack)
    • has

      boolean has(int pStackingIndex)
    • take

      int take(int pStackingIndex, int pAmount)
    • put

      void put(int pStackingIndex, int pIncrement)
    • canCraft

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

      public boolean canCraft(Recipe<?> pRecipe, @Nullable it.unimi.dsi.fastutil.ints.IntList pStackingIndexList, int pAmount)
    • getBiggestCraftableStack

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

      public int getBiggestCraftableStack(Recipe<?> pRecipe, int pAmount, @Nullable it.unimi.dsi.fastutil.ints.IntList pStackingIndexList)
    • fromStackingIndex

      public static ItemStack fromStackingIndex(int pStackingIndex)
    • clear

      public void clear()