Enum Class EnumArmorMaterial

java.lang.Object
java.lang.Enum<EnumArmorMaterial>
net.minecraft.src.EnumArmorMaterial
All Implemented Interfaces:
Serializable, Comparable<EnumArmorMaterial>, Constable

public enum EnumArmorMaterial extends Enum<EnumArmorMaterial>
  • Enum Constant Details

  • Method Details

    • values

      public static EnumArmorMaterial[] 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

      public static EnumArmorMaterial valueOf(String name)
      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 name
      NullPointerException - 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