ItemCooldowns
Link to itemcooldowns
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.ItemCooldowns;
Methods
Link to methods
Name: addCooldown
ZenScript CopyItemCooldowns.addCooldown(item as ItemDefinition, ticks as int)
Parameter | Type |
---|---|
Parameter item | Type ItemDefinition |
Parameter ticks | Type int |
Name: getCooldownPercent
Return Type: float
ZenScript CopyItemCooldowns.getCooldownPercent(item as ItemDefinition, partialTicks as float) as float
Parameter | Type |
---|---|
Parameter item | Type ItemDefinition |
Parameter partialTicks | Type float |
Name: isOnCooldown
Return Type: boolean
ZenScript CopyItemCooldowns.isOnCooldown(item as ItemDefinition) as boolean
Parameter | Type |
---|---|
Parameter item | Type ItemDefinition |
Name: removeCooldown
ZenScript CopyItemCooldowns.removeCooldown(item as ItemDefinition)
Parameter | Type |
---|---|
Parameter item | Type ItemDefinition |