mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-27 02:49:19 +00:00
* Update Leaf API patches to 1.20.5 * Updated Upstream (Purpur API) * Some server patches work * Update 1.20.6 * Some server patches work * Some some server patches work * 0oO0oO0oOo * iI1IiI1i|!il| * Updated Upstream (Gale/Purpur) * Server patches work * Updated Upstream (Gale)
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
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 2ba39b38a97333f867bcabdf593448ca14255703..fbe4f03bec652e096c46496f1f52080ce43982eb 100644
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
@@ -3925,4 +3925,22 @@ 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
|
|
+ */
|
|
+ CompletableFuture<ItemStack> getSkullAsynchronously();
|
|
+ // Leaf end - KeYi
|
|
}
|