Tiers
Importing the class
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;
Implements
Tiers
implements the following interfaces:
Undocumented Interfaces
Comparable<Enum>
Enum Constants
Tiers is an enum with 6 constants. They are accessible like so:
// Tiers.DIAMOND<constant:minecraft:item/tiers:diamond>// Tiers.GOLD<constant:minecraft:item/tiers:gold>// Tiers.IRON<constant:minecraft:item/tiers:iron>// Tiers.NETHERITE<constant:minecraft:item/tiers:netherite>// Tiers.STONE<constant:minecraft:item/tiers:stone>// Tiers.WOOD<constant:minecraft:item/tiers:wood>
Members
Getter
// Tiers.attackDamageBonus as float<constant:minecraft:item/tiers:diamond>.attackDamageBonus
Return Type:
float
attackDamageBonus() as float
// Tiers.attackDamageBonus() as float;<constant:minecraft:item/tiers:diamond>.attackDamageBonus();
Return Type:
float
Getter
// Tiers.enchantmentValue as int<constant:minecraft:item/tiers:diamond>.enchantmentValue
Return Type:
int
enchantmentValue() as int
// Tiers.enchantmentValue() as int;<constant:minecraft:item/tiers:diamond>.enchantmentValue();
Return Type:
int
Getter
// Tiers.level as int<constant:minecraft:item/tiers:diamond>.level
Return Type:
int
level() as int
// Tiers.level() as int;<constant:minecraft:item/tiers:diamond>.level();
Return Type:
int
Getter
// Tiers.repairIngredient as IIngredient<constant:minecraft:item/tiers:diamond>.repairIngredient
Return Type:
IIngredient
repairIngredient() as IIngredient
Getter
// Tiers.speed as float<constant:minecraft:item/tiers:diamond>.speed
Return Type:
float
speed() as float
// Tiers.speed() as float;<constant:minecraft:item/tiers:diamond>.speed();
Return Type:
float
Getter
// Tiers.uses as int<constant:minecraft:item/tiers:diamond>.uses
Return Type:
int
uses() as int
// Tiers.uses() as int;<constant:minecraft:item/tiers:diamond>.uses();
Return Type:
int