Package org.bukkit.scheduler
Interface BukkitTask
public interface BukkitTask
Represents a task being executed by the scheduler
- 
Method Details- 
getTaskIdint getTaskId()Returns the taskId for the task.- Returns:
- Task id number
 
- 
getOwnerReturns the Plugin that owns this task.- Returns:
- The Plugin that owns the task
 
- 
isSyncboolean isSync()Returns true if the Task is a sync task.- Returns:
- true if the task is run by main thread
 
- 
isCancelledboolean isCancelled()Returns true if this task has been cancelled.- Returns:
- true if the task has been cancelled
 
- 
cancelvoid cancel()Will attempt to cancel this task.
 
-