程序包 org.bukkit.inventory.meta

# 接口 BundleMeta

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

@Experimental public interface BundleMeta extends ItemMeta

- ## 方法概要

  修饰符和类型
  方法
  说明
  `void`
  `addItem(@NotNull ItemStack item)`
  Adds an item to this item.
  `@NotNull List<ItemStack>`
  `getItems()`
  Returns an immutable list of the items stored in this item.
  `boolean`
  `hasItems()`
  Returns whether the item has any items.
  `void`
  `setItems(@Nullable List<ItemStack> items)`
  Sets the items stored in this item.

  ### 从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable

  `serialize`

  ### 从接口继承的方法 org.bukkit.inventory.meta.ItemMeta

  `addAttributeModifier, addEnchant, addItemFlags, clone, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersion`

  ### 从接口继承的方法 org.bukkit.persistence.PersistentDataHolder

  `getPersistentDataContainer`

- ## 方法详细资料

  - ### hasItems

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

  - ### getItems

    @NotNull @NotNull List<ItemStack> 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