Files
ParchmentMC/patches/api/0008-Expose-MCUtil-Executors.patch
Lexi 50649b6a64 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@fb2c24b Updated Upstream (Bukkit/CraftBukkit) (#8015)
PaperMC/Paper@4c9317c Use non-deprecated super ctor in PaperServerListPingEventImpl (#8029)
2022-06-22 02:13:20 -04:00

32 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: lexikiq <noellekiq@gmail.com>
Date: Sun, 20 Jun 2021 19:39:38 -0400
Subject: [PATCH] Expose MCUtil Executors
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
index e756edf56995f4552387c2e1082307eb3dd48bb3..e4cefd01d6400bfd3192f7b27f3fa7e9984fb7df 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -2090,4 +2090,20 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
*/
@NotNull org.bukkit.potion.PotionBrewer getPotionBrewer();
// Paper end
+
+ // Parchment start
+ /**
+ * Gets the executor which runs tasks on an asynchronous thread pool.
+ * @return async executor
+ */
+ @NotNull
+ java.util.concurrent.Executor getAsyncExecutor();
+
+ /**
+ * Gets the executor which runs tasks on the main thread.
+ * @return main executor
+ */
+ @NotNull
+ java.util.concurrent.Executor getMainExecutor();
+ // Parchment end
}