public enum ToolMaterials extends Enum<ToolMaterials> implements ToolMaterial
Enum Constant and Description |
---|
DIAMOND |
GOLD |
IRON |
NETHERITE |
STONE |
WOOD |
Modifier and Type | Field and Description |
---|---|
private float |
attackDamage |
private int |
enchantability |
private int |
itemDurability |
private int |
miningLevel |
private float |
miningSpeed |
private Lazy<Ingredient> |
repairIngredient |
Modifier and Type | Method and Description |
---|---|
float |
getAttackDamage() |
int |
getDurability() |
int |
getEnchantability() |
int |
getMiningLevel() |
float |
getMiningSpeedMultiplier() |
Ingredient |
getRepairIngredient() |
static ToolMaterials |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ToolMaterials[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ToolMaterials WOOD
public static final ToolMaterials STONE
public static final ToolMaterials IRON
public static final ToolMaterials DIAMOND
public static final ToolMaterials GOLD
public static final ToolMaterials NETHERITE
private final int miningLevel
private final int itemDurability
private final float miningSpeed
private final float attackDamage
private final int enchantability
private final Lazy<Ingredient> repairIngredient
public static ToolMaterials[] values()
for (ToolMaterials c : ToolMaterials.values()) System.out.println(c);
public static ToolMaterials 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 getDurability()
getDurability
in interface ToolMaterial
public float getMiningSpeedMultiplier()
getMiningSpeedMultiplier
in interface ToolMaterial
public float getAttackDamage()
getAttackDamage
in interface ToolMaterial
public int getMiningLevel()
getMiningLevel
in interface ToolMaterial
public int getEnchantability()
getEnchantability
in interface ToolMaterial
public Ingredient getRepairIngredient()
getRepairIngredient
in interface ToolMaterial