aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0259-Expose-Tracked-Players.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0259-Expose-Tracked-Players.patch')
-rw-r--r--patches/api/0259-Expose-Tracked-Players.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/api/0259-Expose-Tracked-Players.patch b/patches/api/0259-Expose-Tracked-Players.patch
new file mode 100644
index 0000000000..ef64931c5d
--- /dev/null
+++ b/patches/api/0259-Expose-Tracked-Players.patch
@@ -0,0 +1,25 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tom <[email protected]>
+Date: Fri, 26 Feb 2021 16:24:25 -0600
+Subject: [PATCH] Expose Tracked Players
+
+
+diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
+index 1dda73ca06a8d513cc3e9a3e4b1739520ca900ec..e0e3af0f229f8af66de70d7b741200e301476677 100644
+--- a/src/main/java/org/bukkit/entity/Entity.java
++++ b/src/main/java/org/bukkit/entity/Entity.java
+@@ -841,5 +841,14 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
+ * Check if entity is inside a ticking chunk
+ */
+ boolean isTicking();
++
++ /**
++ * Returns a set of {@link Player Players} within this entity's tracking range (players that can "see" this entity).
++ *
++ * @return players in tracking range
++ * @deprecated slightly misleading name, use {@link #getTrackedBy()}
++ */
++ @Deprecated
++ @NotNull Set<Player> getTrackedPlayers();
+ // Paper end
+ }