geforkt von Mirrors/FastAsyncWorldEdit
Add toString to Location
Dieser Commit ist enthalten in:
Ursprung
76a77f04e7
Commit
c634ad6d08
@ -101,6 +101,11 @@ public class Location {
|
|||||||
return position.hashCode() + 19 * world.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) {
|
public static Location fromLookAt(LocalWorld world, Vector start, Vector lookAt) {
|
||||||
final Vector diff = lookAt.subtract(start);
|
final Vector diff = lookAt.subtract(start);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren