程序包 org.bukkit.inventory.meta

# 接口 KnowledgeBookMeta

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

public interface KnowledgeBookMeta extends ItemMeta
与知识之书有关的元数据.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `void`
  `addRecipe(@NotNull NamespacedKey... recipes)`
  向书的末尾添加新的合成配方.
  `@NotNull KnowledgeBookMeta`
  `clone()`
  `@NotNull List<NamespacedKey>`
  `getRecipes()`
  获取书本内的所有合成配方.
  `boolean`
  `hasRecipes()`
  检测这本知识之书是否包含合成配方.
  `void`
  `setRecipes(@NotNull List<NamespacedKey> recipes)`
  清空书本内原有的合成配方, 替换为提供的合成配方.

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

  `serialize`

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

  `addAttributeModifier, addEnchant, addItemFlags, 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`

- ## 方法详细资料

  - ### hasRecipes

    boolean hasRecipes()
    检测这本知识之书是否包含合成配方.

    原文: Checks for the existence of recipes in the book.

    返回:
      是否包含配方

  - ### getRecipes

    @NotNull @NotNull List<NamespacedKey> getRecipes()
    获取书本内的所有合成配方.

    原文: Gets all the recipes in the book.

    返回:
      合成配方列表

  - ### setRecipes

    void setRecipes(@NotNull @NotNull List<NamespacedKey> recipes)
    清空书本内原有的合成配方, 替换为提供的合成配方.

    原文: Clears the existing book recipes, and sets the book to use the provided recipes.

    参数:
      `recipes` - 合成配方列表

  - ### addRecipe

    void addRecipe(@NotNull @NotNull NamespacedKey... recipes)
    向书的末尾添加新的合成配方.

    原文: Adds new recipe to the end of the book.

    参数:
      `recipes` - 合成配方列表

  - ### clone

    @NotNull @NotNull KnowledgeBookMeta clone()
    指定者:
      `clone` 在接口中 `ItemMeta`