Uses of Interface
org.bukkit.scheduler.BukkitTask
Package
Description
Classes dedicated to letting
plugins
run
code at specific time intervals, including thread safety.-
Uses of BukkitTask in org.bukkit.scheduler
Modifier and TypeMethodDescriptionSchedules this in the Bukkit scheduler to run on next tick.Returns a task that will run on the next server tick.BukkitScheduler.runTask
(Plugin plugin, BukkitRunnable task) Deprecated.BukkitRunnable.runTaskAsynchronously
(Plugin plugin) Asynchronous tasks should never access any API in Bukkit.BukkitScheduler.runTaskAsynchronously
(Plugin plugin, Runnable task) Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.BukkitScheduler.runTaskAsynchronously
(Plugin plugin, BukkitRunnable task) Deprecated.BukkitRunnable.runTaskLater
(Plugin plugin, long delay) Schedules this to run after the specified number of server ticks.BukkitScheduler.runTaskLater
(Plugin plugin, Runnable task, long delay) Returns a task that will run after the specified number of server ticks.BukkitScheduler.runTaskLater
(Plugin plugin, BukkitRunnable task, long delay) Deprecated.BukkitRunnable.runTaskLaterAsynchronously
(Plugin plugin, long delay) Asynchronous tasks should never access any API in Bukkit.BukkitScheduler.runTaskLaterAsynchronously
(Plugin plugin, Runnable task, long delay) Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.BukkitScheduler.runTaskLaterAsynchronously
(Plugin plugin, BukkitRunnable task, long delay) Deprecated.BukkitRunnable.runTaskTimer
(Plugin plugin, long delay, long period) Schedules this to repeatedly run until cancelled, starting after the specified number of server ticks.BukkitScheduler.runTaskTimer
(Plugin plugin, Runnable task, long delay, long period) Returns a task that will repeatedly run until cancelled, starting after the specified number of server ticks.BukkitScheduler.runTaskTimer
(Plugin plugin, BukkitRunnable task, long delay, long period) Deprecated.BukkitRunnable.runTaskTimerAsynchronously
(Plugin plugin, long delay, long period) Asynchronous tasks should never access any API in Bukkit.BukkitScheduler.runTaskTimerAsynchronously
(Plugin plugin, Runnable task, long delay, long period) Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.BukkitScheduler.runTaskTimerAsynchronously
(Plugin plugin, BukkitRunnable task, long delay, long period) Deprecated.Modifier and TypeMethodDescriptionBukkitScheduler.getPendingTasks()
Returns a list of all pending tasks.Modifier and TypeMethodDescriptionvoid
BukkitScheduler.runTask
(Plugin plugin, Consumer<BukkitTask> task) Returns a task that will run on the next server tick.void
BukkitScheduler.runTaskAsynchronously
(Plugin plugin, Consumer<BukkitTask> task) Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.void
BukkitScheduler.runTaskLater
(Plugin plugin, Consumer<BukkitTask> task, long delay) Returns a task that will run after the specified number of server ticks.void
BukkitScheduler.runTaskLaterAsynchronously
(Plugin plugin, Consumer<BukkitTask> task, long delay) Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.void
BukkitScheduler.runTaskTimer
(Plugin plugin, Consumer<BukkitTask> task, long delay, long period) Returns a task that will repeatedly run until cancelled, starting after the specified number of server ticks.void
BukkitScheduler.runTaskTimerAsynchronously
(Plugin plugin, Consumer<BukkitTask> task, long delay, long period) Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.
BukkitRunnable.runTask(Plugin)