Package net.minecraft.src
Enum Class EnumToolMaterial
- All Implemented Interfaces:
Serializable,Comparable<EnumToolMaterial>,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 TypeMethodDescriptionfloatDamage versus entities.floatThe strength of this tool material against blocks which it is effective against.intReturn the natural enchantability factor of the material.intThe level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)intintintThe number of uses this material allows.intReturn the crafting material for this tool material, used to determine the item that can be used to repair a tool with an anvilstatic EnumToolMaterialReturns the enum constant of this class with the specified name.static EnumToolMaterial[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WOOD
-
STONE
-
IRON
-
EMERALD
-
GOLD
-
SOULFORGED_STEEL
-
-
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
-
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()
-