Closed ShadowLordAlpha closed 5 years ago
I have not dug into the library itself but with a bit of reflection the following code does print out on the map as expected
text.add(DebugText.text() .of("ResourcesPrincess") .withColor(Color.WHITE) .withSize(18) .onMap(location.add(Point.of(0,0,1))) .build());
nope, I did a dumb and was somehow on an old version. Sorry about that
The 3d DebugInterface#debugTextOut() appears to be nearly an identical copy of the 2d version and throws the following exception when attempting to run with a point on the map and not on the screen.
Exception in thread "main" java.lang.IllegalArgumentException: virtualized point 2d [x] has value 29.002588 and is greater than 1.0
I assume this is because for the point it is using
on()
instead ofonMap()
from the TextPositionSyntax but have not yet confirmed this