Tier
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.
import crafttweaker.api.item.type.tiered.Tier;
Methods
Return Type: float
// Tier.getAttackDamageBonus() as float
myTier.getAttackDamageBonus();
Return Type: int
// Tier.getEnchantmentValue() as int
myTier.getEnchantmentValue();
Return Type: int
// Tier.getLevel() as int
myTier.getLevel();
Return Type: IIngredient
// Tier.getRepairIngredient() as IIngredient
myTier.getRepairIngredient();
Return Type: float
// Tier.getSpeed() as float
myTier.getSpeed();
Return Type: int
// Tier.getUses() as int
myTier.getUses();
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name attackDamageBonus | Type float | Has Getter true | Has Setter false |
Name enchantmentValue | Type int | Has Getter true | Has Setter false |
Name level | Type int | Has Getter true | Has Setter false |
Name repairIngredient | Type IIngredient | Has Getter true | Has Setter false |
Name speed | Type float | Has Getter true | Has Setter false |
Name uses | Type int | Has Getter true | Has Setter false |