Interface BundleContents


@NonExtendable public interface BundleContents
Holds all items stored inside of a Bundle.
Since:
1.21.3
See Also:
  • Method Details

    • bundleContents

      @Contract(value="_ -> new", pure=true) static BundleContents bundleContents(List<ItemStack> contents)
      Since:
      1.21.3
    • bundleContents

      @Contract(value="-> new", pure=true) static BundleContents.Builder bundleContents()
      Since:
      1.21.3
    • contents

      @Contract(pure=true) @Unmodifiable List<ItemStack> contents()
      Lists the items that are currently stored inside of this component.
      Returns:
      items
      Since:
      1.21.3