Sueta

UtilityAPI

1.5

Make your life easier and faster.

·Plugin
  1. 1.5latestIntroducing ItemBuilderFeb 26, 2022
    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();
    2 downloads
  2. 1.4Added one line Item creationFeb 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());
    3 downloads
  3. 1.3Revised the CraftRecipe methods to get and set ingredients (formerly known as items)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();
    7 downloads
  4. 1.2Added cooldownsFeb 25, 2022
    You can now create and use cooldowns! For instructions check the main page.
    8 downloads
  5. 1.1New Item featureFeb 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. .SpoilerTarget">Spoiler: Code 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());
    6 downloads
  6. 1.0Feb 23, 2022
    8 downloads

Similar projects

Plugin →