Jump to content

How do I make a GUI with widgets?


meee39

Recommended Posts

29 minutes ago, meee39 said:

Please don't just tell me to look at Vanilla classes though.

Honestly, looking at the vanilla classes is the best way. You can see there are methods for adding buttons, taking action when the buttons are clicked, and so forth.

 

Slots are a bit more complicated because they usually require a container and tile entity.

 

I have tutorials on GUIs here: http://jabelarminecraft.blogspot.com/p/minecraft-forge-1721710-gui-and-input.html

 

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

Sure, but what type of GUI are you trying to create. You can read my tutorial to get ideas on the main approaches to common GUI types, but otherwise you should look at what is closest to what you want to do. It is true that when looking through the vanilla code sometimes the naming of things isn't perfect, but still a great way to get ideas.

 

Overall a GUI can be pretty much anything. You could display animated graphics, make a mini-game, etc. But if you're doing something fairly standard, like a block that has a GUI with an inventory then there is a lot of examples out there.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.