Skip to content

ItemUtils

DarthBoomerPlay edited this page Mar 28, 2020 · 1 revision

ItemUtils

This utility helps to create items. Version Support: 1.8 - 1.15.1

public ItemStack getItemStack(Material material, byte durability, int amount, String name, String... lore) // create item using Material, Durability, Amount, Name, Lore

public ItemStack getItemStack(Material material, String name, String... lore) // create item using Material, Name, Lore

public ItemStack getItemStack(Material material, byte durability, String name, String... lore) // create item using Material, Durability, Name, Lore

public ItemStack getItemStack(Material material, byte durability) // create item using Material, Durability

public ItemStack getItemStack(Material material, int amount) // create item using Material, Amount

public ItemStack getItemStack(Material material) // create item using Material

public ItemStack getItemStack(Material material, String title) // create item using Material, Name

public ItemStack getItemStack(Material material, byte durability, String name) // create item using Material, Durability, Name

public ItemStack getItemStack(Material material, int amount, String name) // create item using Material, Amount, Name

public ItemStack getTextureSkull(String texture, int amount, String name, String... lores) // create skull using Texture, Amount, Name, Lore

public ItemStack getTextureSkull(String texture, String name, String... lores) // create skull using Texture, Name, Lore

public ItemStack getTextureSkull(String texture) // create skull using Texture

public ItemStack getPlayerSkull(String nickname, int amount, String name, String... lores) // create skull using Nickname, Amount, Name, Lore

public ItemStack getPlayerSkull(String nickname, String name, String... lores) // create skull using Nickname, Name, Lore

public ItemStack getPlayerSkull(String nickname) // create skull using Nickname

// Example to usage:
import ru.DarthBoomerPlay_.DarthCore.utils.ItemUtils;

ItemUtils.getItemStack(Material.STONE, "SuperStone", new String[] { "", "It's a SUPERSTONE", "" });
Clone this wiki locally