Interface Task
- All Known Implementing Classes:
BukkitTask
,FoliaTask
public interface Task
A scheduled task
-
Method Details
-
isCancelled
boolean isCancelled()Check if the task is cancelled- Returns:
- true if the task is cancelled
-
isDone
boolean isDone()Check if the task is done- Returns:
- true if the task is done
-
cancel
void cancel()Cancel the task -
getPlugin
org.bukkit.plugin.Plugin getPlugin()Get the plugin that owns the task- Returns:
- the plugin
-