Sprache

ItemBuilder

ItemBuilder

SpigotMC

Create advanced ItemStacks in one line!

2.9k Downloads 4.8 Bewertung
neueste v1.8.3 SpigotMC
1.8 – 1.10
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

Versionen

Release
1.8.3
·
2
Release
1.8.2
·
392
Release
1.8.1
·
193
Release
1.8
·
83
Release
1.7.3
·
39
Release
1.7.2
·
41
Release
1.7.1
·
20
Release
1.7
·
43
Release
1.6
·
47
Release
1.5
·
16
Release
1.4
·
19
Release
1.3
·
49

Kommentare 0

Noch keine Kommentare. Sei der Erste, der seine Meinung teilt.

Herunterladen ItemBuilder

Dateien werden direkt von der Originalquelle bereitgestellt. Modgrid hostet oder verändert sie nicht.