2021-06-11 12:02:28 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Tom <cryptite@gmail.com>
|
|
|
|
Date: Fri, 26 Feb 2021 16:24:25 -0600
|
|
|
|
Subject: [PATCH] Expose Tracked Players
|
|
|
|
|
|
|
|
|
2021-11-08 21:39:42 +00:00
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
|
|
|
|
index b02704b0535522c5535b560105eec2885fdd3e77..d515de1c316f14165ee327bc81f0be98b60db3bf 100644
|
|
|
|
--- a/src/main/java/org/bukkit/entity/Entity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Entity.java
|
|
|
|
@@ -760,5 +760,12 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
|
|
|
* Check if entity is inside a ticking chunk
|
|
|
|
*/
|
|
|
|
public boolean isTicking();
|
|
|
|
+
|
2021-06-11 12:02:28 +00:00
|
|
|
+ /**
|
2021-11-08 21:39:42 +00:00
|
|
|
+ * Returns a set of {@link Player Players} within this entity's tracking range (players that can "see" this entity).
|
|
|
|
+ *
|
|
|
|
+ * @return players in tracking range
|
2021-06-11 12:02:28 +00:00
|
|
|
+ */
|
2021-11-08 21:39:42 +00:00
|
|
|
+ @NotNull Set<Player> getTrackedPlayers();
|
|
|
|
// Paper end
|
|
|
|
}
|