mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
SPIGOT-7920: Expose enderpearls of Player
By: md_5 <git@md-5.net>
This commit is contained in:
parent
015aeabb40
commit
032ab01850
1 changed files with 12 additions and 0 deletions
|
@ -491,6 +491,18 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||||
*/
|
*/
|
||||||
public void setRespawnLocation(@Nullable Location location, boolean force);
|
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>
|
* Play a note for the player at a location. <br>
|
||||||
* This <i>will</i> work with cake.
|
* This <i>will</i> work with cake.
|
||||||
|
|
Loading…
Reference in a new issue