GuiMaker icon

GuiMaker -----

create gui quickly and easily



You can start by using the SimpleGui class with its constructor to create a gui, and then use the SimpleGui#getInventory() method to get the inventory. Here is an example:

Code (Java):
SimpleGui gui = new SimpleGui ( 27 /*<- SIZE*/, "A GUI" /*<- TITLE*/ ) ;

gui. getInventory ( ) ;
If you want to add a button you'll have to use the SimpleGui#addButton() method and the ButtonHandler constructor. To create the item we will use the ItemUtils static methods.

Code (Java):
SimpleGui gui = new SimpleGui ( 27, "A GUI" ) ;

ItemStack item = ItemUtils. createItem (Material. STONE /*MATERIAL*/, 1 /*AMOUNT*/, "A BUTTON" /*TITLE*/ ) ;

gui. addButton ( 5 /*SLOT*/, item /*ITEMSTACK*/, new ButtonHandler ( ) {
   
    @Override
    public void onClick (InventoryClickEvent e ) {
        // This method will be executed every time you click the button.
    }
} ) ;

gui. getInventory ( ) ;
If you want to ask anything else go into my discord and ask.
Resource Information
Author:
----------
Total Downloads: 138
First Release: Jan 13, 2022
Last Update: Jan 13, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings