IItemTier
Link to iitemtier
Импорт класса
Link to импорт-класса
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.tiered.IItemTier;
Методы
Link to методы
Name: getAttackDamage
Gets this tier's attack damage.
Returns: This tier's attack damage.
Return Type: float
ZenScript Copy// IItemTier.getAttackDamage() as float
myIItemTier.getAttackDamage();
Name: getEfficiency
Gets this tier's efficiency.
Returns: This tier's efficiency.
Return Type: float
ZenScript Copy// IItemTier.getEfficiency() as float
myIItemTier.getEfficiency();
Name: getEnchantability
Gets this tier's enchantability.
Returns: This tier's enchantability.
Return Type: int
ZenScript Copy// IItemTier.getEnchantability() as int
myIItemTier.getEnchantability();
Name: getHarvestLevel
Gets this tier's harvest level.
Returns: This tier's harvest level.
Return Type: int
ZenScript Copy// IItemTier.getHarvestLevel() as int
myIItemTier.getHarvestLevel();
Name: getMaxUses
Gets this tier's max uses.
Returns: This tier's max uses.
Return Type: int
ZenScript Copy// IItemTier.getMaxUses() as int
myIItemTier.getMaxUses();
Name: getRepairMaterial
Gets this tier's repair material.
Returns: This tier's repair material.
Return Type: Ingredient
ZenScript Copy// IItemTier.getRepairMaterial() as Ingredient
myIItemTier.getRepairMaterial();
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter | Описание |
---|---|---|---|---|
Название attackDamage | Тип float | Имеет Getter true | Имеет Setter false | Описание Gets this tier's attack damage. |
Название efficiency | Тип float | Имеет Getter true | Имеет Setter false | Описание Gets this tier's efficiency. |
Название enchantability | Тип int | Имеет Getter true | Имеет Setter false | Описание Gets this tier's enchantability. |
Название harvestLevel | Тип int | Имеет Getter true | Имеет Setter false | Описание Gets this tier's harvest level. |
Название maxUses | Тип int | Имеет Getter true | Имеет Setter false | Описание Gets this tier's max uses. |
Название repairMaterial | Тип Ingredient | Имеет Getter true | Имеет Setter false | Описание Gets this tier's repair material. |