Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mustafabinguldev/hanguibuilder
A simple GUI builder API for Minecraft spigot plugins
https://github.com/mustafabinguldev/hanguibuilder
gui-for-minecraft gui-for-spigot minecraft minecraft-plugin spigot spigot-api spigot-gui spigot-library spigot-plugin spigot-plugin-api
Last synced: about 2 months ago
JSON representation
A simple GUI builder API for Minecraft spigot plugins
- Host: GitHub
- URL: https://github.com/mustafabinguldev/hanguibuilder
- Owner: mustafabinguldev
- License: mit
- Created: 2023-04-18T15:48:12.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-30T16:33:17.000Z (about 1 year ago)
- Last Synced: 2024-01-24T12:08:03.378Z (12 months ago)
- Topics: gui-for-minecraft, gui-for-spigot, minecraft, minecraft-plugin, spigot, spigot-api, spigot-gui, spigot-library, spigot-plugin, spigot-plugin-api
- Language: Java
- Homepage: https://www.spigotmc.org/resources/hanguibuilder-a-simple-gui-builder-api.109346/
- Size: 28.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
What is this project?
HanGuiBuilder is a Minecraft Spigot plugin API that is designed for developers. It simplifies the process of building GUIs and assigning commands to items within them, and is compatible with all versions of Minecraft.```
jitpack.io
https://jitpack.io
com.github.BingulHan
HanGuiBuilder
1.3
```
Example:
```ItemStack information = new ItemStack(Material.PAPER);
ItemMeta meta = information.getItemMeta();
meta.setDisplayName(ChatColor.YELLOW+"Info");
information.setItemMeta(meta);HanGuiBuilder guiBuilder = new HanGuiBuilder(HanGuiBuilder.Size.THREE, this).
setAccessibleOnDragItems(false).
addPlayer(event.getPlayer()).
addItem(1, new GuiItem(new ItemStack(Material.GRASS), (p,g,slot) -> {p.sendMessage(ChatColor.GREEN+"You touched the grass!");
g.getPlugin().getServer().broadcastMessage(""+p.getName()+" touched the grass!");})).
addItem(2, new GuiItem(information, (p,g,slot) -> {if (g.getData("information").isPresent()) {
p.sendMessage(ChatColor.WHITE+g.getData("information").get().getT().toString());
}}));
guiBuilder.addData("title", "&a&lEXAMPLE GUI");
guiBuilder.addData("information", "You can add unlimited items, unlimited players to the GUI. You can also add custom data to the gui. (Any kind of data can be added.)");if (guiBuilder.getData("title").isPresent()) {
guiBuilder.setGuiTitle(String.valueOf(guiBuilder.getData("title").get().getT()));
}guiBuilder.open();
```