Package net.minecraft.item
Enum ArmorItem.Material
- All Implemented Interfaces:
Serializable,Comparable<ArmorItem.Material>,java.lang.constant.Constable
- Enclosing class:
- ArmorItem
public static enum ArmorItem.Material extends Enum<ArmorItem.Material>
- Mappings:
Namespace Name official yj$aintermediary net/minecraft/class_2012$class_2013named 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
-
Field Summary
Fields Modifier and Type Field Description private intdurabilityprivate intenchantabilityprivate Stringnameprivate int[]protection -
Constructor Summary
-
Method Summary
Modifier and Type Method Description intgetDurability(int slot)intgetEnchantability()StringgetName()intgetProtection(int slot)ItemgetRepairIngredient()static ArmorItem.MaterialvalueOf(String name)Returns the enum constant of this type with the specified name.static ArmorItem.Material[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LEATHER
- Mappings:
Namespace Name Mixin selector official aLyj$a;a:Lyj$a;intermediary field_8537Lnet/minecraft/class_2012$class_2013;field_8537:Lnet/minecraft/class_2012$class_2013;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_8538Lnet/minecraft/class_2012$class_2013;field_8538:Lnet/minecraft/class_2012$class_2013;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_8539Lnet/minecraft/class_2012$class_2013;field_8539:Lnet/minecraft/class_2012$class_2013;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_8540Lnet/minecraft/class_2012$class_2013;field_8540:Lnet/minecraft/class_2012$class_2013;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_8541Lnet/minecraft/class_2012$class_2013;field_8541:Lnet/minecraft/class_2012$class_2013;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_8542Lnet/minecraft/class_2012$class_2013;field_8542: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_8543Lnet/minecraft/class_2012$class_2013;field_8543:Inamed durabilityLnet/minecraft/item/ArmorItem$Material;durability:I
-
protection
private final int[] protection- Mappings:
Namespace Name Mixin selector official hLyj$a;h:[Iintermediary field_8544Lnet/minecraft/class_2012$class_2013;field_8544:[Inamed protectionLnet/minecraft/item/ArmorItem$Material;protection:[I
-
enchantability
private final int enchantability- Mappings:
Namespace Name Mixin selector official iLyj$a;i:Iintermediary field_8545Lnet/minecraft/class_2012$class_2013;field_8545: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_2012$class_2013;<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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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_8176Lnet/minecraft/class_2012$class_2013;method_8176(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_8178Lnet/minecraft/class_2012$class_2013;method_8178(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_8175Lnet/minecraft/class_2012$class_2013;method_8175()Inamed getEnchantabilityLnet/minecraft/item/ArmorItem$Material;getEnchantability()I
-
getRepairIngredient
- Mappings:
Namespace Name Mixin selector official bLyj$a;b()Lzw;intermediary method_8177Lnet/minecraft/class_2012$class_2013;method_8177()Lnet/minecraft/class_2054;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_8179Lnet/minecraft/class_2012$class_2013;method_8179()Ljava/lang/String;named getNameLnet/minecraft/item/ArmorItem$Material;getName()Ljava/lang/String;
-