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
Copy
import crafttweaker.api.item.ItemCooldowns;

Link to g-

Name: addCooldown

Return Type: void

ZenScript
Copy
ItemCooldowns.addCooldown(item as ItemDefinition, ticks as int) as void
ParameterTypeDescription
Parameter
item
Type
ItemDefinition
Description
No Description Provided
Parameter
ticks
Type
int
Description
No Description Provided

Link to g--1

Name: getCooldownPercent

Return Type: float

ZenScript
Copy
ItemCooldowns.getCooldownPercent(item as ItemDefinition, partialTicks as float) as float
ParameterTypeDescription
Parameter
item
Type
ItemDefinition
Description
No Description Provided
Parameter
partialTicks
Type
float
Description
No Description Provided

Link to g--2

Name: isOnCooldown

Return Type: boolean

ZenScript
Copy
ItemCooldowns.isOnCooldown(item as ItemDefinition) as boolean
ParameterTypeDescription
Parameter
item
Type
ItemDefinition
Description
No Description Provided

Link to g--3

Name: removeCooldown

Return Type: void

ZenScript
Copy
ItemCooldowns.removeCooldown(item as ItemDefinition) as void
ParameterTypeDescription
Parameter
item
Type
ItemDefinition
Description
No Description Provided