Tier
Link to tier
Importing the class
Link to importing-the-class
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 Copyimport crafttweaker.api.item.type.tiered.Tier;
Methods
Link to methods
Name: getAttackDamageBonus
Return Type: float
ZenScript Copy// Tier.getAttackDamageBonus() as float
myTier.getAttackDamageBonus();
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();
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();
Properties
Link to properties
名称 | Type | Has Getter | Has Setter |
---|---|---|---|
名称 attackDamageBonus | Type float | Has Getter true | Has Setter false |
名称 enchantmentValue | Type int | Has Getter true | Has Setter false |
名称 level | Type int | Has Getter true | Has Setter false |
名称 repairIngredient | Type IIngredient | Has Getter true | Has Setter false |
名称 speed | Type float | Has Getter true | Has Setter false |
名称 uses | Type int | Has Getter true | Has Setter false |