BasicGUI
Option 1: Object
// Create the object with title and size
BasicGUI bg = new BasicGUI(new GUI("Fruit Fan", Rows.SIX));
// Show a cute fruit in the first slot
bg.setItem(0, new Item(Material.APPLE));
// Open the inventory for a Player
bg.openInventory(player);Option 2: Extended Class
public class MyCustomGUI extends BasicGUI {
public MyCustomGUI() {
super(new GUI("Fruit Fanatic"), Rows.SIX);
// Show a cute fruit in the first slot
setItem(0, new Item(Material.APPLE));
}
}
// Call #openInventory from another class or listenerLast updated