Interface CooldownEvent.Set
- All Superinterfaces:
Cancellable, CooldownEvent, Event
- Enclosing interface:
CooldownEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface CooldownEvent
CooldownEvent.End, CooldownEvent.Set -
Method Summary
Modifier and TypeMethodDescriptionGets the new cooldown the item type has for the player.Gets the original new set cooldown at the beginning of the event.voidsetNewCooldown(Ticks ticks) Sets the new cooldown for the item type for the player.Gets the cooldown the item type had beforehand, if it had one at all.Methods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface CooldownEvent
group, player
-
Method Details
-
startingCooldown
-
originalNewCooldown
Ticks originalNewCooldown()Gets the original new set cooldown at the beginning of the event.- Returns:
- The originally set cooldown
-
newCooldown
Ticks newCooldown()Gets the new cooldown the item type has for the player.- Returns:
- The new cooldown of the item type
-
setNewCooldown
Sets the new cooldown for the item type for the player.- Parameters:
ticks- The amount of ticks the cooldown should last for
-