Interface ArmorMeta

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

public interface ArmorMeta extends ItemMeta
Represents armor that an entity can equip.

Note: Armor trims are part of an experimental feature of Minecraft and hence subject to change.

  • Method Details

    • hasTrim

      boolean hasTrim()
      Check whether or not this item has an armor trim.
      Returns:
      true if has a trim, false otherwise
    • setTrim

      void setTrim(@Nullable ArmorTrim trim)
      Set the ArmorTrim.
      Parameters:
      trim - the trim to set, or null to remove it
    • getTrim

      @Nullable ArmorTrim getTrim()
      Get the ArmorTrim.
      Returns:
      the armor trim, or null if none
    • clone

      @NotNull ArmorMeta clone()
      Specified by:
      clone in interface ItemMeta