public class GlowMetaKnowledgeBook extends GlowMetaItem implements org.bukkit.inventory.meta.KnowledgeBookMeta
| Constructor and Description |
|---|
GlowMetaKnowledgeBook(org.bukkit.inventory.meta.ItemMeta meta)
Creates an instance by copying from the given
ItemMeta. |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipe(org.bukkit.NamespacedKey... recipes) |
org.bukkit.inventory.meta.KnowledgeBookMeta |
clone() |
List<org.bukkit.NamespacedKey> |
getRecipes() |
boolean |
hasRecipes() |
void |
setRecipes(List<org.bukkit.NamespacedKey> recipes) |
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isApplicable, isUnbreakable, readNbtEnchants, removeEnchant, removeItemFlags, serialize, serializeEnchants, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot, toString, writeNbtEnchantsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigotpublic GlowMetaKnowledgeBook(org.bukkit.inventory.meta.ItemMeta meta)
ItemMeta. If that item is another
KnowledgeBookMeta, its recipes are copied; otherwise, the new book is empty.meta - the ItemMeta to copypublic boolean hasRecipes()
hasRecipes in interface org.bukkit.inventory.meta.KnowledgeBookMetapublic List<org.bukkit.NamespacedKey> getRecipes()
getRecipes in interface org.bukkit.inventory.meta.KnowledgeBookMetapublic void setRecipes(List<org.bukkit.NamespacedKey> recipes)
setRecipes in interface org.bukkit.inventory.meta.KnowledgeBookMetapublic void addRecipe(org.bukkit.NamespacedKey... recipes)
addRecipe in interface org.bukkit.inventory.meta.KnowledgeBookMetapublic org.bukkit.inventory.meta.KnowledgeBookMeta clone()
clone in interface org.bukkit.inventory.meta.ItemMetaclone in interface org.bukkit.inventory.meta.KnowledgeBookMetaclone in class GlowMetaItemCopyright © 2021. All rights reserved.