org.bukkit.scheduler
Interface BukkitTask


public interface BukkitTask

Represents a task being executed by the scheduler


Method Summary
 void cancel()
          Will attempt to cancel this task.
 Plugin getOwner()
          Returns the Plugin that owns this task.
 int getTaskId()
          Returns the taskId for the task.
 boolean isSync()
          Returns true if the Task is a sync task.
 

Method Detail

getTaskId

int getTaskId()
Returns the taskId for the task.

Returns:
Task id number

getOwner

Plugin getOwner()
Returns the Plugin that owns this task.

Returns:
The Plugin that owns the task

isSync

boolean isSync()
Returns true if the Task is a sync task.

Returns:
true if the task is run by main thread

cancel

void cancel()
Will attempt to cancel this task.



Copyright © 2013. All Rights Reserved.