mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2026-01-03 22:26:19 +00:00
Remove useless Event TriState async API
This commit is contained in:
36
patches/api/0007-KeYi-Player-Skull-API.patch
Normal file
36
patches/api/0007-KeYi-Player-Skull-API.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: nostalgic853 <yuu8583@proton.me>
|
||||
Date: Sun, 20 Nov 2022 00:20:01 +0800
|
||||
Subject: [PATCH] KeYi: Player Skull API
|
||||
|
||||
Original license: MIT
|
||||
Original project: https://github.com/KeYiMC/KeYi
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
||||
index 66da298cb8ed2e53be10c23faf59b61b056e6530..d5df69a2e5b228545dfaaaa98ce88ec0da806315 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Player.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Player.java
|
||||
@@ -3988,4 +3988,23 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||
sendDeathScreen(message);
|
||||
}
|
||||
// Purpur end
|
||||
+
|
||||
+ // Leaf start - KeYi - Player Skull API
|
||||
+ /**
|
||||
+ * Get a skull item of a player.
|
||||
+ * This method runs on main thread, which may freeze the server.
|
||||
+ *
|
||||
+ * @return A skull ItemStack of the player
|
||||
+ */
|
||||
+ ItemStack getSkull();
|
||||
+
|
||||
+ /**
|
||||
+ * Get a skull item of a player.
|
||||
+ * This method runs on main thread, which may freeze the server.
|
||||
+ *
|
||||
+ * @return A CompletableFuture of the skull ItemStack of the player
|
||||
+ */
|
||||
+ @Deprecated(forRemoval = true)
|
||||
+ CompletableFuture<ItemStack> getSkullAsynchronously();
|
||||
+ // Leaf end - KeYi
|
||||
}
|
||||
Reference in New Issue
Block a user