ItemCooldowns
Link to itemcooldowns
Импорт класса
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.ItemCooldowns;
Методы
Link to методы
Name: addCooldown
ZenScript CopyItemCooldowns.addCooldown(item as ItemDefinition, ticks as int)
Параметр | Тип |
---|---|
Параметр item | Тип ItemDefinition |
Параметр ticks | Тип int |
Name: getCooldownPercent
Return Type: float
ZenScript CopyItemCooldowns.getCooldownPercent(item as ItemDefinition, partialTicks as float) as float
Параметр | Тип |
---|---|
Параметр item | Тип ItemDefinition |
Параметр partialTicks | Тип float |
Name: isOnCooldown
Return Type: boolean
ZenScript CopyItemCooldowns.isOnCooldown(item as ItemDefinition) as boolean
Параметр | Тип |
---|---|
Параметр item | Тип ItemDefinition |
Name: removeCooldown
ZenScript CopyItemCooldowns.removeCooldown(item as ItemDefinition)
Параметр | Тип |
---|---|
Параметр item | Тип ItemDefinition |