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

Tier

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.type.tiered.Tier;

Members

Getter
script.zs
// Tier.attackDamageBonus as float
myTier.attackDamageBonus

Return Type: float

attackDamageBonus() as float
script.zs
// Tier.attackDamageBonus() as float;
myTier.attackDamageBonus();

Return Type: float

Getter
script.zs
// Tier.enchantmentValue as int
myTier.enchantmentValue

Return Type: int

enchantmentValue() as int
script.zs
// Tier.enchantmentValue() as int;
myTier.enchantmentValue();

Return Type: int

Getter
script.zs
// Tier.level as int
myTier.level

Return Type: int

level() as int
script.zs
// Tier.level() as int;
myTier.level();

Return Type: int

Getter
script.zs
// Tier.repairIngredient as IIngredient
myTier.repairIngredient

Return Type: IIngredient

repairIngredient() as IIngredient
script.zs
// Tier.repairIngredient() as IIngredient;
myTier.repairIngredient();

Return Type: IIngredient

Getter
script.zs
// Tier.speed as float
myTier.speed

Return Type: float

speed() as float
script.zs
// Tier.speed() as float;
myTier.speed();

Return Type: float

Getter
script.zs
// Tier.uses as int
myTier.uses

Return Type: int

uses() as int
script.zs
// Tier.uses() as int;
myTier.uses();

Return Type: int