From 022f95b2f1a7caf4c9d801ec4ad6d247ca248b2e Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 25 Mar 2011 21:01:55 +0100 Subject: [PATCH] Add: player.getCompassTarget By: Erik Broes --- paper-api/src/main/java/org/bukkit/entity/Player.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index bcb42fb15c..def7315d77 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -44,6 +44,13 @@ public interface Player extends HumanEntity, CommandSender { */ public void setCompassTarget(Location loc); + /** + * Get the previously set compass target. + * + * @return location of the target + */ + public Location getCompassTarget(); + /** * Gets the socket address of this player * @return the player's address