Interface TaskScheduler


public interface TaskScheduler
Responsible for scheduling tasks to occur later. Heavily inspired by Bukkit's scheduler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancel(Task task)
    Cancels a task.
    void
    start(Task task)
    Schedules a task for execution.
  • Method Details

    • start

      void start(Task task)
      Schedules a task for execution.
      Parameters:
      task - the task to run
    • cancel

      void cancel(Task task)
      Cancels a task.
      Parameters:
      task - the task to cancel