If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.item.tiered . Tiers;
Tiers
implements the following interfaces:
Tier
Undocumented Interfaces Comparable <Enum >
Tiers is an enum with 6 constants. They are accessible like so:
< constant : minecraft:item/tiers:diamond >
< constant : minecraft:item/tiers:gold >
< constant : minecraft:item/tiers:iron >
< constant : minecraft:item/tiers:netherite >
< constant : minecraft:item/tiers:stone >
< constant : minecraft:item/tiers:wood >
// Tiers.attackDamageBonus as float
< constant : minecraft:item/tiers:diamond > .attackDamageBonus
Return Type:
float
// Tiers.attackDamageBonus() as float;
< constant : minecraft:item/tiers:diamond > .attackDamageBonus();
Return Type:
float
// Tiers.enchantmentValue as int
< constant : minecraft:item/tiers:diamond > .enchantmentValue
Return Type:
int
// Tiers.enchantmentValue() as int;
< constant : minecraft:item/tiers:diamond > .enchantmentValue();
Return Type:
int
< constant : minecraft:item/tiers:diamond > .level
Return Type:
int
< constant : minecraft:item/tiers:diamond > .level();
Return Type:
int
// Tiers.repairIngredient as IIngredient
< constant : minecraft:item/tiers:diamond > .repairIngredient
Return Type:
IIngredient
// Tiers.repairIngredient() as IIngredient;
< constant : minecraft:item/tiers:diamond > .repairIngredient();
Return Type:
IIngredient
< constant : minecraft:item/tiers:diamond > .speed
Return Type:
float
// Tiers.speed() as float;
< constant : minecraft:item/tiers:diamond > .speed();
Return Type:
float
< constant : minecraft:item/tiers:diamond > .uses
Return Type:
int
< constant : minecraft:item/tiers:diamond > .uses();
Return Type:
int