Add toString to Location

This commit is contained in:
Wizjany 2013-01-02 19:43:32 -05:00
parent 76a77f04e7
commit c634ad6d08

View File

@ -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);