| 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(Plugin plugin) |
Runnable |
runTaskAsynchronously(Plugin plugin) |
Runnable |
runTaskLater(Plugin plugin,
int delay) |
Runnable |
runTaskLaterAsynchronously(Plugin plugin,
int delay) |
Runnable |
runTaskTimer(Plugin plugin,
int delay,
int period) |
Runnable |
runTaskTimerAsynchronously(Plugin plugin,
int delay,
int period) |
public void cancel()
throws IllegalStateException
IllegalStateException - if task was not scheduled yetpublic Runnable runTask(Plugin plugin) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskAsynchronously(Plugin plugin) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskLater(Plugin plugin, int delay) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskLaterAsynchronously(Plugin plugin, int delay) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskTimer(Plugin plugin, int delay, int period) throws IllegalArgumentException, IllegalStateException
public Runnable runTaskTimerAsynchronously(Plugin plugin, int delay, int period) throws IllegalArgumentException, IllegalStateException
public int getTaskId()
throws IllegalStateException
IllegalStateException - if task was not scheduled yetCopyright © 2020. All rights reserved.