onCooldown

open fun onCooldown(e: PlayerInteractEvent)

Lifecycle function; called when this item is left- or right-clicked by a player and the player's cooldown is currently active.