java.lang.Object
studio.magemonkey.fabled.enchants.api.Tasks

public class Tasks extends Object
FabledEnchants © 2026 VoidEdge api.studio.magemonkey.fabled.enchants.Tasks

Utility class providing ways to register tasks through FabledEnchants

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.scheduler.BukkitTask
    schedule(Runnable runnable)
    Schedules a task to run next tick
    static org.bukkit.scheduler.BukkitTask
    schedule(Runnable runnable, int delay)
    Schedules a task to run after the specified number of ticks
    static org.bukkit.scheduler.BukkitTask
    schedule(Runnable runnable, int delay, int interval)
    Schedules a task to run continuously
    static org.bukkit.scheduler.BukkitTask
    schedule(Runnable runnable, int delay, int interval, int repetitions)
    Schedules a task to run a given number of times

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Tasks

      public Tasks()
  • Method Details

    • schedule

      public static org.bukkit.scheduler.BukkitTask schedule(Runnable runnable)
      Schedules a task to run next tick
      Parameters:
      runnable - runnable to execute
      Returns:
      task handling the runnable
    • schedule

      public static org.bukkit.scheduler.BukkitTask schedule(Runnable runnable, int delay)
      Schedules a task to run after the specified number of ticks
      Parameters:
      runnable - runnable to execute
      delay - number of ticks to wait
      Returns:
      task handling the runnable
    • schedule

      public static org.bukkit.scheduler.BukkitTask schedule(Runnable runnable, int delay, int interval)
      Schedules a task to run continuously
      Parameters:
      runnable - runnable to execute
      delay - delay in ticks before running the task the first time
      interval - time in ticks between each subsequent execution
      Returns:
      task handling the runnable
    • schedule

      public static org.bukkit.scheduler.BukkitTask schedule(Runnable runnable, int delay, int interval, int repetitions)
      Schedules a task to run a given number of times
      Parameters:
      runnable - runnable to execute
      delay - delay in ticks before running the task the first time
      interval - time in ticks between each subsequent execution
      repetitions - number of times the task should run
      Returns:
      task handling the runnable