SchedulerUtil

public final class SchedulerUtil

Utility for transparent Folia/Paper scheduling.

Functions

Link copied to clipboard
Link copied to clipboard
public static void runAsync(@NotNull() @NotNull() Plugin plugin, @NotNull() @NotNull() Runnable task)
Link copied to clipboard
public static void runAtLocation(@NotNull() @NotNull() Plugin plugin, @NotNull() @NotNull() Location location, @NotNull() @NotNull() Runnable task)
Link copied to clipboard
public static void runDelayed(@NotNull() @NotNull() Plugin plugin, @NotNull() @NotNull() Runnable task, long delayTicks)
Link copied to clipboard
public static void runForEntity(@NotNull() @NotNull() Plugin plugin, @NotNull() @NotNull() Entity entity, @NotNull() @NotNull() Runnable task, @NotNull() @NotNull() Runnable fallback)
Link copied to clipboard
public static void runSync(@NotNull() @NotNull() Plugin plugin, @NotNull() @NotNull() Runnable task)