Package org.bukkit.inventory.meta
Interface KnowledgeBookMeta
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRecipe(@NotNull NamespacedKey... recipes) Adds new recipe to the end of the book.clone()Gets all the recipes in the book.booleanChecks for the existence of recipes in the book.voidsetRecipes(@NotNull List<NamespacedKey> recipes) Clears the existing book recipes, and sets the book to use the provided recipes.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getLocalizedName, getLore, getLoreComponents, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setDisplayNameComponent, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setLocalizedName, setLore, setLoreComponents, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
hasRecipesboolean hasRecipes()Checks for the existence of recipes in the book.- Returns:
- true if the book has recipes
 
- 
getRecipesGets all the recipes in the book.- Returns:
- list of all the recipes in the book
 
- 
setRecipesClears the existing book recipes, and sets the book to use the provided recipes.- Parameters:
- recipes- A list of recipes to set the book to use
 
- 
addRecipeAdds new recipe to the end of the book.- Parameters:
- recipes- A list of recipe keys
 
- 
clone
 
-