Add lightweight support for folia via MorePaperLib (#376)

This commit is contained in:
William authored and GitHub committed 2023-04-30 17:45:53 +01:00
1 parent 5d9ac81bcd
commit 0606e49d02
10 files changed
+88 -25

No files matched your search

@@ -26,13 +26,22 @@ import java.util.concurrent.CompletableFuture;
import java.util.function.Supplier;
public interface TaskRunner {
int runAsync(@NotNull Runnable runnable);
<T> CompletableFuture<T> supplyAsync(@NotNull Supplier<T> supplier);
void runSync(@NotNull Runnable runnable);
int runAsyncRepeating(@NotNull Runnable runnable, long delay);
void runLater(@NotNull Runnable runnable, long delay);
void cancelTask(int taskId);
void cancelAllTasks();
@NotNull
HuskHomes getPlugin();
}