Interface Task
public interface Task
The task generated by
Runner-
Method Details
-
isCancelled
boolean isCancelled()Check if the task is cancelled- Returns:
- true if the task is cancelled
-
cancel
void cancel()Cancel the task -
isAsync
boolean isAsync()Check if the task is async- Returns:
- true if the task is async
-
isRepeating
boolean isRepeating()Check if the task is repeating- Returns:
- true if the task is repeating
-
getPlugin
org.bukkit.plugin.Plugin getPlugin()Get the plugin that owns the task- Returns:
- the plugin
-