Class BundleContents.Mutable

java.lang.Object
net.minecraft.world.item.component.BundleContents.Mutable
Enclosing class:
BundleContents

public static class BundleContents.Mutable extends Object
  • Field Details

    • items

      private final List<ItemStack> items
    • weight

      private org.apache.commons.lang3.math.Fraction weight
  • Constructor Details

  • Method Details

    • clearItems

      public BundleContents.Mutable clearItems()
    • findStackIndex

      private int findStackIndex(ItemStack pStack)
    • getMaxAmountToAdd

      private int getMaxAmountToAdd(ItemStack pStack)
    • tryInsert

      public int tryInsert(ItemStack pStack)
    • tryTransfer

      public int tryTransfer(Slot pSlot, Player pPlayer)
    • removeOne

      @Nullable public ItemStack removeOne()
    • weight

      public org.apache.commons.lang3.math.Fraction weight()
    • toImmutable

      public BundleContents toImmutable()