public class BukkitTaskManager extends Object implements AbstractTaskManager
Constructor and Description |
---|
BukkitTaskManager(org.bukkit.plugin.java.JavaPlugin plugin) |
Modifier and Type | Method and Description |
---|---|
void |
cancelTask(int taskId) |
void |
run(Runnable task) |
void |
runAsync(Runnable task) |
void |
runAsyncLater(Runnable task,
int delay) |
void |
runLater(Runnable task,
int delay) |
int |
scheduleAsyncTask(Runnable task,
int delay,
int interval) |
int |
scheduleTask(Runnable task,
int delay,
int interval) |
public BukkitTaskManager(org.bukkit.plugin.java.JavaPlugin plugin) throws InvalidParameterException
InvalidParameterException
public int scheduleTask(Runnable task, int delay, int interval)
scheduleTask
in interface AbstractTaskManager
public void cancelTask(int taskId)
cancelTask
in interface AbstractTaskManager
public int scheduleAsyncTask(Runnable task, int delay, int interval)
scheduleAsyncTask
in interface AbstractTaskManager
public void run(Runnable task)
run
in interface AbstractTaskManager
public void runAsync(Runnable task)
runAsync
in interface AbstractTaskManager
public void runAsyncLater(Runnable task, int delay)
runAsyncLater
in interface AbstractTaskManager
public void runLater(Runnable task, int delay)
runLater
in interface AbstractTaskManager
Copyright © 2020. All rights reserved.