Package org.bukkit.inventory.meta
Interface LeatherArmorMeta
-
- All Superinterfaces:
Cloneable
,ConfigurationSerializable
,ItemMeta
,PersistentDataHolder
public interface LeatherArmorMeta extends ItemMeta
Represents leather armor (Material.LEATHER_BOOTS
,Material.LEATHER_CHESTPLATE
,Material.LEATHER_HELMET
, orMaterial.LEATHER_LEGGINGS
) that can be colored.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bukkit.inventory.meta.ItemMeta
ItemMeta.Spigot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LeatherArmorMeta
clone()
Color
getColor()
Gets the color of the armor.void
setColor(Color color)
Sets the color of the armor.-
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersion, spigot
-
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
-
-
-
Method Detail
-
getColor
@NotNull Color getColor()
Gets the color of the armor. If it has not been set otherwise, it will beItemFactory.getDefaultLeatherColor()
.- Returns:
- the color of the armor, never null
-
setColor
void setColor(@Nullable Color color)
Sets the color of the armor.- Parameters:
color
- the color to set. Setting it to null is equivalent to setting it toItemFactory.getDefaultLeatherColor()
.
-
clone
@NotNull LeatherArmorMeta clone()
-
-