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_331924_, org.apache.commons.lang3.math.Fraction p_333046_)
    • BundleContents

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

    • computeContentWeight

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

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

      public ItemStack getItemUnsafe(int p_329557_)
    • 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_330764_)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object