public enum ArmorMaterials extends Enum<ArmorMaterials> implements ArmorMaterial
| Enum Constant and Description |
|---|
CHAIN |
DIAMOND |
GOLD |
IRON |
LEATHER |
NETHERITE |
TURTLE |
| Modifier and Type | Field and Description |
|---|---|
private static int[] |
BASE_DURABILITY |
private int |
durabilityMultiplier |
private int |
enchantability |
private SoundEvent |
equipSound |
private float |
knockbackResistance |
private String |
name |
private int[] |
protectionAmounts |
private Lazy<Ingredient> |
repairIngredientSupplier |
private float |
toughness |
| Modifier and Type | Method and Description |
|---|---|
int |
getDurability(EquipmentSlot slot) |
int |
getEnchantability() |
SoundEvent |
getEquipSound() |
float |
getKnockbackResistance() |
String |
getName() |
int |
getProtectionAmount(EquipmentSlot slot) |
Ingredient |
getRepairIngredient() |
float |
getToughness() |
static ArmorMaterials |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArmorMaterials[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArmorMaterials LEATHER
public static final ArmorMaterials CHAIN
public static final ArmorMaterials IRON
public static final ArmorMaterials GOLD
public static final ArmorMaterials DIAMOND
public static final ArmorMaterials TURTLE
public static final ArmorMaterials NETHERITE
private static final int[] BASE_DURABILITY
private final String name
private final int durabilityMultiplier
private final int[] protectionAmounts
private final int enchantability
private final SoundEvent equipSound
private final float toughness
private final float knockbackResistance
private final Lazy<Ingredient> repairIngredientSupplier
public static ArmorMaterials[] values()
for (ArmorMaterials c : ArmorMaterials.values()) System.out.println(c);
public static ArmorMaterials valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getDurability(EquipmentSlot slot)
getDurability in interface ArmorMaterialpublic int getProtectionAmount(EquipmentSlot slot)
getProtectionAmount in interface ArmorMaterialpublic int getEnchantability()
getEnchantability in interface ArmorMaterialpublic SoundEvent getEquipSound()
getEquipSound in interface ArmorMaterialpublic Ingredient getRepairIngredient()
getRepairIngredient in interface ArmorMaterial@Environment(value=CLIENT) public String getName()
getName in interface ArmorMaterialpublic float getToughness()
getToughness in interface ArmorMaterialpublic float getKnockbackResistance()
getKnockbackResistance in interface ArmorMaterial