Package net.minecraft.world.item
Enum Class ArmorMaterials
- All Implemented Interfaces:
- Serializable,- Comparable<ArmorMaterials>,- Constable,- StringRepresentable,- ArmorMaterial
public enum ArmorMaterials
extends Enum<ArmorMaterials>
implements StringRepresentable, ArmorMaterial
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentableStringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ArmorMaterials>private final intprivate final intprivate static final EnumMap<ArmorItem.Type,Integer> private final floatprivate final Stringprivate final EnumMap<ArmorItem.Type,Integer> private final LazyLoadedValue<Ingredient>private final SoundEventprivate final floatFields inherited from interface net.minecraft.util.StringRepresentablePRE_BUILT_MAP_THRESHOLD
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateArmorMaterials(String p_268171_, int p_268303_, EnumMap<ArmorItem.Type, Integer> p_267941_, int p_268086_, SoundEvent p_268145_, float p_268058_, float p_268180_, Supplier<Ingredient> p_268256_) 
- 
Method SummaryModifier and TypeMethodDescriptionintgetDefenseForType(ArmorItem.Type p_266752_) intgetDurabilityForType(ArmorItem.Type p_266745_) 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- 
CODEC
- 
HEALTH_FUNCTION_FOR_TYPE
- 
name
- 
durabilityMultiplierprivate final int durabilityMultiplier
- 
protectionFunctionForType
- 
enchantmentValueprivate final int enchantmentValue
- 
sound
- 
toughnessprivate final float toughness
- 
knockbackResistanceprivate final float knockbackResistance
- 
repairIngredient
 
- 
- 
Constructor Details- 
ArmorMaterialsprivate ArmorMaterials(String p_268171_, int p_268303_, EnumMap<ArmorItem.Type, Integer> p_267941_, int p_268086_, SoundEvent p_268145_, float p_268058_, float p_268180_, Supplier<Ingredient> p_268256_) 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getDurabilityForType- Specified by:
- getDurabilityForTypein interface- ArmorMaterial
 
- 
getDefenseForType- Specified by:
- getDefenseForTypein interface- ArmorMaterial
 
- 
getEnchantmentValuepublic int getEnchantmentValue()- Specified by:
- getEnchantmentValuein interface- ArmorMaterial
 
- 
getEquipSound- Specified by:
- getEquipSoundin interface- ArmorMaterial
 
- 
getRepairIngredient- Specified by:
- getRepairIngredientin interface- ArmorMaterial
 
- 
getName- Specified by:
- getNamein interface- ArmorMaterial
 
- 
getToughnesspublic float getToughness()- Specified by:
- getToughnessin interface- ArmorMaterial
 
- 
getKnockbackResistancepublic float getKnockbackResistance()- Specified by:
- getKnockbackResistancein interface- ArmorMaterial
 
- 
getSerializedName- Specified by:
- getSerializedNamein interface- StringRepresentable
 
 
-