mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2026-01-04 15:41:40 +00:00
Updated Upstream (Gale/Purpur/Dependencies) & Fix build
Thanks DivineMC's commit: fa0b20825c
This commit is contained in:
35
patches/api/0008-KeYi-Player-Skull-API.patch
Normal file
35
patches/api/0008-KeYi-Player-Skull-API.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
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 d09618735f42fc3a0f9fd0de15499860f96ce0b3..f5a371a55c17adda48d988be8b249ae63f2e3b19 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Player.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Player.java
|
||||
@@ -3935,4 +3935,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
|
||||
}
|
||||
Reference in New Issue
Block a user