public static interface CooldownEvent.Set extends CooldownEvent, Cancellable
CooldownEvent.End, CooldownEvent.Set
Modifier and Type | Method and Description |
---|---|
int |
getNewCooldown()
Gets the new cooldown the item type has for the player.
|
int |
getOriginalNewCooldown()
Gets the original new set cooldown at the beginning of the event.
|
OptionalInt |
getStartingCooldown()
Gets the cooldown the item type had beforehand, if it had one at all.
|
void |
setNewCooldown(int ticks)
Sets the new cooldown for the item type for the player.
|
getItemType
getTargetEntity
getCause, getContext, getSource
isCancelled, setCancelled
OptionalInt getStartingCooldown()
int getOriginalNewCooldown()
int getNewCooldown()
void setNewCooldown(int ticks)
ticks
- The amount of ticks the cooldown should last for