3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 02:20:07 +01:00

Add toString to Location

Dieser Commit ist enthalten in:
Wizjany 2013-01-02 19:43:32 -05:00
Ursprung 76a77f04e7
Commit c634ad6d08

Datei anzeigen

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