Interface BundleMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

public interface BundleMeta extends ItemMeta
  • Method Details

    • hasItems

      boolean hasItems()
      Returns whether the item has any items.
      Returns:
      whether items are present
    • getItems

      @NotNull List<ItemStack> getItems()
      Returns an immutable list of the items stored in this item.
      Returns:
      items
    • setItems

      void setItems(@Nullable List<ItemStack> items)
      Sets the items stored in this item. Removes all items when given null.
      Parameters:
      items - the items to set
    • addItem

      void addItem(@NotNull ItemStack item)
      Adds an item to this item.
      Parameters:
      item - item to add