mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-30 12:51:17 +08:00
Add toString to Location
This commit is contained in:
parent
76a77f04e7
commit
c634ad6d08
@ -101,6 +101,11 @@ public int hashCode() {
|
||||
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