| Constructor and Description |
|---|
NukkitRunnable() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Attempts to cancel this task.
|
int |
getTaskId()
Gets the task id for this runnable.
|
Runnable |
runTask(PluginContainer plugin) |
Runnable |
runTaskAsynchronously(PluginContainer plugin) |
Runnable |
runTaskLater(PluginContainer plugin,
int delay) |
Runnable |
runTaskLaterAsynchronously(PluginContainer plugin,
int delay) |
Runnable |
runTaskTimer(PluginContainer plugin,
int delay,
int period) |
Runnable |
runTaskTimerAsynchronously(PluginContainer plugin,
int delay,
int period) |
public void cancel()
throws IllegalStateException
IllegalStateException - if task was not scheduled yetpublic Runnable runTask(PluginContainer plugin) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskAsynchronously(PluginContainer plugin) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskLater(PluginContainer plugin, int delay) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskLaterAsynchronously(PluginContainer plugin, int delay) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskTimer(PluginContainer plugin, int delay, int period) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskTimerAsynchronously(PluginContainer plugin, int delay, int period) throws IllegalArgumentException, IllegalStateException
public int getTaskId()
throws IllegalStateException
IllegalStateException - if task was not scheduled yetCopyright © 2020. All rights reserved.