| Package | Description |
|---|---|
| me.lucko.helper.cooldown | |
| me.lucko.helper.metadata |
| Modifier and Type | Method and Description |
|---|---|
Cooldown |
Cooldown.copy()
Copies the properties of this cooldown to a new instance
|
static Cooldown |
Cooldown.deserialize(com.google.gson.JsonElement element) |
Cooldown |
ComposedCooldownMap.get(I key)
Gets the internal cooldown instance associated with the given key.
|
Cooldown |
CooldownMap.get(T key)
Gets the internal cooldown instance associated with the given key.
|
Cooldown |
CooldownMap.getBase()
Gets the base cooldown
|
Cooldown |
ComposedCooldownMap.getBase()
Gets the base cooldown
|
static Cooldown |
Cooldown.of(long amount,
TimeUnit unit)
Creates a cooldown lasting a specified amount of time
|
static Cooldown |
Cooldown.ofTicks(long ticks)
Creates a cooldown lasting a number of game ticks
|
| Modifier and Type | Method and Description |
|---|---|
Map<T,Cooldown> |
CooldownMap.getAll()
Gets the cooldowns contained within this collection.
|
Map<O,Cooldown> |
ComposedCooldownMap.getAll()
Gets the cooldowns contained within this collection.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> CooldownMap<T> |
CooldownMap.create(Cooldown base)
Creates a new collection with the cooldown properties defined by the base instance
|
static <I,O> ComposedCooldownMap<I,O> |
ComposedCooldownMap.create(Cooldown base,
Function<I,O> composeFunction)
Creates a new collection with the cooldown properties defined by the base instance
|
void |
ComposedCooldownMap.put(O key,
Cooldown cooldown) |
void |
CooldownMap.put(T key,
Cooldown cooldown) |
| Modifier and Type | Method and Description |
|---|---|
static MetadataKey<Cooldown> |
MetadataKey.createCooldownKey(String id) |
Copyright © 2022. All rights reserved.