UtilityAPI icon

UtilityAPI -----

Make your life easier and faster.




With the ItemBuilder class you can create and modify an ItemStack in just one line of code! The ideal solution if you just need to quickly create an item.

Code (Text):
ItemStack stack = new ItemBuilder(new ItemStack(Material.DIAMOND_SWORD)).setDisplayName(ChatColor.BLUE + "Ice Sword").addEnchant(Enchantment.KNOCKBACK, 3).addFlags(ItemFlag.HIDE_ENCHANTS).addToLore(ChatColor.WHITE + "Freezes Players").getItemStack();
----------, Feb 26, 2022

You can now create an Item in only one line. Since you only have one line the possibilities to modify it are restricted. You can however still access all of the usual Item methods to modify it.

Code (Text):
// Example on how to add an item to a player inventory with a custom name in one line

player.getInventory().addItem(new Item(Material.DIAMOND_SWORD, ChatColor.BLUE + "ice Sword").getItemStack());
----------, Feb 26, 2022

You can now use two new methods:

Code (Text):
CraftRecipe recipe = new CraftRecipe(new ItemStack(Material.DIAMOND), ingredients, "DiamondRecipe", this);
       
Material mat = recipe.getIngredient(CraftingSlot.ROW2_COLUMN2);        // Get Item you have to put into middle slot of the workbench
recipe.setIngredient(mat, CraftingSlot.ROW1_COLUMN1);     // Set item in middle slot of workbench
       
recipe.addRecipe();
----------, Feb 26, 2022

You can now create and use cooldowns!

For instructions check the main page.
----------, Feb 25, 2022

You can now use the new Item class. It works similar to ItemStacks but has the ItemMeta methods as well so you don't have to create ItemMetas for your ItemStacks anymore.

Code (Text):
Item item = new Item(Material.GOLDEN_SWORD);
item.addEnchant(Enchantment.FIRE_ASPECT, 1, true);
item.setName(ChatColor.RED + "Fire Sword");
item.addFlags(ItemFlag.HIDE_ENCHANTS);
item.setUnbreakable(true);
               
player.getInventory().addItem(item.getItemStack());
----------, Feb 25, 2022

Resource Information
Author:
----------
Total Downloads: 248
First Release: Feb 23, 2022
Last Update: Feb 26, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings