From c634ad6d08a69399b809f789d97dacd97cb1082e Mon Sep 17 00:00:00 2001 From: Wizjany Date: Wed, 2 Jan 2013 19:43:32 -0500 Subject: [PATCH] Add toString to Location --- src/main/java/com/sk89q/worldedit/Location.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/Location.java b/src/main/java/com/sk89q/worldedit/Location.java index 550812c04..7a39d9175 100644 --- a/src/main/java/com/sk89q/worldedit/Location.java +++ b/src/main/java/com/sk89q/worldedit/Location.java @@ -101,6 +101,11 @@ public class Location { return position.hashCode() + 19 * world.hashCode(); } + @Override + public String toString() { + return "World: " + world.getName() + ", Coordinates: " + position.toString() + + ", Yaw: " + yaw + ", Pitch: " + pitch; + } public static Location fromLookAt(LocalWorld world, Vector start, Vector lookAt) { final Vector diff = lookAt.subtract(start);