From 205360171ca27ce7e5cf0d4cded89d26d404194b Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 23 Oct 2024 07:20:04 +1100 Subject: [PATCH] SPIGOT-7920: Expose enderpearls of Player --- src/main/java/org/bukkit/entity/Player.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index a5cbf0f4..18bc9c1c 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/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.