public static enum ItemArmor.ArmorMaterial extends java.lang.Enum<ItemArmor.ArmorMaterial>
Modifier and Type | Field and Description |
---|---|
Item |
customCraftingMaterial |
Modifier and Type | Method and Description |
---|---|
int |
getDamageReductionAmount(int armorType)
Return the damage reduction (each 1 point is a half a shield on gui) of the piece index passed (0 = helmet, 1
= plate, 2 = legs and 3 = boots)
|
int |
getDurability(int armorType)
Returns the durability for a armor slot of for this type.
|
int |
getEnchantability()
Return the enchantability factor of the material.
|
java.lang.String |
getName() |
Item |
getRepairItem()
Get a main crafting component of this Armor Material (example is Items.iron_ingot)
|
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
public Item customCraftingMaterial
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()