Package net.minecraft.world.item
Enum Class ArmorMaterials
- All Implemented Interfaces:
Serializable,Comparable<ArmorMaterials>,Constable,ArmorMaterial
-
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 static final int[]private final floatprivate final Stringprivate final LazyLoadedValue<Ingredient>private final int[]private final SoundEventprivate final float -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateArmorMaterials(String p_40474_, int p_40475_, int[] p_40476_, int p_40477_, SoundEvent p_40478_, float p_40479_, float p_40480_, Supplier<Ingredient> p_40481_) -
Method Summary
Modifier and TypeMethodDescriptionintgetDefenseForSlot(EquipmentSlot p_40487_) intgetDurabilityForSlot(EquipmentSlot p_40484_) intfloatgetName()floatstatic 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
-
CHAIN
-
IRON
-
GOLD
-
DIAMOND
-
TURTLE
-
NETHERITE
-
-
Field Details
-
HEALTH_PER_SLOT
private static final int[] HEALTH_PER_SLOT -
name
-
durabilityMultiplier
private final int durabilityMultiplier -
slotProtections
private final int[] slotProtections -
enchantmentValue
private final int enchantmentValue -
sound
-
toughness
private final float toughness -
knockbackResistance
private final float knockbackResistance -
repairIngredient
-
-
Constructor Details
-
ArmorMaterials
private ArmorMaterials(String p_40474_, int p_40475_, int[] p_40476_, int p_40477_, SoundEvent p_40478_, float p_40479_, float p_40480_, Supplier<Ingredient> p_40481_)
-
-
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
-
getDurabilityForSlot
- Specified by:
getDurabilityForSlotin interfaceArmorMaterial
-
getDefenseForSlot
- Specified by:
getDefenseForSlotin interfaceArmorMaterial
-
getEnchantmentValue
public int getEnchantmentValue()- Specified by:
getEnchantmentValuein interfaceArmorMaterial
-
getEquipSound
- Specified by:
getEquipSoundin interfaceArmorMaterial
-
getRepairIngredient
- Specified by:
getRepairIngredientin interfaceArmorMaterial
-
getName
- Specified by:
getNamein interfaceArmorMaterial
-
getToughness
public float getToughness()- Specified by:
getToughnessin interfaceArmorMaterial
-
getKnockbackResistance
public float getKnockbackResistance()- Specified by:
getKnockbackResistancein interfaceArmorMaterial
-