mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 10:57:11 +00:00
Add toString to Location
This commit is contained in:
parent
76a77f04e7
commit
c634ad6d08
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user