SPIGOT-7920: Expose enderpearls of Player

This commit is contained in:
md_5 2024-10-23 07:20:04 +11:00
parent ef842b72bb
commit 205360171c
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -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.
* <p>
* 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<EnderPearl> getEnderPearls();
/**
* Play a note for the player at a location. <br>
* This <i>will</i> work with cake.