Thanks for the response, I guess I should have mentioned this in my post, is this available for 1.18.1? I am trying to find it in my IDE, and I am unable to
Edit: I typed it in wrong, thanks!
What do I use for the first parameter, the screen parameter? Do I just make a new one, use null?
Oh, then it's probably the reobfuscation process.
Because minecraft is obfuscated, the deobfuscated function calls lead to nowhere, so they are converted.
Anyways, to find what they truly mean, look inside any of your mod projects (IntelliJ) > build > createMcpToSrg > output.tsrg. Then Ctrl + F to get the function's deobfuscated name