public abstract class ItemStack extends Object implements NegativityObject
Constructor and Description |
---|
ItemStack() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addEnchant(Enchantment enchant,
int level) |
abstract ItemStack |
clone()
Clone the current item
|
abstract int |
getAmount()
Get amount of the item
|
abstract int |
getEnchantLevel(Enchantment enchant) |
abstract String |
getName()
Get the display name of item
null if the item doesn't have any name
|
abstract Material |
getType()
Get the item material type
|
abstract boolean |
hasEnchant(Enchantment enchant) |
abstract void |
removeEnchant(Enchantment enchant) |
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefault
public abstract int getAmount()
public abstract Material getType()
public abstract String getName()
public abstract ItemStack clone()
public abstract boolean hasEnchant(Enchantment enchant)
public abstract int getEnchantLevel(Enchantment enchant)
public abstract void addEnchant(Enchantment enchant, int level)
public abstract void removeEnchant(Enchantment enchant)