public class SpigotItemStack extends ItemStack
Constructor and Description |
---|
SpigotItemStack(org.bukkit.inventory.ItemStack item) |
Modifier and Type | Method and Description |
---|---|
void |
addEnchant(Enchantment enchant,
int level) |
ItemStack |
clone() |
int |
getAmount() |
Object |
getDefault() |
int |
getEnchantLevel(Enchantment enchant) |
String |
getName() |
Material |
getType() |
boolean |
hasEnchant(Enchantment enchant) |
void |
removeEnchant(Enchantment enchant) |
public boolean hasEnchant(Enchantment enchant)
hasEnchant
in class ItemStack
public int getEnchantLevel(Enchantment enchant)
getEnchantLevel
in class ItemStack
public void addEnchant(Enchantment enchant, int level)
addEnchant
in class ItemStack
public void removeEnchant(Enchantment enchant)
removeEnchant
in class ItemStack
public Object getDefault()