Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
LeatherArmorMeta.java
1 package org.bukkit.inventory.meta;
2 
3 import org.bukkit.Color;
4 import org.bukkit.Material;
6 
7 /**
8  * Represents leather armor ({@link Material#LEATHER_BOOTS}, {@link
9  * Material#LEATHER_CHESTPLATE}, {@link Material#LEATHER_HELMET}, or {@link
10  * Material#LEATHER_LEGGINGS}) that can be colored.
11  */
12 public interface LeatherArmorMeta extends ItemMeta {
13 
14  /**
15  * Gets the color of the armor. If it has not been set otherwise, it will
16  * be {@link ItemFactory#getDefaultLeatherColor()}.
17  *
18  * @return the color of the armor, never null
19  */
20  Color getColor();
21 
22  /**
23  * Sets the color of the armor.
24  *
25  * @param color the color to set. Setting it to null is equivalent to
26  * setting it to {@link ItemFactory#getDefaultLeatherColor()}.
27  */
28  void setColor(Color color);
29 
30  LeatherArmorMeta clone();
31 }