mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-21 07:59:26 +00:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@41bc31b Update paperweight to 1.7.3 (#11445) PaperMC/Paper@e17eb6b Improve entity effect API (#11444) PaperMC/Paper@7b03141 Add startingBrewTime (#11406) PaperMC/Paper@355b1cb Add API for explosions to damage the explosion cause (#11180) PaperMC/Paper@6d7a438 Call bucket events for cauldrons (#7486) Gale Changes: Dreeam-qwq/Gale@2c4cde4 Updated Upstream (Paper) Dreeam-qwq/Gale@d4d81da [ci skip] Update paperweight
37 lines
1.3 KiB
Diff
37 lines
1.3 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 0cba31526ae7c0429885bb8802512eaad3573e42..f96ca62d81db8362a9f74f00ff54b151f96c04fe 100644
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
@@ -4000,4 +4000,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
|
|
}
|