Package net.glowstone.inventory
Class GlowMetaLeatherArmor
java.lang.Object
net.glowstone.inventory.GlowMetaItem
net.glowstone.inventory.GlowMetaLeatherArmor
- All Implemented Interfaces:
Cloneable,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.inventory.meta.ItemMeta,org.bukkit.inventory.meta.LeatherArmorMeta,org.bukkit.persistence.PersistentDataHolder
public class GlowMetaLeatherArmor
extends GlowMetaItem
implements org.bukkit.inventory.meta.LeatherArmorMeta
-
Constructor Summary
ConstructorsConstructorDescriptionGlowMetaLeatherArmor(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.inventory.meta.LeatherArmorMetaclone()org.bukkit.ColorgetColor()booleanisApplicable(org.bukkit.Material material) Check whether this ItemMeta can be applied to the given material.voidsetColor(org.bukkit.Color color) 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, isUnbreakable, lore, lore, readNbtEnchants, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, 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.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
-
GlowMetaLeatherArmor
public GlowMetaLeatherArmor(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta. If that item is anotherLeatherArmorMeta, its color is copied; otherwise, the new item is undyed.- Parameters:
meta- theItemMetato copy
-
-
Method Details
-
setColor
public void setColor(org.bukkit.Color color) - Specified by:
setColorin interfaceorg.bukkit.inventory.meta.LeatherArmorMeta
-
isApplicable
public boolean isApplicable(org.bukkit.Material material) Description copied from class:GlowMetaItemCheck whether this ItemMeta can be applied to the given material.- Overrides:
isApplicablein classGlowMetaItem- Parameters:
material- The Material.- Returns:
- True if this ItemMeta is applicable.
-
serialize
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable- Overrides:
serializein classGlowMetaItem
-
clone
@NotNull public @NotNull org.bukkit.inventory.meta.LeatherArmorMeta clone()- Specified by:
clonein interfaceorg.bukkit.inventory.meta.ItemMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.LeatherArmorMeta- Overrides:
clonein classGlowMetaItem
-
getColor
public org.bukkit.Color getColor()- Specified by:
getColorin interfaceorg.bukkit.inventory.meta.LeatherArmorMeta
-