Interface BukkitTask


public interface BukkitTask
Represents a task being executed by the scheduler
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Will attempt to cancel this task.
    Returns the Plugin that owns this task.
    int
    Returns the taskId for the task.
    boolean
    Returns true if this task has been cancelled.
    boolean
    Returns true if the Task is a sync task.
  • Method Details

    • getTaskId

      int getTaskId()
      Returns the taskId for the task.
      Returns:
      Task id number
      Since:
      1.0.0
    • getOwner

      Returns the Plugin that owns this task.
      Returns:
      The Plugin that owns the task
      Since:
      1.0.0
    • isSync

      boolean isSync()
      Returns true if the Task is a sync task.
      Returns:
      true if the task is run by main thread
      Since:
      1.0.0
    • isCancelled

      boolean isCancelled()
      Returns true if this task has been cancelled.
      Returns:
      true if the task has been cancelled
      Since:
      1.12.1
    • cancel

      void cancel()
      Will attempt to cancel this task.
      Since:
      1.3.2