It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.item.type.tiered.Tier;

Link to getAttackDamageBonus

Name: getAttackDamageBonus

Return Type: float

ZenScript
Copy
// Tier.getAttackDamageBonus() as float

myTier.getAttackDamageBonus();

Link to getEnchantmentValue

Name: getEnchantmentValue

Return Type: int

ZenScript
Copy
// Tier.getEnchantmentValue() as int

myTier.getEnchantmentValue();

Name: getLevel

Return Type: int

ZenScript
Copy
// Tier.getLevel() as int

myTier.getLevel();

Link to getRepairIngredient

Name: getRepairIngredient

Return Type: IIngredient

ZenScript
Copy
// Tier.getRepairIngredient() as IIngredient

myTier.getRepairIngredient();

Name: getSpeed

Return Type: float

ZenScript
Copy
// Tier.getSpeed() as float

myTier.getSpeed();

Name: getUses

Return Type: int

ZenScript
Copy
// Tier.getUses() as int

myTier.getUses();
名称类型可获得可设置
名称
attackDamageBonus
类型
float
可获得
true
可设置
false
名称
enchantmentValue
类型
int
可获得
true
可设置
false
名称
level
类型
int
可获得
true
可设置
false
名称
repairIngredient
类型
材料(IIngredient)
可获得
true
可设置
false
名称
speed
类型
float
可获得
true
可设置
false
名称
uses
类型
int
可获得
true
可设置
false