feat: implement toString on vectors

This commit is contained in:
LordMZTE 2024-05-05 16:56:09 +02:00
parent 1b3a08a955
commit b01b5fb6c0
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 11 additions and 0 deletions

View file

@ -152,4 +152,9 @@ public class Vec3 {
return false;
return true;
}
@Override
public String toString() {
return "Vec (" + this.x + " " + this.y + " " + this.z + ")";
}
}

View file

@ -95,4 +95,10 @@ public class WorldVec extends Vec3 {
return false;
return true;
}
@Override
public String toString() {
return "WorldVec@" + this.world.provider.dimensionId + " (" + this.x + " "
+ this.y + " " + this.z + ")";
}
}