mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
#859: Add Entity#getTrackedBy
This commit is contained in:
parent
044d4ee93f
commit
c085f3de1d
1 changed files with 14 additions and 0 deletions
|
@ -547,6 +547,20 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||||
@ApiStatus.Experimental
|
@ApiStatus.Experimental
|
||||||
public boolean isVisibleByDefault();
|
public boolean isVisibleByDefault();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all players that are currently tracking this entity.
|
||||||
|
* <p>
|
||||||
|
* 'Tracking' means that this entity has been sent to the player and that
|
||||||
|
* they are receiving updates on its state. Note that the client's {@code
|
||||||
|
* 'Entity Distance'} setting does not affect the range at which entities
|
||||||
|
* are tracked.
|
||||||
|
*
|
||||||
|
* @return the players tracking this entity, or an empty set if none
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
@ApiStatus.Experimental
|
||||||
|
Set<Player> getTrackedBy();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets whether the entity has a team colored (default: white) glow.
|
* Sets whether the entity has a team colored (default: white) glow.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue