Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

E.G. GuiButton, GuiSlot.

 

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

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/

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/

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.