Cloneable
, ConfigurationSerializable
, ItemMeta
public interface KnowledgeBookMeta extends ItemMeta
ItemMeta.Spigot
Modifier and Type | Method | Description |
---|---|---|
void |
addRecipe(NamespacedKey... recipes) |
Adds new recipe to the end of the book.
|
KnowledgeBookMeta |
clone() |
|
List<NamespacedKey> |
getRecipes() |
Gets all the recipes in the book.
|
boolean |
hasRecipes() |
Checks for the existence of recipes in the book.
|
void |
setRecipes(List<NamespacedKey> recipes) |
Clears the existing book recipes, and sets the book to use the provided
recipes.
|
serialize
addAttributeModifier, addEnchant, addItemFlags, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomTagContainer, getDestroyableKeys, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setDestroyableKeys, setDisplayName, setLocalizedName, setLore, setPlaceableKeys, setUnbreakable, spigot
boolean hasRecipes()
@NotNull List<NamespacedKey> getRecipes()
void setRecipes(@NotNull List<NamespacedKey> recipes)
recipes
- A list of recipes to set the book to usevoid addRecipe(@NotNull NamespacedKey... recipes)
recipes
- A list of recipe keys@NotNull KnowledgeBookMeta clone()
Copyright © 2020. All rights reserved.