So, i think i forgot to specify, i was using version 1.16.5 and i was managing to hide the bars using "ForgeIngameGui.renderHealth = false;".
However, when I migrated to Forge version 1.17.1 I can't use this same command.
Obs.: I got to ForgeIngameGui.PLAYER_HEALTH_ELEMENT but I don't understand how to cancel the render.
How could I disable the game's Health and Hunger Gui. As I understand it, I need to use ForgeIngameGui, but I don't know how to proceed after that.
Sorry for any typos, my English is not the best.