Enum Class EquipmentType

java.lang.Object
java.lang.Enum<EquipmentType>
net.minecraft.item.equipment.EquipmentType
All Implemented Interfaces:
Serializable, Comparable<EquipmentType>, Constable, StringIdentifiable

public enum EquipmentType extends Enum<EquipmentType> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/item/equipment/EquipmentType
intermediary net/minecraft/class_8051
official dfq
  • Enum Constant Details

    • HELMET

      public static final EquipmentType HELMET
      Mappings:
      Namespace Name Mixin selector
      named HELMET Lnet/minecraft/item/equipment/EquipmentType;HELMET:Lnet/minecraft/item/equipment/EquipmentType;
      intermediary field_41934 Lnet/minecraft/class_8051;field_41934:Lnet/minecraft/class_8051;
      official a Ldfq;a:Ldfq;
    • CHESTPLATE

      public static final EquipmentType CHESTPLATE
      Mappings:
      Namespace Name Mixin selector
      named CHESTPLATE Lnet/minecraft/item/equipment/EquipmentType;CHESTPLATE:Lnet/minecraft/item/equipment/EquipmentType;
      intermediary field_41935 Lnet/minecraft/class_8051;field_41935:Lnet/minecraft/class_8051;
      official b Ldfq;b:Ldfq;
    • LEGGINGS

      public static final EquipmentType LEGGINGS
      Mappings:
      Namespace Name Mixin selector
      named LEGGINGS Lnet/minecraft/item/equipment/EquipmentType;LEGGINGS:Lnet/minecraft/item/equipment/EquipmentType;
      intermediary field_41936 Lnet/minecraft/class_8051;field_41936:Lnet/minecraft/class_8051;
      official c Ldfq;c:Ldfq;
    • BOOTS

      public static final EquipmentType BOOTS
      Mappings:
      Namespace Name Mixin selector
      named BOOTS Lnet/minecraft/item/equipment/EquipmentType;BOOTS:Lnet/minecraft/item/equipment/EquipmentType;
      intermediary field_41937 Lnet/minecraft/class_8051;field_41937:Lnet/minecraft/class_8051;
      official d Ldfq;d:Ldfq;
    • BODY

      public static final EquipmentType BODY
      Mappings:
      Namespace Name Mixin selector
      named BODY Lnet/minecraft/item/equipment/EquipmentType;BODY:Lnet/minecraft/item/equipment/EquipmentType;
      intermediary field_48838 Lnet/minecraft/class_8051;field_48838:Lnet/minecraft/class_8051;
      official e Ldfq;e:Ldfq;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<EquipmentType> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/item/equipment/EquipmentType;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_48839 Lnet/minecraft/class_8051;field_48839:Lcom/mojang/serialization/Codec;
      official f Ldfq;f:Lcom/mojang/serialization/Codec;
    • equipmentSlot

      private final EquipmentSlot equipmentSlot
      Mappings:
      Namespace Name Mixin selector
      named equipmentSlot Lnet/minecraft/item/equipment/EquipmentType;equipmentSlot:Lnet/minecraft/entity/EquipmentSlot;
      intermediary field_41938 Lnet/minecraft/class_8051;field_41938:Lnet/minecraft/class_1304;
      official g Ldfq;g:Lbvr;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/item/equipment/EquipmentType;name:Ljava/lang/String;
      intermediary field_41939 Lnet/minecraft/class_8051;field_41939:Ljava/lang/String;
      official h Ldfq;h:Ljava/lang/String;
    • baseMaxDamage

      private final int baseMaxDamage
      Mappings:
      Namespace Name Mixin selector
      named baseMaxDamage Lnet/minecraft/item/equipment/EquipmentType;baseMaxDamage:I
      intermediary field_49257 Lnet/minecraft/class_8051;field_49257:I
      official i Ldfq;i:I
  • Constructor Details

    • EquipmentType

      private EquipmentType(EquipmentSlot equipmentSlot, int baseMaxDamage, String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/equipment/EquipmentType;<init>(Ljava/lang/String;ILnet/minecraft/entity/EquipmentSlot;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_8051;<init>(Ljava/lang/String;ILnet/minecraft/class_1304;ILjava/lang/String;)V
      official <init> Ldfq;<init>(Ljava/lang/String;ILbvr;ILjava/lang/String;)V
  • Method Details

    • values

      public static EquipmentType[] 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 EquipmentType 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
      named getMaxDamage Lnet/minecraft/item/equipment/EquipmentType;getMaxDamage(I)I
      intermediary method_56690 Lnet/minecraft/class_8051;method_56690(I)I
      official a Ldfq;a(I)I
    • getEquipmentSlot

      public EquipmentSlot getEquipmentSlot()
      Mappings:
      Namespace Name Mixin selector
      named getEquipmentSlot Lnet/minecraft/item/equipment/EquipmentType;getEquipmentSlot()Lnet/minecraft/entity/EquipmentSlot;
      intermediary method_48399 Lnet/minecraft/class_8051;method_48399()Lnet/minecraft/class_1304;
      official a Ldfq;a()Lbvr;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/item/equipment/EquipmentType;getName()Ljava/lang/String;
      intermediary method_48400 Lnet/minecraft/class_8051;method_48400()Ljava/lang/String;
      official b Ldfq;b()Ljava/lang/String;
    • 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
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbba;c()Ljava/lang/String;