接口 KnowledgeBookMeta
与知识之书有关的元数据.
-
方法概要
修饰符和类型方法说明void
addRecipe
(@NotNull NamespacedKey... recipes) 向书的末尾添加新的合成配方.clone()
获取书本内的所有合成配方.boolean
检测这本知识之书是否包含合成配方.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
获取书本内的所有合成配方.原文: Gets all the recipes in the book.
- 返回:
- 合成配方列表
-
setRecipes
清空书本内原有的合成配方, 替换为提供的合成配方.原文: Clears the existing book recipes, and sets the book to use the provided recipes.
- 参数:
recipes
- 合成配方列表
-
addRecipe
向书的末尾添加新的合成配方.原文: Adds new recipe to the end of the book.
- 参数:
recipes
- 合成配方列表
-
clone
-