Interface FoliaScheduler.ScheduledTask

Enclosing interface:
FoliaScheduler

public static interface FoliaScheduler.ScheduledTask
Represents a scheduled task that can be cancelled.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels this task.
    @NotNull org.bukkit.plugin.Plugin
    Returns the plugin that owns this task.
    boolean
    Returns 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