- Tested Minecraft Versions:
- 1.8
- 1.9
- 1.10
- Source Code:
- https://gitlab.com/KevSlashNull/ItemBuilder
- Contributors:
- Kev575
ItemBuilder
Create advanced ItemStacks in one line!
ItemBuilder is an API class with which you can build advanced ItemStacks in just one line. Supported features contain ItemMeta manipulation and NBT tags, even Item- & SkullMetas!
Features
- Class, not an actual jar. You can directly implement this API in your plugin's source code.
- Item- & SkullMeta supported.
- NBT Tags supported (Deprecated in v1.8.3) .
- Extra Methods like glow() implemented.
- Highly customizeable.
- JSON and config reading / writing.
Usage
- Create an instance of the ItemBuilder
Code (Java):ItemBuilder builder = new ItemBuilder(Material.GLOWSTONE)- Set the metas you want, for example
Code (Java):builder.setDisplayname("§6Glowy Glowstone");- (Optional) Access the "Unsafe" class using
and set/get NBT Tags:Code (Java):builder.unsafe()Code (Java):builder.unsafe().setString("key", "value");- Get back the Bukkit ItemStack with
Code (Java):builder.build()
You can also do all of these steps in just one line:
Code (Java):ItemStack item = new ItemBuilder(Material.GLOWSTONE).displayname("§6Glowy Glowstone").unsafe().setString("key", "value").builder().build();
How to install
- Click the Download Button
- Press CTRL + A
- Press CTRL + C or right click -> Copy
- Go into your IDE in a blank class named "ItemBuilder" and press CTRL + V or right click -> Paste
- Fix the package name and enjoy a working ItemBuilder class
License
The Project is licensed under the Apache License 2.0. You can view the complete license in the LICENSE file in the main root of the GitLab repo.
Issues
If you encounter problems or have suggestions, feel free to open an issue in GitLab or send me a PM here on Spigot.
Keep in mind that negative reviews due to unreported bugs or unexpected behaviour are unconstructive and demotivating. Please open an issue
Links
GitLab: https://gitlab.com/KevSlashNull/ItemBuilder

ItemBuilder 1.8.3
Create advanced ItemStacks in one line!
Recent Updates
- Release 1.8.3 Jan 26, 2020
- 1.8.2: Download Fix Sep 22, 2016
- ItemBuilder 1.8.1 May 28, 2016