001 package org.bukkit.inventory.meta; 002 003 import org.bukkit.Color; 004 import org.bukkit.Material; 005 import org.bukkit.inventory.ItemFactory; 006 007 /** 008 * Represents leather armor ({@link Material#LEATHER_BOOTS}, {@link 009 * Material#LEATHER_CHESTPLATE}, {@link Material#LEATHER_HELMET}, or {@link 010 * Material#LEATHER_LEGGINGS}) that can be colored. 011 */ 012 public interface LeatherArmorMeta extends ItemMeta { 013 014 /** 015 * Gets the color of the armor. If it has not been set otherwise, it will 016 * be {@link ItemFactory#getDefaultLeatherColor()}. 017 * 018 * @return the color of the armor, never null 019 */ 020 Color getColor(); 021 022 /** 023 * Sets the color of the armor. 024 * 025 * @param color the color to set. Setting it to null is equivalent to 026 * setting it to {@link ItemFactory#getDefaultLeatherColor()}. 027 */ 028 void setColor(Color color); 029 030 LeatherArmorMeta clone(); 031 }