public static enum ItemArmor.ArmorMaterial extends java.lang.Enum<ItemArmor.ArmorMaterial>
Modifier and Type | Field and Description |
---|---|
private int[] |
damageReductionAmountArray |
private int |
enchantability |
private int |
maxDamageFactor |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
int |
getDamageReductionAmount(int armorType) |
int |
getDurability(int armorType) |
int |
getEnchantability() |
java.lang.String |
getName() |
Item |
getRepairItem() |
static ItemArmor.ArmorMaterial |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ItemArmor.ArmorMaterial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemArmor.ArmorMaterial LEATHER
public static final ItemArmor.ArmorMaterial CHAIN
public static final ItemArmor.ArmorMaterial IRON
public static final ItemArmor.ArmorMaterial GOLD
public static final ItemArmor.ArmorMaterial DIAMOND
private final java.lang.String name
private final int maxDamageFactor
private final int[] damageReductionAmountArray
private final int enchantability
public static ItemArmor.ArmorMaterial[] values()
for (ItemArmor.ArmorMaterial c : ItemArmor.ArmorMaterial.values()) System.out.println(c);
public static ItemArmor.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(int armorType)
public int getDamageReductionAmount(int armorType)
public int getEnchantability()
public Item getRepairItem()
public java.lang.String getName()