mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2026-01-04 15:41:40 +00:00
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@b7f79d4 Updated Upstream (Paper) PurpurMC/Purpur@da0a61d [ci skip] move log4j plugin into proper location PurpurMC/Purpur@1d0d781 fix rambar nbt value not being saved to player, closes #1632 PurpurMC/Purpur@a9bcd9f fix villager not restocking while lobotomized, closes #1629 PurpurMC/Purpur@9d1d9fd [ci skip] inline import PurpurMC/Purpur@1b5ab0c Updated Upstream (Paper) PurpurMC/Purpur@4b74604 [ci skip] enable caching (#1634)
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 886a954b1a12e895f5d54fd35a9acb36673e3733..02cf7995d15487a4958ba5a5a19018d24d707b80 100644
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
@@ -4021,4 +4021,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
|
|
}
|