ItemCooldowns
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.item.ItemCooldowns;Operators
in(item as Item) as bool
myItem in myItemCooldownsParameters:
item: ItemDefinition  Type: ItemDefinition   
Return Type:
bool
Members
addCooldown(item as Item, ticks as int)
myItemCooldowns.addCooldown(myItem, myInt);Parameters:
item: ItemDefinition  Type: ItemDefinition   ticks: int  Type: int   getCooldownPercent(item as Item, partialTicks as float) as float
myItemCooldowns.getCooldownPercent(myItem, myFloat);Parameters:
item: ItemDefinition  Type: ItemDefinition   partialTicks: float  Type: float   
Return Type:
float
isOnCooldown(item as Item) as bool
myItemCooldowns.isOnCooldown(myItem);Parameters:
item: ItemDefinition  Type: ItemDefinition   
Return Type:
bool
removeCooldown(item as Item)
myItemCooldowns.removeCooldown(myItem);Parameters:
item: ItemDefinition  Type: ItemDefinition