Create advanced ItemStacks with just one line of code.
ItemBuilder builder = new ItemBuilder(Material.GLOWSTONE);
builder.displayname("§6ItemBuiler Glowstone");
builder.build();
to get the Bukkit ItemStack backItemStack item = new ItemBuilder(Material.GLOWSTONE).displayname("§6ItemBuilder Glowstone").build();
ItemBuilder builder = new ItemBuilder(Material.DIAMOND_SWORD);
Unsafe
Class using the builder.unsafe();
Methodbuilder.unsafe().addString("Key", "Value");
or builder.unsafe().removeString("Key", "Value");
builder();
Method in Unsafe
and build();
the ItemStack.ItemStack item = new ItemBuilder(Material.DIAMOND_SWORD).unsafe().addString("Key", "Value").builder().build();
builder.toJson()
or to a Config Path using builder.toConfig(MyPlugin.getInstance().getConfig(), "my.custom.item")
.fromJson
, toJson
, fromConfig
and toConfig
are static. You can access them all using ItemBuilder.<Method>
without creating a Instance of the ItemBuilder.Repository:
<repositories>
<repository>
<id>acquized-repo</id>
<url>http://repo.acquized.pw/maven/</url>
</repository>
</repositories>
Dependency:
<dependencies>
<dependency>
<groupId>cc.acquized</groupId>
<artifactId>ItemBuilder</artifactId>
<version>1.8</version>
</dependency>
</dependencies>