Interface BukkitWorker
public interface BukkitWorker
Represents a worker thread for the scheduler. This gives information about
the Thread object for the task, owner of the task and the taskId.
Workers are used to execute async tasks.
- Since:
- 1.0.0
-
Method Summary
-
Method Details
-
getTaskId
int getTaskId()Returns the taskId for the task being executed by this worker.- Returns:
- Task id number
- Since:
- 1.0.0
-
getOwner
Returns the Plugin that owns this task.- Returns:
- The Plugin that owns the task
- Since:
- 1.0.0
-
getThread
Returns the thread for the worker.- Returns:
- The Thread object for the worker
- Since:
- 1.0.0
-