接口 BundleMeta

所有超级接口:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

@Experimental public interface BundleMeta extends ItemMeta
  • 方法详细资料

    • hasItems

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

      Returns an immutable list of the items stored in this item.
      返回:
      items
    • setItems

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

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