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

      private int getMaxAmountToAdd(ItemStack p_330527_)
    • tryInsert

      public int tryInsert(ItemStack p_331789_)
    • tryTransfer

      public int tryTransfer(Slot p_330834_, Player p_331924_)
    • removeOne

      @Nullable public ItemStack removeOne()
    • weight

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

      public BundleContents toImmutable()