From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: nostalgic853 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 04392bebe3a0ca1cff8932610393cb3dbec1c722..2d454fb1446c2d8808253b4f020c0afda341545c 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 getSkullAsynchronously(); + // Leaf end - KeYi }