SPIGOT-7920: Expose enderpearls of Player

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2024-10-23 07:20:04 +11:00
parent 015aeabb40
commit 032ab01850

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.