BukkitRunnable

public abstract class BukkitRunnable implements Runnable

This class is provided as an easy way to handle scheduling tasks.

Constructors

Link copied to clipboard
public void BukkitRunnable()

Properties

Link copied to clipboard
public int taskId

Functions

Link copied to clipboard
public synchronized void cancel()
Attempts to cancel this task.
Link copied to clipboard
public synchronized int getTaskId()
Gets the task id for this runnable.
Link copied to clipboard
public abstract void run()
Link copied to clipboard
public synchronized BukkitTask runTask(Plugin plugin)
Schedules this in the Bukkit scheduler to run on next tick.
Link copied to clipboard
public synchronized BukkitTask runTaskAsynchronously(Plugin plugin)
Asynchronous tasks should never access any API in Bukkit.
Link copied to clipboard
public synchronized BukkitTask runTaskLater(Plugin plugin, long delay)
Schedules this to run after the specified number of server ticks.
Link copied to clipboard
public synchronized BukkitTask runTaskLaterAsynchronously(Plugin plugin, long delay)
Asynchronous tasks should never access any API in Bukkit.
Link copied to clipboard
public synchronized BukkitTask runTaskTimer(Plugin plugin, long delay, long period)
Schedules this to repeatedly run until cancelled, starting after the specified number of server ticks.
Link copied to clipboard
public synchronized BukkitTask runTaskTimerAsynchronously(Plugin plugin, long delay, long period)
Asynchronous tasks should never access any API in Bukkit.