implementation of isCurrentlyRunning(int taskId);

Burrows down to the worker thread assigned to this task, and returns
its alive status. If no such thread exists, then the task is not
running!
This commit is contained in:
Andrew Ardill
2011-02-14 15:29:52 +11:00
parent cf6c435c6e
commit dc45946163
4 changed files with 24 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import java.lang.Comparable;
import org.bukkit.plugin.Plugin;
public class CraftTask implements Comparable {
public class CraftTask implements Comparable<Object> {
private final Runnable task;
private final boolean syncTask;