Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
a774fbaca8
* feat: Entity#teleportAsync method with TeleportFlags * use method-local class --------- Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
26 Zeilen
1019 B
Diff
26 Zeilen
1019 B
Diff
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 9711a8077238383f23fb7aa2c20b2c089776e3f8..b32683b5e4431950d9dccec3ae11f6377c7b0da7 100644
|
|
--- a/src/main/java/org/bukkit/entity/Entity.java
|
|
+++ b/src/main/java/org/bukkit/entity/Entity.java
|
|
@@ -888,5 +888,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
|
|
}
|