public class CooldownManager extends xyz.srnyx.javautilities.parents.Stringable implements Annoyable
AnnoyingPlugin.cooldownManager,
AnnoyingCooldown| Modifier and Type | Field and Description |
|---|---|
@NotNull java.util.Map<java.lang.String,java.util.Set<AnnoyingCooldown>> |
cooldowns
A map of all cooldowns, with the key being the key of the cooldowns
|
| Constructor and Description |
|---|
CooldownManager(@NotNull AnnoyingPlugin plugin)
Creates a new cooldown manager with the given plugin
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull AnnoyingPlugin |
getAnnoyingPlugin()
The
AnnoyingPlugin instance |
@NotNull AnnoyingCooldown |
getCooldown(@NotNull java.lang.Object key,
@NotNull CooldownType type)
Get a cooldown with the given key and type
|
@NotNull com.google.common.collect.ImmutableSet<AnnoyingCooldown> |
getCooldowns(@NotNull java.lang.Object key)
Get all cooldowns with the given key
|
@NotNull public final @NotNull java.util.Map<java.lang.String,java.util.Set<AnnoyingCooldown>> cooldowns
public CooldownManager(@NotNull
@NotNull AnnoyingPlugin plugin)
plugin - plugin@NotNull public @NotNull AnnoyingPlugin getAnnoyingPlugin()
AnnoyableAnnoyingPlugin instancegetAnnoyingPlugin in interface Annoyable@NotNull public @NotNull com.google.common.collect.ImmutableSet<AnnoyingCooldown> getCooldowns(@NotNull @NotNull java.lang.Object key)
key - the key of the cooldowns@NotNull public @NotNull AnnoyingCooldown getCooldown(@NotNull @NotNull java.lang.Object key, @NotNull @NotNull CooldownType type)
key - the key of the cooldowntype - the type of the cooldown