Hi so i am currently trying to learn the basics of coding in minecraft and i have started to make a gui, i have a title box for my gui that i made in the GuiIngame.java class file(Very basic ik)

This is the code i used. else{
drawRect(2,2,425,14, 0xaf424242);

}

And i placed it under the this.mc.mcProfiler.endSection();
}

But i want to be able to display text on there and i cannot figure out how all the tutorials i have watched say use "var8.drawStringWithShadow" but that dosnt work, any ideas on how to get it working?

EDIT: I figured out how to do it



Thanks