Package net.glowstone.inventory
Class GlowMetaKnowledgeBook
java.lang.Object
net.glowstone.inventory.GlowMetaItem
net.glowstone.inventory.GlowMetaKnowledgeBook
- All Implemented Interfaces:
Cloneable,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.inventory.meta.ItemMeta,org.bukkit.inventory.meta.KnowledgeBookMeta,org.bukkit.persistence.PersistentDataHolder
public class GlowMetaKnowledgeBook
extends GlowMetaItem
implements org.bukkit.inventory.meta.KnowledgeBookMeta
-
Constructor Summary
ConstructorsConstructorDescriptionGlowMetaKnowledgeBook(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecipe(org.bukkit.NamespacedKey... recipes) @NotNull org.bukkit.inventory.meta.KnowledgeBookMetaclone()@NotNull List<org.bukkit.NamespacedKey>booleanvoidsetRecipes(@NotNull List<org.bukkit.NamespacedKey> recipes) Methods inherited from class net.glowstone.inventory.GlowMetaItem
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isApplicable, isUnbreakable, lore, lore, readNbtEnchants, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serialize, serializeEnchants, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion, toString, writeNbtEnchantsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serializeMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
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, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
GlowMetaKnowledgeBook
public GlowMetaKnowledgeBook(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta. If that item is anotherKnowledgeBookMeta, its recipes are copied; otherwise, the new book is empty.- Parameters:
meta- theItemMetato copy
-
-
Method Details
-
hasRecipes
public boolean hasRecipes()- Specified by:
hasRecipesin interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta
-
getRecipes
- Specified by:
getRecipesin interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta
-
setRecipes
- Specified by:
setRecipesin interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta
-
addRecipe
public void addRecipe(org.bukkit.NamespacedKey... recipes) - Specified by:
addRecipein interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta
-
clone
@NotNull public @NotNull org.bukkit.inventory.meta.KnowledgeBookMeta clone()- Specified by:
clonein interfaceorg.bukkit.inventory.meta.ItemMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta- Overrides:
clonein classGlowMetaItem
-