blob: 70a637b82cf20cd81a34de2f29822f029d406d4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package org.bukkit.scheduler;
import org.bukkit.plugin.Plugin;
/**
* Represents a worker thread for the scheduler. This gives information about
* the Thread object for the task, owner of the task and the taskId.
* </p>
* Workers are used to execute async tasks.
*/
public interface BukkitWorker {
/**
* Returns the taskId for the task being executed by this worker
*
* @return Task id number
*/
public int getTaskId();
/**
* Returns the Plugin that owns this task
*
* @return The Plugin that owns the task
*/
public Plugin getOwner();
/**
* Returns the thread for the worker
*
* @return The Thread object for the worker
*/
public Thread getThread();
}
|