Interface LeatherArmorMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder, PersistentDataViewHolder
All Known Subinterfaces:
ColorableArmorMeta

public interface LeatherArmorMeta extends ItemMeta
  • Method Details

    • getColor

      @NotNull @NotNull 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
      API Note:
      The method yielding ItemFactory.getDefaultLeatherColor() is incorrect for Material.WOLF_ARMOR as its default color differs. Generally, it is recommended to check isDyed() to determine if this leather armor is dyed than to compare this color to the default.
    • setColor

      void setColor(@Nullable @Nullable Color color)
      Sets the color of the armor.
      Parameters:
      color - the color to set.
    • clone

      @NotNull @NotNull LeatherArmorMeta clone()
      Specified by:
      clone in interface ItemMeta
    • isDyed

      boolean isDyed()
      Checks whether this leather armor is dyed.
      Returns:
      whether this leather armor is dyed