mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Add lightweight support for folia via MorePaperLib (#376)
This commit is contained in:
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();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user