meee39 Posted August 29, 2017 Share Posted August 29, 2017 E.G. GuiButton, GuiSlot. Please don't just tell me to look at Vanilla classes though. Quote Link to comment Share on other sites More sharing options...
jabelar Posted August 29, 2017 Share Posted August 29, 2017 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 Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/ Link to comment Share on other sites More sharing options...
meee39 Posted August 29, 2017 Author Share Posted August 29, 2017 GuiSlot isn't an item slot. It is the scroll view for some reason. Quote Link to comment Share on other sites More sharing options...
jabelar Posted August 29, 2017 Share Posted August 29, 2017 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. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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.