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.BlockDataMeta
,org.bukkit.inventory.meta.Damageable
,org.bukkit.inventory.meta.ItemMeta
,org.bukkit.inventory.meta.KnowledgeBookMeta
,org.bukkit.inventory.meta.Repairable
,org.bukkit.persistence.PersistentDataHolder
public class GlowMetaKnowledgeBook
extends GlowMetaItem
implements org.bukkit.inventory.meta.KnowledgeBookMeta
-
Constructor Summary
ConstructorDescriptionGlowMetaKnowledgeBook
(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecipe
(org.bukkit.NamespacedKey... recipes) @NotNull GlowMetaKnowledgeBook
clone()
@NotNull List<org.bukkit.NamespacedKey>
boolean
void
setRecipes
(@NotNull List<org.bukkit.NamespacedKey> recipes) Methods inherited from class net.glowstone.inventory.GlowMetaItem
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getBlockData, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDamage, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, getRepairCost, hasAttributeModifiers, hasBlockData, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, hasRepairCost, isApplicable, isUnbreakable, lore, lore, readNbtEnchants, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serialize, serializeEnchants, setAttributeModifiers, setBlockData, setCanDestroy, setCanPlaceOn, setCustomModelData, setDamage, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setRepairCost, setUnbreakable, setVersion, toString, writeNbtEnchants
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, 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
Methods 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
- theItemMeta
to copy
-
-
Method Details
-
hasRecipes
public boolean hasRecipes()- Specified by:
hasRecipes
in interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta
-
getRecipes
- Specified by:
getRecipes
in interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta
-
setRecipes
- Specified by:
setRecipes
in interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta
-
addRecipe
public void addRecipe(org.bukkit.NamespacedKey... recipes) - Specified by:
addRecipe
in interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta
-
clone
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.Damageable
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.ItemMeta
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.KnowledgeBookMeta
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.Repairable
- Overrides:
clone
in classGlowMetaItem
-