Interface FoliaScheduler.ScheduledTask
- Enclosing interface:
FoliaScheduler
public static interface FoliaScheduler.ScheduledTask
Represents a scheduled task that can be cancelled.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels this task.@NotNull org.bukkit.plugin.PluginReturns the plugin that owns this task.booleanReturns true if this task is cancelled.
-
Method Details
-
cancel
void cancel()Cancels this task. -
isCancelled
boolean isCancelled()Returns true if this task is cancelled.- Returns:
- true if cancelled
-
getOwningPlugin
@NotNull @NotNull org.bukkit.plugin.Plugin getOwningPlugin()Returns the plugin that owns this task.- Returns:
- the owning plugin
-