summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/entity/Player.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index c10ffa13..6b955e49 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -1038,6 +1038,15 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
public double getHealthScale();
/**
+ * Gets the entity which is followed by the camera when in
+ * {@link GameMode#SPECTATOR}.
+ *
+ * @return the followed entity, or null if not in spectator mode or not
+ * following a specific entity.
+ */
+ public Entity getSpectatorTarget();
+
+ /**
* Sets the entity which is followed by the camera when in
* {@link GameMode#SPECTATOR}.
*