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 IArmorMaterial
public int getDamageReductionAmount(EquipmentSlotType slotIn)
getDamageReductionAmount
in interface IArmorMaterial
public int getEnchantability()
getEnchantability
in interface IArmorMaterial
public SoundEvent getSoundEvent()
getSoundEvent
in interface IArmorMaterial
public Ingredient getRepairMaterial()
getRepairMaterial
in interface IArmorMaterial
public java.lang.String getName()
getName
in interface IArmorMaterial
public float getToughness()
getToughness
in interface IArmorMaterial