Enum Class ArmorItem.Type

java.lang.Object
java.lang.Enum<ArmorItem.Type>
net.minecraft.item.ArmorItem.Type
All Implemented Interfaces:
Serializable, Comparable<ArmorItem.Type>, Constable, StringIdentifiable
Enclosing class:
ArmorItem

public static enum ArmorItem.Type extends Enum<ArmorItem.Type> implements StringIdentifiable
Mappings:
Namespace Name
official cqo$a
intermediary net/minecraft/class_1738$class_8051
named net/minecraft/item/ArmorItem$Type
  • Enum Constant Details

    • HELMET

      public static final ArmorItem.Type HELMET
      Mappings:
      Namespace Name Mixin selector
      official a Lcqo$a;a:Lcqo$a;
      intermediary field_41934 Lnet/minecraft/class_1738$class_8051;field_41934:Lnet/minecraft/class_1738$class_8051;
      named HELMET Lnet/minecraft/item/ArmorItem$Type;HELMET:Lnet/minecraft/item/ArmorItem$Type;
    • CHESTPLATE

      public static final ArmorItem.Type CHESTPLATE
      Mappings:
      Namespace Name Mixin selector
      official b Lcqo$a;b:Lcqo$a;
      intermediary field_41935 Lnet/minecraft/class_1738$class_8051;field_41935:Lnet/minecraft/class_1738$class_8051;
      named CHESTPLATE Lnet/minecraft/item/ArmorItem$Type;CHESTPLATE:Lnet/minecraft/item/ArmorItem$Type;
    • LEGGINGS

      public static final ArmorItem.Type LEGGINGS
      Mappings:
      Namespace Name Mixin selector
      official c Lcqo$a;c:Lcqo$a;
      intermediary field_41936 Lnet/minecraft/class_1738$class_8051;field_41936:Lnet/minecraft/class_1738$class_8051;
      named LEGGINGS Lnet/minecraft/item/ArmorItem$Type;LEGGINGS:Lnet/minecraft/item/ArmorItem$Type;
    • BOOTS

      public static final ArmorItem.Type BOOTS
      Mappings:
      Namespace Name Mixin selector
      official d Lcqo$a;d:Lcqo$a;
      intermediary field_41937 Lnet/minecraft/class_1738$class_8051;field_41937:Lnet/minecraft/class_1738$class_8051;
      named BOOTS Lnet/minecraft/item/ArmorItem$Type;BOOTS:Lnet/minecraft/item/ArmorItem$Type;
    • BODY

      public static final ArmorItem.Type BODY
      Mappings:
      Namespace Name Mixin selector
      official e Lcqo$a;e:Lcqo$a;
      intermediary field_48838 Lnet/minecraft/class_1738$class_8051;field_48838:Lnet/minecraft/class_1738$class_8051;
      named BODY Lnet/minecraft/item/ArmorItem$Type;BODY:Lnet/minecraft/item/ArmorItem$Type;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ArmorItem.Type> CODEC
      Mappings:
      Namespace Name Mixin selector
      official f Lcqo$a;f:Lcom/mojang/serialization/Codec;
      intermediary field_48839 Lnet/minecraft/class_1738$class_8051;field_48839:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/item/ArmorItem$Type;CODEC:Lcom/mojang/serialization/Codec;
    • equipmentSlot

      private final EquipmentSlot equipmentSlot
      Mappings:
      Namespace Name Mixin selector
      official g Lcqo$a;g:Lbro;
      intermediary field_41938 Lnet/minecraft/class_1738$class_8051;field_41938:Lnet/minecraft/class_1304;
      named equipmentSlot Lnet/minecraft/item/ArmorItem$Type;equipmentSlot:Lnet/minecraft/entity/EquipmentSlot;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official h Lcqo$a;h:Ljava/lang/String;
      intermediary field_41939 Lnet/minecraft/class_1738$class_8051;field_41939:Ljava/lang/String;
      named name Lnet/minecraft/item/ArmorItem$Type;name:Ljava/lang/String;
    • baseMaxDamage

      private final int baseMaxDamage
      Mappings:
      Namespace Name Mixin selector
      official i Lcqo$a;i:I
      intermediary field_49257 Lnet/minecraft/class_1738$class_8051;field_49257:I
      named baseMaxDamage Lnet/minecraft/item/ArmorItem$Type;baseMaxDamage:I
  • Constructor Details

    • Type

      private Type(EquipmentSlot equipmentSlot, int baseMaxDamage, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcqo$a;<init>(Ljava/lang/String;ILbro;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1738$class_8051;<init>(Ljava/lang/String;ILnet/minecraft/class_1304;ILjava/lang/String;)V
      named <init> Lnet/minecraft/item/ArmorItem$Type;<init>(Ljava/lang/String;ILnet/minecraft/entity/EquipmentSlot;ILjava/lang/String;)V
  • Method Details

    • values

      public static ArmorItem.Type[] 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 ArmorItem.Type 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
    • getMaxDamage

      public int getMaxDamage(int multiplier)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqo$a;a(I)I
      intermediary method_56690 Lnet/minecraft/class_1738$class_8051;method_56690(I)I
      named getMaxDamage Lnet/minecraft/item/ArmorItem$Type;getMaxDamage(I)I
    • getEquipmentSlot

      public EquipmentSlot getEquipmentSlot()
      Mappings:
      Namespace Name Mixin selector
      official a Lcqo$a;a()Lbro;
      intermediary method_48399 Lnet/minecraft/class_1738$class_8051;method_48399()Lnet/minecraft/class_1304;
      named getEquipmentSlot Lnet/minecraft/item/ArmorItem$Type;getEquipmentSlot()Lnet/minecraft/entity/EquipmentSlot;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Lcqo$a;b()Ljava/lang/String;
      intermediary method_48400 Lnet/minecraft/class_1738$class_8051;method_48400()Ljava/lang/String;
      named getName Lnet/minecraft/item/ArmorItem$Type;getName()Ljava/lang/String;
    • isTrimmable

      public boolean isTrimmable()
      Mappings:
      Namespace Name Mixin selector
      official d Lcqo$a;d()Z
      intermediary method_56691 Lnet/minecraft/class_1738$class_8051;method_56691()Z
      named isTrimmable Lnet/minecraft/item/ArmorItem$Type;isTrimmable()Z
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      official c Layt;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;