Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

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.

script.zs
import crafttweaker.api.item.tiered.Tiers;

Implements

Tiers implements the following interfaces:

Tier

Undocumented Interfaces

Comparable<Enum>

Enum Constants

Tiers is an enum with 6 constants. They are accessible like so:

script.zs
// 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
script.zs
// Tiers.attackDamageBonus as float
<constant:minecraft:item/tiers:diamond>.attackDamageBonus

Return Type: float

attackDamageBonus() as float
script.zs
// Tiers.attackDamageBonus() as float;
<constant:minecraft:item/tiers:diamond>.attackDamageBonus();

Return Type: float

Getter
script.zs
// Tiers.enchantmentValue as int
<constant:minecraft:item/tiers:diamond>.enchantmentValue

Return Type: int

enchantmentValue() as int
script.zs
// Tiers.enchantmentValue() as int;
<constant:minecraft:item/tiers:diamond>.enchantmentValue();

Return Type: int

Getter
script.zs
// Tiers.level as int
<constant:minecraft:item/tiers:diamond>.level

Return Type: int

level() as int
script.zs
// Tiers.level() as int;
<constant:minecraft:item/tiers:diamond>.level();

Return Type: int

Getter
script.zs
// Tiers.repairIngredient as IIngredient
<constant:minecraft:item/tiers:diamond>.repairIngredient

Return Type: IIngredient

repairIngredient() as IIngredient
script.zs
// Tiers.repairIngredient() as IIngredient;
<constant:minecraft:item/tiers:diamond>.repairIngredient();

Return Type: IIngredient

Getter
script.zs
// Tiers.speed as float
<constant:minecraft:item/tiers:diamond>.speed

Return Type: float

speed() as float
script.zs
// Tiers.speed() as float;
<constant:minecraft:item/tiers:diamond>.speed();

Return Type: float

Getter
script.zs
// Tiers.uses as int
<constant:minecraft:item/tiers:diamond>.uses

Return Type: int

uses() as int
script.zs
// Tiers.uses() as int;
<constant:minecraft:item/tiers:diamond>.uses();

Return Type: int