public interface KnowledgeBookMeta extends ItemMeta
Modifier and Type | Method and Description |
---|---|
void |
addRecipe(NamespacedKey... recipes)
Adds new recipe to the end of the book.
|
@NotNull KnowledgeBookMeta |
clone() |
@NotNull List<NamespacedKey> |
getRecipes()
Gets all the recipes in the book.
|
boolean |
hasRecipes()
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.
|
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion
serialize
getPersistentDataContainer
boolean hasRecipes()
@NotNull @NotNull List<NamespacedKey> getRecipes()
void setRecipes(@NotNull @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 @NotNull KnowledgeBookMeta clone()
Copyright © 2021. All rights reserved.