Add Entity#isTrackedBy (#12332)

This commit is contained in:
TonytheMacaroni
2025-04-14 04:12:48 -04:00
committed by GitHub
parent de64e70458
commit 1b889688a5
2 changed files with 21 additions and 0 deletions

View File

@@ -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.
*