public static enum Item.ToolMaterial extends java.lang.Enum<Item.ToolMaterial>
Modifier and Type | Method and Description |
---|---|
float |
getAttackDamage() |
float |
getEfficiency() |
int |
getEnchantability() |
int |
getHarvestLevel() |
int |
getMaxUses() |
Item |
getRepairItem()
Deprecated.
|
ItemStack |
getRepairItemStack() |
Item.ToolMaterial |
setRepairItem(ItemStack stack) |
static Item.ToolMaterial |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Item.ToolMaterial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Item.ToolMaterial WOOD
public static final Item.ToolMaterial STONE
public static final Item.ToolMaterial IRON
public static final Item.ToolMaterial DIAMOND
public static final Item.ToolMaterial GOLD
public static Item.ToolMaterial[] values()
for (Item.ToolMaterial c : Item.ToolMaterial.values()) System.out.println(c);
public static Item.ToolMaterial valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getMaxUses()
public float getEfficiency()
public float getAttackDamage()
public int getHarvestLevel()
public int getEnchantability()
@Deprecated public Item getRepairItem()
public Item.ToolMaterial setRepairItem(ItemStack stack)
public ItemStack getRepairItemStack()