Interface PlatformTask


public interface PlatformTask
A cancellable handle to a task scheduled through a PlatformScheduler. Abstracts over the legacy BukkitTask and the Folia ScheduledTask so callers can cancel a repeating task without referencing a platform-specific type.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels the task; a no-op if it has already run or been cancelled.
    boolean
     
  • Method Details

    • cancel

      void cancel()
      Cancels the task; a no-op if it has already run or been cancelled.
    • isCancelled

      boolean isCancelled()
      Returns:
      true if this task has been cancelled.