toggle menu
core
git-2534f55
jvm
switch theme
search in API
core
/
com.github.spigotbasics.core.cooldown
/
Cooldown
Cooldown
interface
Cooldown
<
T
>
Inheritors
SimpleCooldown
Members
Functions
clear
Link copied to clipboard
abstract
fun
clear
(
)
clear
Expired
Entries
Link copied to clipboard
abstract
fun
clearExpiredEntries
(
)
get
Remaining
Time
Link copied to clipboard
abstract
fun
getRemainingTime
(
key
:
T
,
unit
:
TimeUnit
)
:
Long
is
On
Cooldown
Link copied to clipboard
abstract
fun
isOnCooldown
(
key
:
T
)
:
Boolean
remove
Cooldown
Link copied to clipboard
abstract
fun
removeCooldown
(
key
:
T
)
start
Cooldown
Link copied to clipboard
abstract
fun
startCooldown
(
key
:
T
)
abstract
fun
startCooldown
(
key
:
T
,
duration
:
Long
,
unit
:
TimeUnit
=
TimeUnit.MILLISECONDS
)