
org.bukkit.inventory.meta.LeatherArmorMeta Maven / Gradle / Ivy
package org.bukkit.inventory.meta;
import org.bukkit.Color;
import org.bukkit.Material;
import org.bukkit.inventory.ItemFactory;
/**
* Represents leather armor ({@link Material#LEATHER_BOOTS}, {@link
* Material#LEATHER_CHESTPLATE}, {@link Material#LEATHER_HELMET}, or {@link
* Material#LEATHER_LEGGINGS}) that can be colored.
*/
public interface LeatherArmorMeta extends ItemMeta {
/**
* Gets the color of the armor. If it has not been set otherwise, it will
* be {@link ItemFactory#getDefaultLeatherColor()}.
*
* @return the color of the armor, never null
*/
Color getColor();
/**
* Sets the color of the armor.
*
* @param color the color to set. Setting it to null is equivalent to
* setting it to {@link ItemFactory#getDefaultLeatherColor()}.
*/
void setColor(Color color);
LeatherArmorMeta clone();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy