forge close gui java

mc.thePlayer.closeScreen();
Victorious Vole