All Known Implementing Classes:
BukkitTask, FoliaTask

public interface Task
A scheduled task
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel the task
    org.bukkit.plugin.Plugin
    Get the plugin that owns the task
    boolean
    Check if the task is cancelled
    boolean
    Check if the task is done
  • 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