public enum EnumToolMaterial extends Enum<EnumToolMaterial>
Modifier and Type | Field and Description |
---|---|
Item |
customCraftingMaterial |
Modifier and Type | Method and Description |
---|---|
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.
|
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
public Item customCraftingMaterial
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 nameNullPointerException
- if the argument is nullpublic int getMaxUses()
public float getEfficiencyOnProperMaterial()
public int getDamageVsEntity()
public int getHarvestLevel()
public int getEnchantability()
public int getToolCraftingMaterial()