@NonnullByDefault public final class Schedulers extends Object
Scheduler.| Modifier and Type | Method and Description |
|---|---|
static Scheduler |
async()
Returns an "async" scheduler, which executes tasks asynchronously.
|
static TaskBuilder |
builder()
Gets a
TaskBuilder instance |
static org.bukkit.scheduler.BukkitScheduler |
bukkit()
Gets Bukkit's scheduler.
|
static Scheduler |
get(ThreadContext context)
Gets a scheduler for the given context.
|
static Scheduler |
sync()
Returns a "sync" scheduler, which executes tasks on the main server thread.
|
public static Scheduler get(ThreadContext context)
context - the contextpublic static Scheduler sync()
public static Scheduler async()
public static org.bukkit.scheduler.BukkitScheduler bukkit()
public static TaskBuilder builder()
TaskBuilder instanceCopyright © 2022. All rights reserved.