public enum ArmorMaterial extends java.lang.Enum<ArmorMaterial> implements IArmorMaterial
| Enum Constant and Description |
|---|
CHAIN |
DIAMOND |
GOLD |
IRON |
LEATHER |
TURTLE |
| Modifier and Type | Method and Description |
|---|---|
int |
getDamageReductionAmount(EquipmentSlotType slotIn) |
int |
getDurability(EquipmentSlotType slotIn) |
int |
getEnchantability() |
java.lang.String |
getName() |
Ingredient |
getRepairMaterial() |
SoundEvent |
getSoundEvent() |
float |
getToughness() |
static ArmorMaterial |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArmorMaterial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArmorMaterial LEATHER
public static final ArmorMaterial CHAIN
public static final ArmorMaterial IRON
public static final ArmorMaterial GOLD
public static final ArmorMaterial DIAMOND
public static final ArmorMaterial TURTLE
public static ArmorMaterial[] values()
for (ArmorMaterial c : ArmorMaterial.values()) System.out.println(c);
public static ArmorMaterial valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getDurability(EquipmentSlotType slotIn)
getDurability in interface IArmorMaterialpublic int getDamageReductionAmount(EquipmentSlotType slotIn)
getDamageReductionAmount in interface IArmorMaterialpublic int getEnchantability()
getEnchantability in interface IArmorMaterialpublic SoundEvent getSoundEvent()
getSoundEvent in interface IArmorMaterialpublic Ingredient getRepairMaterial()
getRepairMaterial in interface IArmorMaterialpublic java.lang.String getName()
getName in interface IArmorMaterialpublic float getToughness()
getToughness in interface IArmorMaterial