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, writeNbtEnchants
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot
public 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.KnowledgeBookMeta
public List<org.bukkit.NamespacedKey> getRecipes()
getRecipes
in interface org.bukkit.inventory.meta.KnowledgeBookMeta
public void setRecipes(List<org.bukkit.NamespacedKey> recipes)
setRecipes
in interface org.bukkit.inventory.meta.KnowledgeBookMeta
public void addRecipe(org.bukkit.NamespacedKey... recipes)
addRecipe
in interface org.bukkit.inventory.meta.KnowledgeBookMeta
public org.bukkit.inventory.meta.KnowledgeBookMeta clone()
clone
in interface org.bukkit.inventory.meta.ItemMeta
clone
in interface org.bukkit.inventory.meta.KnowledgeBookMeta
clone
in class GlowMetaItem
Copyright © 2021. All rights reserved.