public interface NucleusWarmupManagerService
| Modifier and Type | Interface and Description |
|---|---|
static interface |
NucleusWarmupManagerService.WarmupTask
Represents a task that will execute after some time.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitingExecution(org.spongepowered.api.entity.living.player.Player player)
Whether there is a task awaiting execution.
|
boolean |
cancel(org.spongepowered.api.entity.living.player.Player player)
Cancels a task by
Player |
void |
executeAfter(org.spongepowered.api.entity.living.player.Player target,
java.time.Duration duration,
NucleusWarmupManagerService.WarmupTask runnable)
Executes a task after the specified time, if the target does
not move or run a command.
|
void |
executeAfter(org.spongepowered.api.entity.living.player.Player target,
java.time.Duration duration,
NucleusWarmupManagerService.WarmupTask runnable,
boolean sendMessage)
Executes a task after the specified time, if the target does
not move or run a command.
|
void |
executeAfterAsync(org.spongepowered.api.entity.living.player.Player target,
java.time.Duration duration,
NucleusWarmupManagerService.WarmupTask runnable)
Executes a task after the specified time, if the target does
not move or run a command.
|
void |
executeAfterAsync(org.spongepowered.api.entity.living.player.Player target,
java.time.Duration duration,
NucleusWarmupManagerService.WarmupTask runnable,
boolean sendMessage)
Executes a task after the specified time, if the target does
not move or run a command.
|
void executeAfter(org.spongepowered.api.entity.living.player.Player target,
java.time.Duration duration,
NucleusWarmupManagerService.WarmupTask runnable)
target - The Player to execute the task on.duration - The Duration to wait.runnable - The NucleusWarmupManagerService.WarmupTask to execute.void executeAfter(org.spongepowered.api.entity.living.player.Player target,
java.time.Duration duration,
NucleusWarmupManagerService.WarmupTask runnable,
boolean sendMessage)
target - The Player to execute the task on.duration - The Duration to wait.runnable - The NucleusWarmupManagerService.WarmupTask to execute.sendMessage - if to send a message indicating a warmup startup.void executeAfterAsync(org.spongepowered.api.entity.living.player.Player target,
java.time.Duration duration,
NucleusWarmupManagerService.WarmupTask runnable)
target - The Player to execute the task on.duration - The Duration to wait.runnable - The NucleusWarmupManagerService.WarmupTask to executevoid executeAfterAsync(org.spongepowered.api.entity.living.player.Player target,
java.time.Duration duration,
NucleusWarmupManagerService.WarmupTask runnable,
boolean sendMessage)
target - The Player to execute the task on.duration - The Duration to wait.runnable - The NucleusWarmupManagerService.WarmupTask to execute.sendMessage - if to send a message indicating a warmup startup.boolean cancel(org.spongepowered.api.entity.living.player.Player player)
Playerplayer - The player that this task is attached to.boolean awaitingExecution(org.spongepowered.api.entity.living.player.Player player)
player - The player