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 p_328563_)
    • getMaxAmountToAdd

      private int getMaxAmountToAdd(ItemStack p_335684_)
    • tryInsert

      public int tryInsert(ItemStack p_333873_)
    • tryTransfer

      public int tryTransfer(Slot p_333053_, Player p_329130_)
    • removeOne

      @Nullable public ItemStack removeOne()
    • weight

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

      public BundleContents toImmutable()