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