Add BukkitTask#isCancelled

By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
Bukkit/Spigot
2017-08-29 14:42:14 +02:00
parent 3fdb71844b
commit 5c2d43ae39
2 changed files with 42 additions and 21 deletions
@@ -28,6 +28,13 @@ public interface BukkitTask {
*/
public boolean isSync();
/**
* Returns true if this task has been cancelled.
*
* @return true if the task has been cancelled
*/
public boolean isCancelled();
/**
* Will attempt to cancel this task.
*/