Package kr.toxicity.hud.api.scheduler
Interface HudScheduler
public interface HudScheduler
Represents the adapted scheduler between Paper and Folia.
-
Method Summary
Modifier and TypeMethodDescription@NotNull HudTaskExecutes async task.@NotNull HudTaskasyncTaskLater(long delay, @NotNull Runnable runnable) Executes async task.@NotNull HudTaskasyncTaskTimer(long delay, long period, @NotNull Runnable runnable) Executes async task.@NotNull HudTaskExecutes sync task.@NotNull HudTasktask(@NotNull LocationWrapper location, @NotNull Runnable runnable) Executes sync task.@NotNull HudTaskExecutes sync task.
-
Method Details
-
task
Executes sync task.- Parameters:
runnable- task- Returns:
- scheduled task.
-
task
@NotNull @NotNull HudTask task(@NotNull @NotNull LocationWrapper location, @NotNull @NotNull Runnable runnable) Executes sync task.- Parameters:
location- locationrunnable- task- Returns:
- scheduled task.
-
taskLater
Executes sync task.- Parameters:
delay- delayrunnable- task- Returns:
- scheduled task.
-
asyncTask
Executes async task.- Parameters:
runnable- task- Returns:
- scheduled task.
-
asyncTaskLater
Executes async task.- Parameters:
delay- delayrunnable- task- Returns:
- scheduled task.
-
asyncTaskTimer
@NotNull @NotNull HudTask asyncTaskTimer(long delay, long period, @NotNull @NotNull Runnable runnable) Executes async task.- Parameters:
delay- delayperiod- periodrunnable- task- Returns:
- scheduled task.
-