public class ItemUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.bukkit.inventory.ItemStack |
EMPTY |
| Constructor and Description |
|---|
ItemUtils() |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull org.bukkit.inventory.ItemStack |
applyEnchantments(@NotNull org.bukkit.inventory.ItemStack item,
org.bukkit.configuration.ConfigurationSection enchantments)
Apply enchantments to item
|
static org.bukkit.inventory.ItemStack |
applyEnchantments(@NotNull org.bukkit.inventory.ItemStack item,
@NotNull Map<String,Integer> enchantments)
Apply enchantments to item
|
static @NotNull org.bukkit.inventory.ItemStack |
createByMaterial(@NotNull String material) |
static @NotNull org.bukkit.inventory.ItemStack |
createHead(org.bukkit.OfflinePlayer player) |
static @Nullable org.bukkit.inventory.ItemStack |
createHead(String textureId) |
static @NotNull org.bukkit.inventory.ItemStack |
createItem(@NotNull org.bukkit.Material material,
int id,
@Nullable String name,
@Nullable List<String> lore)
Create
ItemStack with given info |
static @NotNull org.bukkit.inventory.ItemStack |
createItem(@NotNull org.bukkit.Material material,
@Nullable String name,
@Nullable List<String> lore)
Create
ItemStack with given info |
static @NotNull org.bukkit.inventory.ItemStack |
createItem(@NotNull String material,
int id,
@Nullable String name,
@Nullable List<String> lore)
Create
ItemStack with given info |
static @NotNull org.bukkit.inventory.ItemStack |
createItem(@NotNull String material,
@Nullable String name,
@Nullable List<String> lore)
Create
ItemStack with given info |
@Contract(value="_ -> new")
@NotNull
public static @NotNull org.bukkit.inventory.ItemStack createByMaterial(@NotNull
@NotNull String material)
@Nullable public static @Nullable org.bukkit.inventory.ItemStack createHead(String textureId)
@NotNull public static @NotNull org.bukkit.inventory.ItemStack createHead(org.bukkit.OfflinePlayer player)
@NotNull
public static @NotNull org.bukkit.inventory.ItemStack createItem(@NotNull
@NotNull String material,
@Nullable
@Nullable String name,
@Nullable
@Nullable List<String> lore)
ItemStack with given infomaterial - - MaterialName of the itemname - - Custom name of the itemlore - - Custom lore of the itemItemStack with given info;@NotNull
public static @NotNull org.bukkit.inventory.ItemStack createItem(@NotNull
@NotNull org.bukkit.Material material,
@Nullable
@Nullable String name,
@Nullable
@Nullable List<String> lore)
ItemStack with given infomaterial - - Material of the itemname - - Custom name of the itemlore - - Custom lore of the itemItemStack with given info;@NotNull
public static @NotNull org.bukkit.inventory.ItemStack createItem(@NotNull
@NotNull String material,
int id,
@Nullable
@Nullable String name,
@Nullable
@Nullable List<String> lore)
ItemStack with given infomaterial - - MaterialName of the itemname - - Custom name of the itemlore - - Custom lore of the itemItemStack with given info;@NotNull
public static @NotNull org.bukkit.inventory.ItemStack createItem(@NotNull
@NotNull org.bukkit.Material material,
int id,
@Nullable
@Nullable String name,
@Nullable
@Nullable List<String> lore)
ItemStack with given infomaterial - - Material of the itemname - - Custom name of the itemlore - - Custom lore of the itemItemStack with given info;@NotNull
public static @NotNull org.bukkit.inventory.ItemStack applyEnchantments(@NotNull
@NotNull org.bukkit.inventory.ItemStack item,
org.bukkit.configuration.ConfigurationSection enchantments)
item - - item to applyenchantments - Section or map of enchantments and it's levelspublic static org.bukkit.inventory.ItemStack applyEnchantments(@NotNull
@NotNull org.bukkit.inventory.ItemStack item,
@NotNull
@NotNull Map<String,Integer> enchantments)
item - - item to applyenchantments - Section or map of enchantments and it's levelsCopyright © 2023. All rights reserved.