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;

Name: addCooldown

Return Type: void

ZenScript
Copy
ItemCooldowns.addCooldown(item as ItemDefinition, ticks as int) as void
参数类型描述
参数
item
类型
ItemDefinition
描述
No Description Provided
参数
ticks
类型
int
描述
No Description Provided

Link to getCooldownPercent

Name: getCooldownPercent

Return Type: float

ZenScript
Copy
ItemCooldowns.getCooldownPercent(item as ItemDefinition, partialTicks as float) as float
参数类型描述
参数
item
类型
ItemDefinition
描述
No Description Provided
参数
partialTicks
类型
浮点数
描述
No Description Provided

Name: isOnCooldown

Return Type: boolean

ZenScript
Copy
ItemCooldowns.isOnCooldown(item as ItemDefinition) as boolean
参数类型描述
参数
item
类型
ItemDefinition
描述
No Description Provided

Name: removeCooldown

Return Type: void

ZenScript
Copy
ItemCooldowns.removeCooldown(item as ItemDefinition) as void
参数类型描述
参数
item
类型
ItemDefinition
描述
No Description Provided