feat: implement toString on vectors
This commit is contained in:
parent
1b3a08a955
commit
b01b5fb6c0
2 changed files with 11 additions and 0 deletions
|
@ -152,4 +152,9 @@ public class Vec3 {
|
|||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Vec (" + this.x + " " + this.y + " " + this.z + ")";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 + ")";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue