public interface CooldownTracker
Player.| Modifier and Type | Method and Description | 
|---|---|
| OptionalInt | getCooldown(ItemType type)Gets the cooldown of the specified  ItemTypein ticks for the
 player, or empty if the the item type is currently not on cooldown. | 
| OptionalDouble | getFractionRemaining(ItemType type)Gets the fraction of the specified  ItemType's cooldown that
 is remaining for the player, or empty if the the item type
 is currently not on cooldown. | 
| boolean | hasCooldown(ItemType type)Checks if the specified  ItemTypeis currently on cooldown
 for the player. | 
| boolean | resetCooldown(ItemType type)Resets the cooldown of the specified  ItemTypefor the
 player. | 
| boolean | setCooldown(ItemType type,
           int ticks)Sets the cooldown for the specified  ItemTypefor the
 specified amount of ticks. | 
boolean hasCooldown(ItemType type)
ItemType is currently on cooldown
 for the player.type - The item type to check is on cooldownOptionalInt getCooldown(ItemType type)
ItemType in ticks for the
 player, or empty if the the item type is currently not on cooldown.type - The item type to get the cooldown forboolean setCooldown(ItemType type, int ticks)
ItemType for the
 specified amount of ticks.type - The item type to set the cooldown forticks - The amount of ticks to set the item type on cooldown forboolean resetCooldown(ItemType type)
ItemType for the
 player.type - The item type to reset the cooldown forOptionalDouble getFractionRemaining(ItemType type)
ItemType's cooldown that
 is remaining for the player, or empty if the the item type
 is currently not on cooldown.
 If present, this value will be between 0.0 and 1.0.
type - The item type to get the cooldown fraction remaining