Posted April 1, 201411 yr So I recently started updating my stuff to 1.7 which in this case is a faster furnace. I have been mainly just getting all the stuff by looking at the vanilla furnace from 1.6 and 1.7, comparing and contrasting them to make a new furnace for 1.7. The block places and everything but when I can't get the Gui to appear. From adding some debug code I have found out that the onBlockActivated() is calling the openGui(), other than that haven't been able to track it down. But if I were to bet anything it will be either the GuiHandler or the Register in the main modding class because I could find references for those. No errors are thrown except for texture issues but I never setup textures except for the Gui. I made pastebins so that I could point out most likely causes. Main Modding Class http://pastebin.com/UVxUyFDu lines: 37, 39, 148, 149. Didn't know exactly how to adjust for the update so I kinda winged it. Block Class http://pastebin.com/R4jqH1kU TileEntity Class http://pastebin.com/2TYbnn52 Gui Handler http://pastebin.com/uPYVVRJB Gui Class http://pastebin.com/4LrCU3Ch Container Class http://pastebin.com/aW4ejTvX Don't judge still learning how all this stuff works.
April 1, 201411 yr Author I found the problem. I was using vanilla's opengui instead of using FMLNetworkHandler
April 1, 201411 yr Author I see what you mean with it being a forge method looking at it again and I don't know why i said vanilla cause I looked at that method before. The original problem is eclipse autofilling it filled the parameters and put in the wrong info and I never got the error. So it should be player.openGui(Rustic.instance, Rustic.guiIdCookStove, world, x, y, z); and that calls the FMLNetwrok handler and uses this to refer to the player. Is that correct? Sorry if I seem like an idiot, still learning the whole concept of everything that's going on.
April 1, 201411 yr Author Ok thanks. What would be the best way to register a registerItemRenderer? I was told to do it in the ClinetProxy on 1.6 but I don't know if that is a good idea or if its still done the same way.
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.