Interface ItemContainerContents


@NonExtendable public interface ItemContainerContents
Holds the contents of an item container.
Since:
1.21.3
See Also:
  • Method Details

    • containerContents

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

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

      @Contract(value="-> new", pure=true) @Unmodifiable List<ItemStack> contents()
      Gets the contents of the container.
      Returns:
      the contents
      Since:
      1.21.3