ItemCooldowns
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.
import crafttweaker.api.item.ItemCooldowns;
Methods
Return Type: void
ItemCooldowns.addCooldown(item as ItemDefinition, ticks as int) as void
Parameter | Type | Description |
---|---|---|
Parameter item | Type ItemDefinition | Description No Description Provided |
Parameter ticks | Type int | Description No Description Provided |
Return Type: float
ItemCooldowns.getCooldownPercent(item as ItemDefinition, partialTicks as float) as float
Parameter | Type | Description |
---|---|---|
Parameter item | Type ItemDefinition | Description No Description Provided |
Parameter partialTicks | Type float | Description No Description Provided |
Return Type: boolean
ItemCooldowns.isOnCooldown(item as ItemDefinition) as boolean
Parameter | Type | Description |
---|---|---|
Parameter item | Type ItemDefinition | Description No Description Provided |
Return Type: void
ItemCooldowns.removeCooldown(item as ItemDefinition) as void
Parameter | Type | Description |
---|---|---|
Parameter item | Type ItemDefinition | Description No Description Provided |