Class BundleContents

java.lang.Object
net.minecraft.world.item.component.BundleContents
All Implemented Interfaces:
TooltipComponent

public final class BundleContents extends Object implements TooltipComponent
  • Field Details

  • Constructor Details

    • BundleContents

      BundleContents(List<ItemStack> p_331277_, org.apache.commons.lang3.math.Fraction p_339622_)
    • BundleContents

      public BundleContents(List<ItemStack> p_331417_)
  • Method Details

    • computeContentWeight

      private static org.apache.commons.lang3.math.Fraction computeContentWeight(List<ItemStack> p_331148_)
    • getWeight

      static org.apache.commons.lang3.math.Fraction getWeight(ItemStack p_332084_)
    • getItemUnsafe

      public ItemStack getItemUnsafe(int p_330802_)
    • itemCopyStream

      public Stream<ItemStack> itemCopyStream()
    • items

      public Iterable<ItemStack> items()
    • itemsCopy

      public Iterable<ItemStack> itemsCopy()
    • size

      public int size()
    • weight

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

      public boolean isEmpty()
    • equals

      public boolean equals(Object p_331898_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object