Class Tasks
java.lang.Object
studio.magemonkey.fabled.enchants.api.Tasks
FabledEnchants © 2026 VoidEdge
api.studio.magemonkey.fabled.enchants.Tasks
Utility class providing ways to register tasks through FabledEnchants
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.scheduler.BukkitTaskSchedules a task to run next tickstatic org.bukkit.scheduler.BukkitTaskSchedules a task to run after the specified number of ticksstatic org.bukkit.scheduler.BukkitTaskSchedules a task to run continuouslystatic org.bukkit.scheduler.BukkitTaskSchedules a task to run a given number of times
-
Constructor Details
-
Tasks
public Tasks()
-
-
Method Details
-
schedule
Schedules a task to run next tick- Parameters:
runnable- runnable to execute- Returns:
- task handling the runnable
-
schedule
Schedules a task to run after the specified number of ticks- Parameters:
runnable- runnable to executedelay- number of ticks to wait- Returns:
- task handling the runnable
-
schedule
Schedules a task to run continuously- Parameters:
runnable- runnable to executedelay- delay in ticks before running the task the first timeinterval- 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 executedelay- delay in ticks before running the task the first timeinterval- time in ticks between each subsequent executionrepetitions- number of times the task should run- Returns:
- task handling the runnable
-