2021-06-11 14:02:28 +02: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 22:39:42 +01:00
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
|
2024-04-23 19:02:08 +02:00
|
|
|
index e9c3c5c4099f7bf7f83bde0b47fd193a3b401f0a..c7d6a328def83619dca9b6122aeb5870e4585e70 100644
|
2021-11-08 22:39:42 +01:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Entity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Entity.java
|
2024-04-23 19:02:08 +02:00
|
|
|
@@ -899,5 +899,14 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
2021-11-08 22:39:42 +01:00
|
|
|
* Check if entity is inside a ticking chunk
|
|
|
|
*/
|
2022-10-11 14:43:10 +02:00
|
|
|
boolean isTicking();
|
2021-11-08 22:39:42 +01:00
|
|
|
+
|
2021-06-11 14:02:28 +02:00
|
|
|
+ /**
|
2021-11-08 22:39:42 +01: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
|
2023-10-03 13:55:12 +02:00
|
|
|
+ * @deprecated slightly misleading name, use {@link #getTrackedBy()}
|
2021-06-11 14:02:28 +02:00
|
|
|
+ */
|
2023-10-03 13:55:12 +02:00
|
|
|
+ @Deprecated
|
2021-11-08 22:39:42 +01:00
|
|
|
+ @NotNull Set<Player> getTrackedPlayers();
|
|
|
|
// Paper end
|
|
|
|
}
|