| 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.
|
void |
onCancel() |
void |
setHandler(TaskHandler taskHandler) |
public void cancel()
public void onCancel()
public int getTaskId()
throws IllegalStateException
IllegalStateException - if task was not scheduled yetpublic void setHandler(TaskHandler taskHandler)
Copyright © 2017–2018 NukkitX. All rights reserved.