Package net.minecraft.item
Enum Class ArmorItem.Material
- All Implemented Interfaces:
Serializable,Comparable<ArmorItem.Material>,Constable
- Enclosing class:
- ArmorItem
- Mappings:
Namespace Name official yj$aintermediary net/minecraft/class_1028$class_1029named net/minecraft/item/ArmorItem$Material
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final Stringprivate final int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDurability(int slot) intgetName()intgetProtection(int slot) static ArmorItem.MaterialReturns the enum constant of this class with the specified name.static ArmorItem.Material[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEATHER
- Mappings:
Namespace Name Mixin selector official aLyj$a;a:Lyj$a;intermediary field_12154Lnet/minecraft/class_1028$class_1029;field_12154:Lnet/minecraft/class_1028$class_1029;named LEATHERLnet/minecraft/item/ArmorItem$Material;LEATHER:Lnet/minecraft/item/ArmorItem$Material;
-
CHAIN
- Mappings:
Namespace Name Mixin selector official bLyj$a;b:Lyj$a;intermediary field_4162Lnet/minecraft/class_1028$class_1029;field_4162:Lnet/minecraft/class_1028$class_1029;named CHAINLnet/minecraft/item/ArmorItem$Material;CHAIN:Lnet/minecraft/item/ArmorItem$Material;
-
IRON
- Mappings:
Namespace Name Mixin selector official cLyj$a;c:Lyj$a;intermediary field_4163Lnet/minecraft/class_1028$class_1029;field_4163:Lnet/minecraft/class_1028$class_1029;named IRONLnet/minecraft/item/ArmorItem$Material;IRON:Lnet/minecraft/item/ArmorItem$Material;
-
GOLD
- Mappings:
Namespace Name Mixin selector official dLyj$a;d:Lyj$a;intermediary field_4164Lnet/minecraft/class_1028$class_1029;field_4164:Lnet/minecraft/class_1028$class_1029;named GOLDLnet/minecraft/item/ArmorItem$Material;GOLD:Lnet/minecraft/item/ArmorItem$Material;
-
DIAMOND
- Mappings:
Namespace Name Mixin selector official eLyj$a;e:Lyj$a;intermediary field_4165Lnet/minecraft/class_1028$class_1029;field_4165:Lnet/minecraft/class_1028$class_1029;named DIAMONDLnet/minecraft/item/ArmorItem$Material;DIAMOND:Lnet/minecraft/item/ArmorItem$Material;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official fLyj$a;f:Ljava/lang/String;intermediary field_12155Lnet/minecraft/class_1028$class_1029;field_12155:Ljava/lang/String;named nameLnet/minecraft/item/ArmorItem$Material;name:Ljava/lang/String;
-
durability
private final int durability- Mappings:
Namespace Name Mixin selector official gLyj$a;g:Iintermediary field_4166Lnet/minecraft/class_1028$class_1029;field_4166:Inamed durabilityLnet/minecraft/item/ArmorItem$Material;durability:I
-
protection
private final int[] protection- Mappings:
Namespace Name Mixin selector official hLyj$a;h:[Iintermediary field_4167Lnet/minecraft/class_1028$class_1029;field_4167:[Inamed protectionLnet/minecraft/item/ArmorItem$Material;protection:[I
-
enchantability
private final int enchantability- Mappings:
Namespace Name Mixin selector official iLyj$a;i:Iintermediary field_4168Lnet/minecraft/class_1028$class_1029;field_4168:Inamed enchantabilityLnet/minecraft/item/ArmorItem$Material;enchantability:I
-
-
Constructor Details
-
Material
- Mappings:
Namespace Name Mixin selector official <init>Lyj$a;<init>(Ljava/lang/String;ILjava/lang/String;I[II)Vintermediary <init>Lnet/minecraft/class_1028$class_1029;<init>(Ljava/lang/String;ILjava/lang/String;I[II)Vnamed <init>Lnet/minecraft/item/ArmorItem$Material;<init>(Ljava/lang/String;ILjava/lang/String;I[II)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
-
getDurability
public int getDurability(int slot) - Mappings:
Namespace Name Mixin selector official aLyj$a;a(I)Iintermediary method_3306Lnet/minecraft/class_1028$class_1029;method_3306(I)Inamed getDurabilityLnet/minecraft/item/ArmorItem$Material;getDurability(I)I
-
getProtection
public int getProtection(int slot) - Mappings:
Namespace Name Mixin selector official bLyj$a;b(I)Iintermediary method_3307Lnet/minecraft/class_1028$class_1029;method_3307(I)Inamed getProtectionLnet/minecraft/item/ArmorItem$Material;getProtection(I)I
-
getEnchantability
public int getEnchantability()- Mappings:
Namespace Name Mixin selector official aLyj$a;a()Iintermediary method_3305Lnet/minecraft/class_1028$class_1029;method_3305()Inamed getEnchantabilityLnet/minecraft/item/ArmorItem$Material;getEnchantability()I
-
getRepairIngredient
- Mappings:
Namespace Name Mixin selector official bLyj$a;b()Lzw;intermediary method_6339Lnet/minecraft/class_1028$class_1029;method_6339()Lnet/minecraft/class_1069;named getRepairIngredientLnet/minecraft/item/ArmorItem$Material;getRepairIngredient()Lnet/minecraft/item/Item;
-
getName
- Mappings:
Namespace Name Mixin selector official cLyj$a;c()Ljava/lang/String;intermediary method_11266Lnet/minecraft/class_1028$class_1029;method_11266()Ljava/lang/String;named getNameLnet/minecraft/item/ArmorItem$Material;getName()Ljava/lang/String;
-