Enum Class EnumToolMaterial

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

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

  • Method Details

    • values

      public static EnumToolMaterial[] 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 EnumToolMaterial 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
    • getMaxUses

      public int getMaxUses()
      The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
    • getEfficiencyOnProperMaterial

      public float getEfficiencyOnProperMaterial()
      The strength of this tool material against blocks which it is effective against.
    • getDamageVsEntity

      public float getDamageVsEntity()
      Damage versus entities.
    • getHarvestLevel

      public int getHarvestLevel()
      The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
    • getEnchantability

      public int getEnchantability()
      Return the natural enchantability factor of the material.
    • getToolCraftingMaterial

      public int getToolCraftingMaterial()
      Return the crafting material for this tool material, used to determine the item that can be used to repair a tool with an anvil
    • getInfernalMaxEnchantmentCost

      public int getInfernalMaxEnchantmentCost()
    • getInfernalMaxNumEnchants

      public int getInfernalMaxNumEnchants()