|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EnumToolMaterial>
net.minecraft.item.EnumToolMaterial
public enum EnumToolMaterial
Enum Constant Summary | |
---|---|
EMERALD
|
|
GOLD
|
|
IRON
|
|
STONE
|
|
WOOD
|
Field Summary | |
---|---|
Item |
customCraftingMaterial
|
Method Summary | |
---|---|
int |
getDamageVsEntity()
Damage versus entities. |
float |
getEfficiencyOnProperMaterial()
The strength of this tool material against blocks which it is effective against. |
int |
getEnchantability()
Return the natural enchantability factor of the material. |
int |
getHarvestLevel()
The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD) |
int |
getMaxUses()
The number of uses this material allows. |
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 |
static EnumToolMaterial |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EnumToolMaterial[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EnumToolMaterial WOOD
public static final EnumToolMaterial STONE
public static final EnumToolMaterial IRON
public static final EnumToolMaterial EMERALD
public static final EnumToolMaterial GOLD
Field Detail |
---|
public Item customCraftingMaterial
Method Detail |
---|
public static EnumToolMaterial[] values()
for (EnumToolMaterial c : EnumToolMaterial.values()) System.out.println(c);
public static EnumToolMaterial valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getMaxUses()
public float getEfficiencyOnProperMaterial()
public int getDamageVsEntity()
public int getHarvestLevel()
public int getEnchantability()
public int getToolCraftingMaterial()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |