public class CooldownCommandEvent extends java.lang.Object implements CooldownEvent
CooldownEvent.Cause| Constructor and Description |
|---|
CooldownCommandEvent(Invocation<?> invocation,
java.lang.String key,
java.time.Duration duration) |
| Modifier and Type | Method and Description |
|---|---|
CooldownEvent.Cause |
getCause() |
java.time.Duration |
getDuration() |
Invocation<?> |
getInvocation() |
java.lang.String |
getKey() |
Identifier |
getSender() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setDuration(java.time.Duration duration) |
void |
setKey(java.lang.String key) |
public CooldownCommandEvent(Invocation<?> invocation, java.lang.String key, java.time.Duration duration)
public Invocation<?> getInvocation()
public Identifier getSender()
getSender in interface CooldownEventpublic java.lang.String getKey()
getKey in interface CooldownEventpublic void setKey(java.lang.String key)
setKey in interface CooldownEventpublic java.time.Duration getDuration()
getDuration in interface CooldownEventpublic void setDuration(java.time.Duration duration)
setDuration in interface CooldownEventpublic boolean isCancelled()
isCancelled in interface CooldownEventpublic void setCancelled(boolean cancelled)
setCancelled in interface CooldownEventpublic CooldownEvent.Cause getCause()
getCause in interface CooldownEvent