With this API you can easily create GUIS.
Added:
- [+] added inv#animate(Long) Method
- [+] added inv#setRand() and inv#setRand(ItemStack) Method
- [+] added inv#rainBow(Long) Method
- [+] added inv#stopAnimate() Method
- [+] added inv#stopRainbow() Method
- [+] added inv#setClosable(Boolean) Method
- [+] added inv#changeName(String) Method
- [+] added inv#removeItem(Integer) Method
- [+] added inv#removeItem(ItemStack) Method
- [+] added new InventoryTypes ->
Existing Bugs (X = Not fixed, A = fixed):
- [X] Not every Inventory title can be changed (for example Anvil)
-> It changes to a chest
Dependencies:
- Only the spigot.jar
Features:
- No need to register InventoryClickEvent listeners
- Simplier managing Inventorys
- Animated Inventory-Titles and color changing glass panes
Code example:
Inventory inv = new Inventory(player, "§6Test", 3);
inv.setRand();
inv.set(13, new ItemStack(Material.DIAMOND_SWORD));
inv.addRunnable(13, () -> player.sendMessage("§6This is a short runnable"));
inv.addRunnable(13, new Runnable() {
@Override
public void run() {
player.sendMessage("§This is a normal runnable! Multiple lines can be executed");
}
});
inv.setDelayed(15, new ItemStack(Material.DIAMOND), 2L); //Adds an item delayed (2 Ticks)
inv.setClickable(false); // Denies to click the gui (Cancels the event)
inv.playSound(Sound.LEVEL_UP);
Added:
- [+] added inv#animate(Long) Method
- [+] added inv#setRand() and inv#setRand(ItemStack) Method
- [+] added inv#rainBow(Long) Method
- [+] added inv#stopAnimate() Method
- [+] added inv#stopRainbow() Method
- [+] added inv#setClosable(Boolean) Method
- [+] added inv#changeName(String) Method
- [+] added inv#removeItem(Integer) Method
- [+] added inv#removeItem(ItemStack) Method
- [+] added new InventoryTypes ->
Code (Text):
Inventory inv = new Inventory(player, "Title", InventoryType.FURNACE);
- [X] Not every Inventory title can be changed (for example Anvil)
-> It changes to a chest
Dependencies:
- Only the spigot.jar
Features:
- No need to register InventoryClickEvent listeners
- Simplier managing Inventorys
- Animated Inventory-Titles and color changing glass panes
Code example:
Code (Text):
Inventory inv = new Inventory(player, "§6Test", 3);
inv.setRand();
inv.set(13, new ItemStack(Material.DIAMOND_SWORD));
inv.addRunnable(13, () -> player.sendMessage("§6This is a short runnable"));
inv.addRunnable(13, new Runnable() {
@Override
public void run() {
player.sendMessage("§This is a normal runnable! Multiple lines can be executed");
}
});
inv.setDelayed(15, new ItemStack(Material.DIAMOND), 2L); //Adds an item delayed (2 Ticks)
inv.setClickable(false); // Denies to click the gui (Cancels the event)
inv.playSound(Sound.LEVEL_UP);
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.8
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
BetterGUI | Jar and Sourcecode is a free Minecraft Java mod. Compatible with Minecraft 1.8. Downloaded 968 times (via Spigot). Download it and open it directly in the game.