aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0259-Expose-Tracked-Players.patch
blob: 72636f895de87f14e936d0282f8b1d1b6a650722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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


diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
index 387413af95421159eae04737cc04c8221e88357b..9d3694c6e1144e04006425fb96b802c96e5fdc12 100644
--- a/src/main/java/org/bukkit/entity/Entity.java
+++ b/src/main/java/org/bukkit/entity/Entity.java
@@ -880,5 +880,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
 }