public class ItemUtils extends Object
Constructor and Description |
---|
ItemUtils() |
Modifier and Type | Method and Description |
---|---|
static CustomBookMeta.Generation |
getBookGeneration(org.bukkit.inventory.ItemStack itemStack) |
static Map<org.bukkit.enchantments.Enchantment,Integer> |
getEnchantments(org.bukkit.inventory.ItemStack itemStack) |
static org.bukkit.inventory.ItemStack |
getItemStack(String item)
Get the
ItemStack from a String |
static org.bukkit.potion.PotionType |
getPotionEffect(org.bukkit.inventory.ItemStack itemStack) |
static boolean |
isExtendedPotion(org.bukkit.inventory.ItemStack itemStack) |
static boolean |
isMusicDisc(org.bukkit.inventory.ItemStack itemStack) |
public static Map<org.bukkit.enchantments.Enchantment,Integer> getEnchantments(org.bukkit.inventory.ItemStack itemStack)
public static org.bukkit.potion.PotionType getPotionEffect(org.bukkit.inventory.ItemStack itemStack)
public static boolean isExtendedPotion(org.bukkit.inventory.ItemStack itemStack)
public static boolean isMusicDisc(org.bukkit.inventory.ItemStack itemStack)
public static CustomBookMeta.Generation getBookGeneration(org.bukkit.inventory.ItemStack itemStack)
public static org.bukkit.inventory.ItemStack getItemStack(String item)
ItemStack
from a Stringitem
- Serialized ItemStack e.g. "STONE"
or "STONE:1"
null
if the serialized item is invalidCopyright © 2017. All rights reserved.