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.
Operators
in(item as Item) as bool
Parameters:
item: ItemDefinition
Type: ItemDefinition
Return Type:
bool
Members
addCooldown(item as Item, ticks as int)
Parameters:
item: ItemDefinition
Type: ItemDefinition
ticks: int
Type: int
getCooldownPercent(item as Item, partialTicks as float) as float
Parameters:
item: ItemDefinition
Type: ItemDefinition
partialTicks: float
Type: float
Return Type:
float
isOnCooldown(item as Item) as bool
Parameters:
item: ItemDefinition
Type: ItemDefinition
Return Type:
bool
removeCooldown(item as Item)
Parameters:
item: ItemDefinition
Type: ItemDefinition