public static enum Item.ToolMaterial extends java.lang.Enum<Item.ToolMaterial>
Modifier and Type | Field and Description |
---|---|
private float |
damageVsEntity |
private float |
efficiencyOnProperMaterial |
private int |
enchantability |
private int |
harvestLevel |
private int |
maxUses |
Modifier and Type | Method and Description |
---|---|
float |
getDamageVsEntity() |
float |
getEfficiencyOnProperMaterial() |
int |
getEnchantability() |
int |
getHarvestLevel() |
int |
getMaxUses() |
Item |
getRepairItem() |
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 EMERALD
public static final Item.ToolMaterial GOLD
private final int harvestLevel
private final int maxUses
private final float efficiencyOnProperMaterial
private final float damageVsEntity
private final int enchantability
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 getEfficiencyOnProperMaterial()
public float getDamageVsEntity()
public int getHarvestLevel()
public int getEnchantability()
public Item getRepairItem()