ItemCooldowns
Link to itemcooldowns
Diese Klasse importieren
Link to diese-klasse-importieren
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 Copyimport crafttweaker.api.item.ItemCooldowns;
Methoden
Link to methoden
Name: addCooldown
Return Type: void
ZenScript CopyItemCooldowns.addCooldown(item as ItemDefinition, ticks as int) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter item | Type ItemDefinition | Beschreibung No Description Provided |
Parameter ticks | Type int | Beschreibung No Description Provided |
Name: getCooldownPercent
Return Type: float
ZenScript CopyItemCooldowns.getCooldownPercent(item as ItemDefinition, partialTicks as float) as float
Parameter | Type | Beschreibung |
---|---|---|
Parameter item | Type ItemDefinition | Beschreibung No Description Provided |
Parameter partialTicks | Type float | Beschreibung No Description Provided |
Name: isOnCooldown
Return Type: boolean
ZenScript CopyItemCooldowns.isOnCooldown(item as ItemDefinition) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter item | Type ItemDefinition | Beschreibung No Description Provided |
Name: removeCooldown
Return Type: void
ZenScript CopyItemCooldowns.removeCooldown(item as ItemDefinition) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter item | Type ItemDefinition | Beschreibung No Description Provided |