mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -07:00
Add Entity#isTrackedBy (#12332)
This commit is contained in:
@@ -698,6 +698,15 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||
@NotNull
|
||||
Set<Player> getTrackedBy();
|
||||
|
||||
/**
|
||||
* Checks to see if a player is currently tracking this entity.
|
||||
*
|
||||
* @param player the player to check
|
||||
* @return if the player is currently tracking this entity
|
||||
* @see #getTrackedBy()
|
||||
*/
|
||||
boolean isTrackedBy(@NotNull Player player);
|
||||
|
||||
/**
|
||||
* Sets whether the entity has a team colored (default: white) glow.
|
||||
*
|
||||
|
Reference in New Issue
Block a user