Package net.minecraft.item
Enum Class ArmorMaterials
- All Implemented Interfaces:
Serializable,Comparable<ArmorMaterials>,Constable,ArmorMaterial
- Mappings:
Namespace Name official bxtintermediary net/minecraft/class_1740named net/minecraft/item/ArmorMaterials
-
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 static final int[]private final intprivate final intprivate final SoundEventprivate final floatprivate final Stringprivate final int[]private final Lazy<Ingredient>private final float -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateArmorMaterials(String name, int durabilityMultiplier, int[] protectionAmounts, int enchantability, SoundEvent equipSound, float toughness, float knockbackResistance, Supplier<Ingredient> repairIngredientSupplier) -
Method Summary
Modifier and TypeMethodDescriptionintgetDurability(EquipmentSlot slot) intfloatgetName()intfloatstatic ArmorMaterialsReturns the enum constant of this class with the specified name.static ArmorMaterials[]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 aLbxt;a:Lbxt;intermediary field_7897Lnet/minecraft/class_1740;field_7897:Lnet/minecraft/class_1740;named LEATHERLnet/minecraft/item/ArmorMaterials;LEATHER:Lnet/minecraft/item/ArmorMaterials;
-
CHAIN
- Mappings:
Namespace Name Mixin selector official bLbxt;b:Lbxt;intermediary field_7887Lnet/minecraft/class_1740;field_7887:Lnet/minecraft/class_1740;named CHAINLnet/minecraft/item/ArmorMaterials;CHAIN:Lnet/minecraft/item/ArmorMaterials;
-
IRON
- Mappings:
Namespace Name Mixin selector official cLbxt;c:Lbxt;intermediary field_7892Lnet/minecraft/class_1740;field_7892:Lnet/minecraft/class_1740;named IRONLnet/minecraft/item/ArmorMaterials;IRON:Lnet/minecraft/item/ArmorMaterials;
-
GOLD
- Mappings:
Namespace Name Mixin selector official dLbxt;d:Lbxt;intermediary field_7895Lnet/minecraft/class_1740;field_7895:Lnet/minecraft/class_1740;named GOLDLnet/minecraft/item/ArmorMaterials;GOLD:Lnet/minecraft/item/ArmorMaterials;
-
DIAMOND
- Mappings:
Namespace Name Mixin selector official eLbxt;e:Lbxt;intermediary field_7889Lnet/minecraft/class_1740;field_7889:Lnet/minecraft/class_1740;named DIAMONDLnet/minecraft/item/ArmorMaterials;DIAMOND:Lnet/minecraft/item/ArmorMaterials;
-
TURTLE
- Mappings:
Namespace Name Mixin selector official fLbxt;f:Lbxt;intermediary field_7890Lnet/minecraft/class_1740;field_7890:Lnet/minecraft/class_1740;named TURTLELnet/minecraft/item/ArmorMaterials;TURTLE:Lnet/minecraft/item/ArmorMaterials;
-
NETHERITE
- Mappings:
Namespace Name Mixin selector official gLbxt;g:Lbxt;intermediary field_21977Lnet/minecraft/class_1740;field_21977:Lnet/minecraft/class_1740;named NETHERITELnet/minecraft/item/ArmorMaterials;NETHERITE:Lnet/minecraft/item/ArmorMaterials;
-
-
Field Details
-
BASE_DURABILITY
private static final int[] BASE_DURABILITY- Mappings:
Namespace Name Mixin selector official hLbxt;h:[Iintermediary field_7891Lnet/minecraft/class_1740;field_7891:[Inamed BASE_DURABILITYLnet/minecraft/item/ArmorMaterials;BASE_DURABILITY:[I
-
name
- Mappings:
Namespace Name Mixin selector official iLbxt;i:Ljava/lang/String;intermediary field_7884Lnet/minecraft/class_1740;field_7884:Ljava/lang/String;named nameLnet/minecraft/item/ArmorMaterials;name:Ljava/lang/String;
-
durabilityMultiplier
private final int durabilityMultiplier- Mappings:
Namespace Name Mixin selector official jLbxt;j:Iintermediary field_7883Lnet/minecraft/class_1740;field_7883:Inamed durabilityMultiplierLnet/minecraft/item/ArmorMaterials;durabilityMultiplier:I
-
protectionAmounts
private final int[] protectionAmounts- Mappings:
Namespace Name Mixin selector official kLbxt;k:[Iintermediary field_7893Lnet/minecraft/class_1740;field_7893:[Inamed protectionAmountsLnet/minecraft/item/ArmorMaterials;protectionAmounts:[I
-
enchantability
private final int enchantability- Mappings:
Namespace Name Mixin selector official lLbxt;l:Iintermediary field_7896Lnet/minecraft/class_1740;field_7896:Inamed enchantabilityLnet/minecraft/item/ArmorMaterials;enchantability:I
-
equipSound
- Mappings:
Namespace Name Mixin selector official mLbxt;m:Lajd;intermediary field_7886Lnet/minecraft/class_1740;field_7886:Lnet/minecraft/class_3414;named equipSoundLnet/minecraft/item/ArmorMaterials;equipSound:Lnet/minecraft/sound/SoundEvent;
-
toughness
private final float toughness- Mappings:
Namespace Name Mixin selector official nLbxt;n:Fintermediary field_7894Lnet/minecraft/class_1740;field_7894:Fnamed toughnessLnet/minecraft/item/ArmorMaterials;toughness:F
-
knockbackResistance
private final float knockbackResistance- Mappings:
Namespace Name Mixin selector official oLbxt;o:Fintermediary field_21978Lnet/minecraft/class_1740;field_21978:Fnamed knockbackResistanceLnet/minecraft/item/ArmorMaterials;knockbackResistance:F
-
repairIngredientSupplier
- Mappings:
Namespace Name Mixin selector official pLbxt;p:Lalk;intermediary field_7885Lnet/minecraft/class_1740;field_7885:Lnet/minecraft/class_3528;named repairIngredientSupplierLnet/minecraft/item/ArmorMaterials;repairIngredientSupplier:Lnet/minecraft/util/Lazy;
-
-
Constructor Details
-
ArmorMaterials
private ArmorMaterials(String name, int durabilityMultiplier, int[] protectionAmounts, int enchantability, SoundEvent equipSound, float toughness, float knockbackResistance, Supplier<Ingredient> repairIngredientSupplier) - Mappings:
Namespace Name Mixin selector official <init>Lbxt;<init>(Ljava/lang/String;ILjava/lang/String;I[IILajd;FFLjava/util/function/Supplier;)Vintermediary <init>Lnet/minecraft/class_1740;<init>(Ljava/lang/String;ILjava/lang/String;I[IILnet/minecraft/class_3414;FFLjava/util/function/Supplier;)Vnamed <init>Lnet/minecraft/item/ArmorMaterials;<init>(Ljava/lang/String;ILjava/lang/String;I[IILnet/minecraft/sound/SoundEvent;FFLjava/util/function/Supplier;)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
- Specified by:
getDurabilityin interfaceArmorMaterial- Mappings:
Namespace Name Mixin selector official aLbxs;a(Lbav;)Iintermediary method_7696Lnet/minecraft/class_1741;method_7696(Lnet/minecraft/class_1304;)Inamed getDurabilityLnet/minecraft/item/ArmorMaterial;getDurability(Lnet/minecraft/entity/EquipmentSlot;)I
-
getProtectionAmount
- Specified by:
getProtectionAmountin interfaceArmorMaterial- Mappings:
Namespace Name Mixin selector official bLbxs;b(Lbav;)Iintermediary method_7697Lnet/minecraft/class_1741;method_7697(Lnet/minecraft/class_1304;)Inamed getProtectionAmountLnet/minecraft/item/ArmorMaterial;getProtectionAmount(Lnet/minecraft/entity/EquipmentSlot;)I
-
getEnchantability
public int getEnchantability()- Specified by:
getEnchantabilityin interfaceArmorMaterial- Mappings:
Namespace Name Mixin selector official aLbxs;a()Iintermediary method_7699Lnet/minecraft/class_1741;method_7699()Inamed getEnchantabilityLnet/minecraft/item/ArmorMaterial;getEnchantability()I
-
getEquipSound
- Specified by:
getEquipSoundin interfaceArmorMaterial- Mappings:
Namespace Name Mixin selector official bLbxs;b()Lajd;intermediary method_7698Lnet/minecraft/class_1741;method_7698()Lnet/minecraft/class_3414;named getEquipSoundLnet/minecraft/item/ArmorMaterial;getEquipSound()Lnet/minecraft/sound/SoundEvent;
-
getRepairIngredient
- Specified by:
getRepairIngredientin interfaceArmorMaterial- Mappings:
Namespace Name Mixin selector official cLbxs;c()Lccp;intermediary method_7695Lnet/minecraft/class_1741;method_7695()Lnet/minecraft/class_1856;named getRepairIngredientLnet/minecraft/item/ArmorMaterial;getRepairIngredient()Lnet/minecraft/recipe/Ingredient;
-
getName
- Specified by:
getNamein interfaceArmorMaterial- Mappings:
Namespace Name Mixin selector official dLbxs;d()Ljava/lang/String;intermediary method_7694Lnet/minecraft/class_1741;method_7694()Ljava/lang/String;named getNameLnet/minecraft/item/ArmorMaterial;getName()Ljava/lang/String;
-
getToughness
public float getToughness()- Specified by:
getToughnessin interfaceArmorMaterial- Mappings:
Namespace Name Mixin selector official eLbxs;e()Fintermediary method_7700Lnet/minecraft/class_1741;method_7700()Fnamed getToughnessLnet/minecraft/item/ArmorMaterial;getToughness()F
-
getKnockbackResistance
public float getKnockbackResistance()- Specified by:
getKnockbackResistancein interfaceArmorMaterial- Mappings:
Namespace Name Mixin selector official fLbxs;f()Fintermediary method_24355Lnet/minecraft/class_1741;method_24355()Fnamed getKnockbackResistanceLnet/minecraft/item/ArmorMaterial;getKnockbackResistance()F
-