| Modifier and Type | Field and Description |
|---|---|
private float |
attackDamage |
private float |
efficiency |
private int |
enchantability |
private int |
harvestLevel |
private int |
maxUses |
private LazyValue<Ingredient> |
repairMaterial |
| Modifier and Type | Method and Description |
|---|---|
float |
getAttackDamage() |
float |
getEfficiency() |
int |
getEnchantability() |
int |
getHarvestLevel() |
int |
getMaxUses() |
Ingredient |
getRepairMaterial() |
static ItemTier |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ItemTier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemTier WOOD
public static final ItemTier STONE
public static final ItemTier IRON
public static final ItemTier DIAMOND
public static final ItemTier GOLD
private final int harvestLevel
private final int maxUses
private final float efficiency
private final float attackDamage
private final int enchantability
private final LazyValue<Ingredient> repairMaterial
public static ItemTier[] values()
for (ItemTier c : ItemTier.values()) System.out.println(c);
public static ItemTier 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()
getMaxUses in interface IItemTierpublic float getEfficiency()
getEfficiency in interface IItemTierpublic float getAttackDamage()
getAttackDamage in interface IItemTierpublic int getHarvestLevel()
getHarvestLevel in interface IItemTierpublic int getEnchantability()
getEnchantability in interface IItemTierpublic Ingredient getRepairMaterial()
getRepairMaterial in interface IItemTier