From d29af24528428c7763b3dd32e26e07e5d12fae68 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 12 Jun 2015 15:34:32 +1000 Subject: SPIGOT-436: Add accompanying getSpectatorTarget(). --- src/main/java/org/bukkit/entity/Player.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main') 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 @@ -1037,6 +1037,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}. -- cgit v1.2.3