Interface Task


public interface Task
The task generated by Runner
  • 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 async
    boolean
    Check if the task is cancelled
    boolean
    Check if the task is repeating
  • 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