Package net.minecraft.item
Enum Class ArmorMaterials
- All Implemented Interfaces:
Serializable
,Comparable<ArmorMaterials>
,Constable
,ArmorMaterial
- Mappings:
Namespace Name official bxt
intermediary net/minecraft/class_1740
named 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
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int[]
private final int
private final int
private final SoundEvent
private final float
private final String
private final int[]
private final Lazy<Ingredient>
private final float
-
Constructor Summary
ModifierConstructorDescriptionprivate
ArmorMaterials
(String name, int durabilityMultiplier, int[] protectionAmounts, int enchantability, SoundEvent equipSound, float toughness, float knockbackResistance, Supplier<Ingredient> repairIngredientSupplier) -
Method Summary
Modifier and TypeMethodDescriptionint
getDurability
(EquipmentSlot slot) int
float
getName()
int
float
static ArmorMaterials
Returns 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 a
Lbxt;a:Lbxt;
intermediary field_7897
Lnet/minecraft/class_1740;field_7897:Lnet/minecraft/class_1740;
named LEATHER
Lnet/minecraft/item/ArmorMaterials;LEATHER:Lnet/minecraft/item/ArmorMaterials;
-
CHAIN
- Mappings:
Namespace Name Mixin selector official b
Lbxt;b:Lbxt;
intermediary field_7887
Lnet/minecraft/class_1740;field_7887:Lnet/minecraft/class_1740;
named CHAIN
Lnet/minecraft/item/ArmorMaterials;CHAIN:Lnet/minecraft/item/ArmorMaterials;
-
IRON
- Mappings:
Namespace Name Mixin selector official c
Lbxt;c:Lbxt;
intermediary field_7892
Lnet/minecraft/class_1740;field_7892:Lnet/minecraft/class_1740;
named IRON
Lnet/minecraft/item/ArmorMaterials;IRON:Lnet/minecraft/item/ArmorMaterials;
-
GOLD
- Mappings:
Namespace Name Mixin selector official d
Lbxt;d:Lbxt;
intermediary field_7895
Lnet/minecraft/class_1740;field_7895:Lnet/minecraft/class_1740;
named GOLD
Lnet/minecraft/item/ArmorMaterials;GOLD:Lnet/minecraft/item/ArmorMaterials;
-
DIAMOND
- Mappings:
Namespace Name Mixin selector official e
Lbxt;e:Lbxt;
intermediary field_7889
Lnet/minecraft/class_1740;field_7889:Lnet/minecraft/class_1740;
named DIAMOND
Lnet/minecraft/item/ArmorMaterials;DIAMOND:Lnet/minecraft/item/ArmorMaterials;
-
TURTLE
- Mappings:
Namespace Name Mixin selector official f
Lbxt;f:Lbxt;
intermediary field_7890
Lnet/minecraft/class_1740;field_7890:Lnet/minecraft/class_1740;
named TURTLE
Lnet/minecraft/item/ArmorMaterials;TURTLE:Lnet/minecraft/item/ArmorMaterials;
-
NETHERITE
- Mappings:
Namespace Name Mixin selector official g
Lbxt;g:Lbxt;
intermediary field_21977
Lnet/minecraft/class_1740;field_21977:Lnet/minecraft/class_1740;
named NETHERITE
Lnet/minecraft/item/ArmorMaterials;NETHERITE:Lnet/minecraft/item/ArmorMaterials;
-
-
Field Details
-
BASE_DURABILITY
private static final int[] BASE_DURABILITY- Mappings:
Namespace Name Mixin selector official h
Lbxt;h:[I
intermediary field_7891
Lnet/minecraft/class_1740;field_7891:[I
named BASE_DURABILITY
Lnet/minecraft/item/ArmorMaterials;BASE_DURABILITY:[I
-
name
- Mappings:
Namespace Name Mixin selector official i
Lbxt;i:Ljava/lang/String;
intermediary field_7884
Lnet/minecraft/class_1740;field_7884:Ljava/lang/String;
named name
Lnet/minecraft/item/ArmorMaterials;name:Ljava/lang/String;
-
durabilityMultiplier
private final int durabilityMultiplier- Mappings:
Namespace Name Mixin selector official j
Lbxt;j:I
intermediary field_7883
Lnet/minecraft/class_1740;field_7883:I
named durabilityMultiplier
Lnet/minecraft/item/ArmorMaterials;durabilityMultiplier:I
-
protectionAmounts
private final int[] protectionAmounts- Mappings:
Namespace Name Mixin selector official k
Lbxt;k:[I
intermediary field_7893
Lnet/minecraft/class_1740;field_7893:[I
named protectionAmounts
Lnet/minecraft/item/ArmorMaterials;protectionAmounts:[I
-
enchantability
private final int enchantability- Mappings:
Namespace Name Mixin selector official l
Lbxt;l:I
intermediary field_7896
Lnet/minecraft/class_1740;field_7896:I
named enchantability
Lnet/minecraft/item/ArmorMaterials;enchantability:I
-
equipSound
- Mappings:
Namespace Name Mixin selector official m
Lbxt;m:Lajd;
intermediary field_7886
Lnet/minecraft/class_1740;field_7886:Lnet/minecraft/class_3414;
named equipSound
Lnet/minecraft/item/ArmorMaterials;equipSound:Lnet/minecraft/sound/SoundEvent;
-
toughness
private final float toughness- Mappings:
Namespace Name Mixin selector official n
Lbxt;n:F
intermediary field_7894
Lnet/minecraft/class_1740;field_7894:F
named toughness
Lnet/minecraft/item/ArmorMaterials;toughness:F
-
knockbackResistance
private final float knockbackResistance- Mappings:
Namespace Name Mixin selector official o
Lbxt;o:F
intermediary field_21978
Lnet/minecraft/class_1740;field_21978:F
named knockbackResistance
Lnet/minecraft/item/ArmorMaterials;knockbackResistance:F
-
repairIngredientSupplier
- Mappings:
Namespace Name Mixin selector official p
Lbxt;p:Lalk;
intermediary field_7885
Lnet/minecraft/class_1740;field_7885:Lnet/minecraft/class_3528;
named repairIngredientSupplier
Lnet/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;)V
intermediary <init>
Lnet/minecraft/class_1740;<init>(Ljava/lang/String;ILjava/lang/String;I[IILnet/minecraft/class_3414;FFLjava/util/function/Supplier;)V
named <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:
getDurability
in interfaceArmorMaterial
- Mappings:
Namespace Name Mixin selector official a
Lbxs;a(Lbav;)I
intermediary method_7696
Lnet/minecraft/class_1741;method_7696(Lnet/minecraft/class_1304;)I
named getDurability
Lnet/minecraft/item/ArmorMaterial;getDurability(Lnet/minecraft/entity/EquipmentSlot;)I
-
getProtectionAmount
- Specified by:
getProtectionAmount
in interfaceArmorMaterial
- Mappings:
Namespace Name Mixin selector official b
Lbxs;b(Lbav;)I
intermediary method_7697
Lnet/minecraft/class_1741;method_7697(Lnet/minecraft/class_1304;)I
named getProtectionAmount
Lnet/minecraft/item/ArmorMaterial;getProtectionAmount(Lnet/minecraft/entity/EquipmentSlot;)I
-
getEnchantability
public int getEnchantability()- Specified by:
getEnchantability
in interfaceArmorMaterial
- Mappings:
Namespace Name Mixin selector official a
Lbxs;a()I
intermediary method_7699
Lnet/minecraft/class_1741;method_7699()I
named getEnchantability
Lnet/minecraft/item/ArmorMaterial;getEnchantability()I
-
getEquipSound
- Specified by:
getEquipSound
in interfaceArmorMaterial
- Mappings:
Namespace Name Mixin selector official b
Lbxs;b()Lajd;
intermediary method_7698
Lnet/minecraft/class_1741;method_7698()Lnet/minecraft/class_3414;
named getEquipSound
Lnet/minecraft/item/ArmorMaterial;getEquipSound()Lnet/minecraft/sound/SoundEvent;
-
getRepairIngredient
- Specified by:
getRepairIngredient
in interfaceArmorMaterial
- Mappings:
Namespace Name Mixin selector official c
Lbxs;c()Lccp;
intermediary method_7695
Lnet/minecraft/class_1741;method_7695()Lnet/minecraft/class_1856;
named getRepairIngredient
Lnet/minecraft/item/ArmorMaterial;getRepairIngredient()Lnet/minecraft/recipe/Ingredient;
-
getName
- Specified by:
getName
in interfaceArmorMaterial
- Mappings:
Namespace Name Mixin selector official d
Lbxs;d()Ljava/lang/String;
intermediary method_7694
Lnet/minecraft/class_1741;method_7694()Ljava/lang/String;
named getName
Lnet/minecraft/item/ArmorMaterial;getName()Ljava/lang/String;
-
getToughness
public float getToughness()- Specified by:
getToughness
in interfaceArmorMaterial
- Mappings:
Namespace Name Mixin selector official e
Lbxs;e()F
intermediary method_7700
Lnet/minecraft/class_1741;method_7700()F
named getToughness
Lnet/minecraft/item/ArmorMaterial;getToughness()F
-
getKnockbackResistance
public float getKnockbackResistance()- Specified by:
getKnockbackResistance
in interfaceArmorMaterial
- Mappings:
Namespace Name Mixin selector official f
Lbxs;f()F
intermediary method_24355
Lnet/minecraft/class_1741;method_24355()F
named getKnockbackResistance
Lnet/minecraft/item/ArmorMaterial;getKnockbackResistance()F
-