Class SchedulerManager.Task

java.lang.Object
dev.cwhead.GravesX.manager.SchedulerManager.Task
Enclosing class:
SchedulerManager

public static final class SchedulerManager.Task extends Object
Managed task wrapper that retains the owning SchedulerManager.
  • Method Details

    • getSchedulerManager

      @NotNull public @NotNull SchedulerManager getSchedulerManager()
      Returns the owning SchedulerManager.
      Returns:
      scheduler manager
    • getHandle

      @NotNull public @NotNull me.croabeast.scheduler.GlobalTask getHandle()
      Returns the raw GlobalTask handle.
      Returns:
      task handle
    • getTaskId

      public int getTaskId()
      Returns the task id.
      Returns:
      task id
    • cancel

      public void cancel()
      Cancels this task.
    • isCancelled

      public boolean isCancelled()
      Checks if this task is cancelled.
      Returns:
      true if cancelled, otherwise false
    • getPlugin

      @NotNull public @NotNull org.bukkit.plugin.Plugin getPlugin()
      Returns the plugin that scheduled this task.
      Returns:
      owning plugin
    • isRunning

      public boolean isRunning()
      Checks if this task is currently running.
      Returns:
      true if running, otherwise false
    • isRepeating

      public boolean isRepeating()
      Checks if this task is repeating.
      Returns:
      true if repeating, otherwise false