Jump to content

updating from 1.6 to 1.7 Gui not displaying


bigbaddevil6

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.