Interface ArmorMeta

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

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.
      true if has a trim, false otherwise
    • setTrim

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

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

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