Jump to content

Recommended Posts

Posted

Heya friends! So I will be honest, I am pretty new at modding. I have been following vswe's modding tutorials and loving it so far. But I have seemed to be caught up on something. I am trying to create a Gui handler for a block I am trying to create but at this line   

 

public GuiHandler() {

        NetworkRegistry.instance().registerGuiHandler(Spartsextras.instance, this);}

 

 

 

The "Spartsextras.instance" isn't registering as the instance. it does in the blocks main file though so it does work..... any and all help would be much appreciated! I will leave pastebins of my main mod file and the GuiHandler File. let me know if you need anything else!

 

Main mod file

http://pastebin.com/T7JZjLRs

 

 

 

GuiHandler File

 

http://pastebin.com/91jWMCgp

  • 4 months later...
Posted

Have you tried creating a SpartsextrasGuiHandler class

NetworkRegistry.instance().registerGuiHandler(this, new SpartsextrasGuiHandler());

 

Also where is your "ModInformation.ID" defined?

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.