Package org.bukkit.inventory.meta
Interface KnowledgeBookMeta
- All Superinterfaces:
Cloneable
,ConfigurationSerializable
,ItemMeta
,PersistentDataHolder
,PersistentDataViewHolder
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecipe
(@NotNull NamespacedKey... recipes) Adds new recipe to the end of the book.clone()
Gets all the recipes in the book.boolean
Checks for the existence of recipes in the book.void
setRecipes
(@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.ConfigurationSerializable
serialize
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getLoreComponents, getMaxStackSize, getPlaceableKeys, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasPlaceableKeys, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setLoreComponents, setMaxStackSize, setPlaceableKeys, setRarity, setTool, setUnbreakable, setVersion
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Method Details
-
hasRecipes
boolean hasRecipes()Checks for the existence of recipes in the book.- Returns:
- true if the book has recipes
-
getRecipes
Gets all the recipes in the book.- Returns:
- list of all the recipes in the book
-
setRecipes
Clears 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
-
addRecipe
Adds new recipe to the end of the book.- Parameters:
recipes
- A list of recipe keys
-
clone
-