Hey,
I'm trying to do a simple mod which displays coordinates on the corner of the screen. I was able to do so in 1.15.2 using this:
Minecraft.getInstance().fontRenderer.drawString("some text", 0, 0, TextFormatting.WHITE.getColor());
However when I try to do the same thing in 1.16.1 the method drawString() does not exists. Also none of the methods of FontRenderer has the same signature.
Is there another way of displaying text in the player's HUD ?
Thanks !
1 reply
Important Information
By using this site, you agree to our Terms of Use.