public final class NukkitTask extends Task
| Constructor and Description |
|---|
NukkitTask(MainBinding main) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
async(GRunnable task)
Implementation of running a runnable async
|
protected void |
scheduleAsync(GRunnable task,
sh.okx.timeapi.TimeAPI time,
boolean repeat)
Implementation of scheduling an async runnable
|
@Inject public NukkitTask(MainBinding main)
protected void async(GRunnable task)
Taskprotected void scheduleAsync(GRunnable task, sh.okx.timeapi.TimeAPI time, boolean repeat)
TaskscheduleAsync in class Tasktask - Task to runtime - Time till it runs (or interval)repeat - Whether the task should be on loop, or only run once.