Interface TaskImpl<C>

All Known Implementing Classes:
FoliaScheduledTask, SpigotScheduledTask

public interface TaskImpl<C>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    boolean
     
    boolean
    Returns whether this task executes on a fixed period, as opposed to executing only once.
    boolean
    Returns true if the Task is a sync task.
  • Method Details

    • cancel

      void cancel()
    • isCancelled

      boolean isCancelled()
    • getOwner

      C getOwner()
    • isRepeatingTask

      boolean isRepeatingTask()
      Returns whether this task executes on a fixed period, as opposed to executing only once.
      Returns:
      whether this task executes on a fixed period, as opposed to executing only once.
    • isSynchronized

      boolean isSynchronized()
      Returns true if the Task is a sync task.

      In folia, it will always be false

      Returns:
      true if the task is run by main thread