org.bukkit.inventory.meta
Interface LeatherArmorMeta
- All Superinterfaces:
- Cloneable, ConfigurationSerializable, ItemMeta
public interface LeatherArmorMeta
- extends ItemMeta
Represents leather armor (Material.LEATHER_BOOTS, Material.LEATHER_CHESTPLATE, Material.LEATHER_HELMET, or Material.LEATHER_LEGGINGS) that can be colored.
| Methods inherited from interface org.bukkit.inventory.meta.ItemMeta |
addEnchant, getDisplayName, getEnchantLevel, getEnchants, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasLore, removeEnchant, setDisplayName, setLore |
getColor
Color getColor()
- Gets the color of the armor. If it has not been set otherwise, it will be
ItemFactory.getDefaultLeatherColor().
- Returns:
- the color of the armor, never null
setColor
void setColor(Color color)
- Sets the color of the armor.
- Parameters:
color - the color to set. Setting it to null is equivalent to setting it to ItemFactory.getDefaultLeatherColor().
clone
LeatherArmorMeta clone()
- Specified by:
clone in interface ItemMeta
Copyright © 2013. All Rights Reserved.