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
-
task
@NotNull @NotNull HudTask task(@NotNull @NotNull LocationWrapper location, @NotNull @NotNull Runnable runnable) Executes sync task.- Parameters:
location- locationrunnable- task- Returns:
- scheduled task.
-
taskLater
-
asyncTask
-
asyncTaskLater
-
asyncTaskTimer
-