Package net.minecraft.src
Enum Class EnumArmorMaterial
- All Implemented Interfaces:
Serializable,Comparable<EnumArmorMaterial>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintReturn the crafting material for this armor material, used to determine the item that can be used to repair an armor piece with an anvilintgetDamageReductionAmount(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)intgetDurability(int par1) Returns the durability for a armor slot of for this type.intReturn the enchantability factor of the material.static EnumArmorMaterialReturns the enum constant of this class with the specified name.static EnumArmorMaterial[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLOTH
-
CHAIN
-
IRON
-
GOLD
-
DIAMOND
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDurability
public int getDurability(int par1) Returns the durability for a armor slot of for this type. -
getDamageReductionAmount
public 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) -
getEnchantability
public int getEnchantability()Return the enchantability factor of the material. -
getArmorCraftingMaterial
public 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
-