Enum Class ArmorType

java.lang.Object
java.lang.Enum<ArmorType>
net.minecraft.world.item.equipment.ArmorType
All Implemented Interfaces:
Serializable, Comparable<ArmorType>, Constable, StringRepresentable

public enum ArmorType extends Enum<ArmorType> implements StringRepresentable
  • Enum Constant Details

    • HELMET

      public static final ArmorType HELMET
    • CHESTPLATE

      public static final ArmorType CHESTPLATE
    • LEGGINGS

      public static final ArmorType LEGGINGS
    • BOOTS

      public static final ArmorType BOOTS
    • BODY

      public static final ArmorType BODY
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ArmorType> CODEC
    • slot

      private final EquipmentSlot slot
    • name

      private final String name
    • unitDurability

      private final int unitDurability
  • Constructor Details

  • Method Details

    • values

      public static ArmorType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ArmorType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDurability

      public int getDurability(int durabilityMultiplier)
    • getSlot

      public EquipmentSlot getSlot()
    • getName

      public String getName()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable