Package net.minecraft.item
Enum Class ArmorItem.Type
- All Implemented Interfaces:
Serializable,Comparable<ArmorItem.Type>,Constable,StringIdentifiable
- Enclosing class:
ArmorItem
- Mappings:
Namespace Name named net/minecraft/item/ArmorItem$Typeintermediary net/minecraft/class_1738$class_8051official csf$a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intstatic final com.mojang.serialization.Codec<ArmorItem.Type> private final EquipmentSlotprivate final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateType(EquipmentSlot equipmentSlot, int baseMaxDamage, String name) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.intgetMaxDamage(int multiplier) getName()booleanstatic ArmorItem.TypeReturns the enum constant of this class with the specified name.static ArmorItem.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HELMET
- Mappings:
Namespace Name Mixin selector named HELMETLnet/minecraft/item/ArmorItem$Type;HELMET:Lnet/minecraft/item/ArmorItem$Type;intermediary field_41934Lnet/minecraft/class_1738$class_8051;field_41934:Lnet/minecraft/class_1738$class_8051;official aLcsf$a;a:Lcsf$a;
-
CHESTPLATE
- Mappings:
Namespace Name Mixin selector named CHESTPLATELnet/minecraft/item/ArmorItem$Type;CHESTPLATE:Lnet/minecraft/item/ArmorItem$Type;intermediary field_41935Lnet/minecraft/class_1738$class_8051;field_41935:Lnet/minecraft/class_1738$class_8051;official bLcsf$a;b:Lcsf$a;
-
LEGGINGS
- Mappings:
Namespace Name Mixin selector named LEGGINGSLnet/minecraft/item/ArmorItem$Type;LEGGINGS:Lnet/minecraft/item/ArmorItem$Type;intermediary field_41936Lnet/minecraft/class_1738$class_8051;field_41936:Lnet/minecraft/class_1738$class_8051;official cLcsf$a;c:Lcsf$a;
-
BOOTS
- Mappings:
Namespace Name Mixin selector named BOOTSLnet/minecraft/item/ArmorItem$Type;BOOTS:Lnet/minecraft/item/ArmorItem$Type;intermediary field_41937Lnet/minecraft/class_1738$class_8051;field_41937:Lnet/minecraft/class_1738$class_8051;official dLcsf$a;d:Lcsf$a;
-
BODY
- Mappings:
Namespace Name Mixin selector named BODYLnet/minecraft/item/ArmorItem$Type;BODY:Lnet/minecraft/item/ArmorItem$Type;intermediary field_48838Lnet/minecraft/class_1738$class_8051;field_48838:Lnet/minecraft/class_1738$class_8051;official eLcsf$a;e:Lcsf$a;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/ArmorItem$Type;CODEC:Lcom/mojang/serialization/Codec;intermediary field_48839Lnet/minecraft/class_1738$class_8051;field_48839:Lcom/mojang/serialization/Codec;official fLcsf$a;f:Lcom/mojang/serialization/Codec;
-
equipmentSlot
- Mappings:
Namespace Name Mixin selector named equipmentSlotLnet/minecraft/item/ArmorItem$Type;equipmentSlot:Lnet/minecraft/entity/EquipmentSlot;intermediary field_41938Lnet/minecraft/class_1738$class_8051;field_41938:Lnet/minecraft/class_1304;official gLcsf$a;g:Lbsy;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/item/ArmorItem$Type;name:Ljava/lang/String;intermediary field_41939Lnet/minecraft/class_1738$class_8051;field_41939:Ljava/lang/String;official hLcsf$a;h:Ljava/lang/String;
-
baseMaxDamage
private final int baseMaxDamage- Mappings:
Namespace Name Mixin selector named baseMaxDamageLnet/minecraft/item/ArmorItem$Type;baseMaxDamage:Iintermediary field_49257Lnet/minecraft/class_1738$class_8051;field_49257:Iofficial iLcsf$a;i:I
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/item/ArmorItem$Type;<init>(Ljava/lang/String;ILnet/minecraft/entity/EquipmentSlot;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1738$class_8051;<init>(Ljava/lang/String;ILnet/minecraft/class_1304;ILjava/lang/String;)Vofficial <init>Lcsf$a;<init>(Ljava/lang/String;ILbsy;ILjava/lang/String;)V
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getMaxDamage
public int getMaxDamage(int multiplier) - Mappings:
Namespace Name Mixin selector named getMaxDamageLnet/minecraft/item/ArmorItem$Type;getMaxDamage(I)Iintermediary method_56690Lnet/minecraft/class_1738$class_8051;method_56690(I)Iofficial aLcsf$a;a(I)I
-
getEquipmentSlot
- Mappings:
Namespace Name Mixin selector named getEquipmentSlotLnet/minecraft/item/ArmorItem$Type;getEquipmentSlot()Lnet/minecraft/entity/EquipmentSlot;intermediary method_48399Lnet/minecraft/class_1738$class_8051;method_48399()Lnet/minecraft/class_1304;official aLcsf$a;a()Lbsy;
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/item/ArmorItem$Type;getName()Ljava/lang/String;intermediary method_48400Lnet/minecraft/class_1738$class_8051;method_48400()Ljava/lang/String;official bLcsf$a;b()Ljava/lang/String;
-
isTrimmable
public boolean isTrimmable()- Mappings:
Namespace Name Mixin selector named isTrimmableLnet/minecraft/item/ArmorItem$Type;isTrimmable()Zintermediary method_56691Lnet/minecraft/class_1738$class_8051;method_56691()Zofficial dLcsf$a;d()Z
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLazk;c()Ljava/lang/String;
-