Fabric API

Fabric API

106M Downloads

How to draw string to screen?

pvorisek25 opened this issue · 2 comments

commented

I am trying to use the drawWithShadow method to draw to screen. I am calling this method every client tick callback but there is no text after loading a world.

This is my actual code that I call every client tick:
MinecraftClient.getInstance().inGameHud.getFontRenderer().drawWithShadow("Help", 1, 1, 0xffffff);

commented

tick != render frame, you must mixin to InGameHud manually until #359 is merged

commented

Thanks @shedaniel ! It works now.