ItemBuilder 1.8.3

Create advanced ItemStacks in one line!

  1. Kev575
    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!


    [​IMG]




    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

    1. Create an instance of the ItemBuilder
      Code (Java):
      ItemBuilder builder = new ItemBuilder(Material.GLOWSTONE)
    2. Set the metas you want, for example
      Code (Java):
      builder.setDisplayname("§6Glowy Glowstone");
    3. (Optional) Access the "Unsafe" class using
      Code (Java):
      builder.unsafe()
      and set/get NBT Tags:
      Code (Java):
      builder.unsafe().setString("key", "value");
    4. 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

    1. Click the Download Button
    2. Press CTRL + A
    3. Press CTRL + C or right click -> Copy
    4. Go into your IDE in a blank class named "ItemBuilder" and press CTRL + V or right click -> Paste
    5. 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
    Voidev, Kev575 and Aero like this.

Recent Updates

  1. Release 1.8.3
  2. 1.8.2: Download Fix
  3. ItemBuilder 1.8.1

Recent Reviews

  1. LustAdamantio
    LustAdamantio
    5/5,
    Version: 1.8.2
    It is an excellent resource, easy to understand and easy to use, allow you to make an ItemStack in one single line without waste of time. This work deserve no less than 5 stars.
    1. Kev575
      Author's Response
      Thanks for your great Review! :)
  2. Voidev
    Voidev
    5/5,
    Version: 1.7.2
    Well, it's an excellent resource. The author replies quickly and really pays attention to your suggestions. Really awesome work!
    1. Kev575
      Author's Response
      Thanks for your great re-review :)
  3. Voidev
    Voidev
    3/5,
    Version: 1.7.1
    All in all, this is really useful, but I don't like that you hide all enchantments when doing ItemBuilder#glow() because it hides ALL enchantments and it enchants the item (which may be a bow) with infinity. If you were to fix that, I would probably use this :D
    1. Kev575
      Author's Response
      I added your suggestion, also, why want you to make the Item have the glow effect if you enchant it, just asking. Please consider to re-review this Resource if i could help you.
  4. Kev575
    Kev575
    5/5,
    Version: 1.3
    Very good! I used sth. self created, but this is much better :)
    Excellent work Acquized! :D (I forked/stared it on GitHub ^^)
    1. Kev575
      Author's Response
      Thanks for your great Review and thanks for my first stared project on github! :)
  5. Shadowwolf97
    Shadowwolf97
    5/5,
    Version: 1.2
    Useful tool that definitely deserves 5 stars for its ease of use. A must for an plugin developer that hates making itemstack the long way.
    1. Kev575
      Author's Response
      Thanks for your great Review!
  6. TacticalKebab
    TacticalKebab
    4/5,
    Version: 1.1
    This makes the whole process of creating an item stack a whole lot easier. It's a great tool! Thank you.
    1. Kev575
      Author's Response
      Thanks for the great Review! What can i improve to get 5 Stars? :)