Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
library:inventorygui [2020/09/14 19:51] – created phoenix616 | library:inventorygui [2020/09/21 17:16] – [Adding to the GUI] Remove unnecessary parenthesis phoenix616 | ||
---|---|---|---|
Line 2: | Line 2: | ||
A library that simplifies the creation of chest GUIs for Bukkit/ | A library that simplifies the creation of chest GUIs for Bukkit/ | ||
allows assigning of the GUI to a specific InventoryHolder. If you are in need of a GUI for text inputs then take a look at [WesJD](https:// | allows assigning of the GUI to a specific InventoryHolder. If you are in need of a GUI for text inputs then take a look at [WesJD](https:// | ||
- | |||
- | Please note that this is **not a plugin!** | ||
Requires Java 8. | Requires Java 8. | ||
+ | |||
+ | [GitHub repository](https:// | ||
## Using InventoryGui | ## Using InventoryGui | ||
Line 83: | Line 83: | ||
saveInv(inv); | saveInv(inv); | ||
return false; // Don't go back to the previous GUI (true would automatically go back to the previously opened one) | return false; // Don't go back to the previous GUI (true would automatically go back to the previously opened one) | ||
- | }) | + | }); |
``` | ``` | ||
#### State Element | #### State Element | ||
Line 95: | Line 95: | ||
change.getEvent().getWhoClicked().sendMessage(" | change.getEvent().getWhoClicked().sendMessage(" | ||
}, | }, | ||
- | new ItemStack(Material.WOOL, | + | new ItemStack(Material.WOOL, |
" | " | ||
ChatColor.GREEN + " | ChatColor.GREEN + " | ||
Line 105: | Line 105: | ||
change.getEvent().getWhoClicked().sendMessage(" | change.getEvent().getWhoClicked().sendMessage(" | ||
}, | }, | ||
- | new ItemStack(Material.WOOL, | + | new ItemStack(Material.WOOL, |
" | " | ||
ChatColor.RED + " | ChatColor.RED + " |