Posted March 26, 201312 yr Hey everyone - first post! I need some help trying to obtain the current Minecraft instance of the GuiMainMenu through Forge. Is this possible without editing base classes? I know the instance is created within Minecraft.java but I can't seem to find a way to access it without modifying the existing code. It also seems that multiple instances are created. Can I just create my own instance and use it? Doesn't seem to work. This code runs fine, however. It is placed in the pre-initialization event. GuiMainMenu menu = new GuiMainMenu(); menu.drawString(Minecraft.getMinecraft().fontRenderer, "Hello, main menu!", 0, 0, 1); This code does not draw the text on the main menu.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.