net.minecraft.world.item

public enum ArmorMaterials

implements StringRepresentable, ArmorMaterial

cgr
net.minecraft.world.item.ArmorMaterials
net.minecraft.class_1740
net.minecraft.item.ArmorMaterials
net.minecraft.src.C_1318_
net.minecraft.world.item.EnumArmorMaterial

Enum constant summary

Enum Constant
a
LEATHER
field_7897
LEATHER
LEATHER
b
CHAIN
field_7887
CHAIN
CHAIN
c
IRON
field_7892
IRON
IRON
d
GOLD
field_7895
GOLD
GOLD
e
DIAMOND
field_7889
DIAMOND
DIAMOND
f
TURTLE
field_7890
TURTLE
TURTLE
g
NETHERITE
field_21977
NETHERITE
NETHERITE

Field summary

Modifier and TypeField
public static final StringRepresentable$EnumCodec<ArmorMaterials>
h
CODEC
field_41941
CODEC
f_265935_
private static final EnumMap<ArmorItem$Type, Integer>
i
HEALTH_FUNCTION_FOR_TYPE
field_41942
BASE_DURABILITY
f_266010_
private final String
j
name
field_7884
name
f_40461_
private final int
k
durabilityMultiplier
field_7883
durabilityMultiplier
f_40462_
private final EnumMap<ArmorItem$Type, Integer>
l
protectionFunctionForType
field_41943
protectionAmounts
f_265966_
private final int
m
enchantmentValue
field_7896
enchantability
f_40464_
private final SoundEvent
n
sound
field_7886
equipSound
f_40465_
private final float
o
toughness
field_7894
toughness
f_40466_
private final float
p
knockbackResistance
field_21978
knockbackResistance
f_40467_
private final LazyLoadedValue<Ingredient>
q
repairIngredient
field_7885
repairIngredientSupplier
f_40468_

Constructor summary

ModifierConstructor
private (String p_268154_, int p_268171_, EnumMap<ArmorItem$Type, Integer> name, int durabilityMultiplier, SoundEvent protectionAmounts, float enchantability, float equipSound, Supplier<Ingredient> toughness)

Method summary

Modifier and TypeMethod
public int
a(cgp$a arg0)
getDurabilityForType(ArmorItem$Type arg0)
method_48402(class_1738$class_8051 arg0)
getDurability(ArmorItem$Type arg0)
m_266425_(C_1313_$C_265803_ arg0)
public int
b(cgp$a arg0)
getDefenseForType(ArmorItem$Type arg0)
method_48403(class_1738$class_8051 arg0)
getProtection(ArmorItem$Type arg0)
m_7366_(C_1313_$C_265803_ arg0)
public int
a()
getEnchantmentValue()
method_7699()
getEnchantability()
m_6646_()
public SoundEvent
b()
getEquipSound()
method_7698()
getEquipSound()
m_7344_()
public Ingredient
d()
getRepairIngredient()
method_7695()
getRepairIngredient()
m_6230_()
public String
e()
getName()
method_7694()
getName()
m_6082_()
public float
f()
getToughness()
method_7700()
getToughness()
m_6651_()
public float
g()
getKnockbackResistance()
method_24355()
getKnockbackResistance()
m_6649_()
public String
c()
getSerializedName()
method_15434()
asString()
m_7912_()