public enum EnumArmorMaterial extends Enum<EnumArmorMaterial>
Modifier and Type | Field and Description |
---|---|
Item |
customCraftingMaterial |
Modifier and Type | Method and Description |
---|---|
int |
getArmorCraftingMaterial()
Return the crafting material for this armor material, used to determine the item that can be used to repair an
armor piece with an anvil
|
int |
getDamageReductionAmount(int par1)
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 par1)
Returns the durability for a armor slot of for this type.
|
int |
getEnchantability()
Return the enchantability factor of the material.
|
static EnumArmorMaterial |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumArmorMaterial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumArmorMaterial CLOTH
public static final EnumArmorMaterial CHAIN
public static final EnumArmorMaterial IRON
public static final EnumArmorMaterial GOLD
public static final EnumArmorMaterial DIAMOND
public Item customCraftingMaterial
public static EnumArmorMaterial[] values()
for (EnumArmorMaterial c : EnumArmorMaterial.values()) System.out.println(c);
public static EnumArmorMaterial 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(int par1)
public int getDamageReductionAmount(int par1)
public int getEnchantability()
public int getArmorCraftingMaterial()