Posted December 2, 201410 yr I've been follow a tutorial for creating a Gui, its outdated but it works fine... Until I get to the part about registering my GuiHandler. It mentions NetworkRegistry, which doesn't exist in 1.7, so what I'm wondering is, what is the alternative for NetworkRegistry? How do I register my GuiHandler? Thanks in Advance. My code, if needed: The Gui class I'm working on: https://github.com/AwesomeSpider/Wizardry/blob/master/src/main/java/com/awsp8/wizardry/gui/ArcaneHarnesserGui.java My GuiHandler: https://github.com/AwesomeSpider/Wizardry/blob/master/src/main/java/com/awsp8/wizardry/gui/GuiHandler.java The tutorial I'm following: http://www.minecraftforge.net/wiki/Basic_GUI
December 2, 201410 yr I've been follow a tutorial for creating a Gui, its outdated but it works fine... Until I get to the part about registering my GuiHandler. It mentions NetworkRegistry, which doesn't exist in 1.7, so what I'm wondering is, what is the alternative for NetworkRegistry? How do I register my GuiHandler? Thanks in Advance. My code, if needed: The Gui class I'm working on: https://github.com/AwesomeSpider/Wizardry/blob/master/src/main/java/com/awsp8/wizardry/gui/ArcaneHarnesserGui.java My GuiHandler: https://github.com/AwesomeSpider/Wizardry/blob/master/src/main/java/com/awsp8/wizardry/gui/GuiHandler.java The tutorial I'm following: http://www.minecraftforge.net/wiki/Basic_GUI There is a network registry. I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!
December 2, 201410 yr Oh, *facepalm* I was using: NetworkRegistry.instance().registerGuiHandler(instance, new GuiHandler()); instead of: NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler()); Lol, thanks.
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.