From 032ab01850215d5c7ed8efb94d8e392e4fc0ce87 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 23 Oct 2024 07:20:04 +1100 Subject: [PATCH] SPIGOT-7920: Expose enderpearls of Player By: md_5 --- .../src/main/java/org/bukkit/entity/Player.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index a5cbf0f41f..18bc9c1c90 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -491,6 +491,18 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM */ public void setRespawnLocation(@Nullable Location location, boolean force); + /** + * Gets the ender pearls currently associated with this entity. + *

+ * The returned list will not be directly linked to the entity's current + * pearls, and no guarantees are made as to its mutability. + * + * @return collection of entities corresponding to current pearls. + */ + @NotNull + @ApiStatus.Experimental + public Collection getEnderPearls(); + /** * Play a note for the player at a location.
* This will work with cake.