public class BaseItem
extends java.lang.Object
BaseItemStack
for an instance with stack amount information.
This class may be removed in the future.
Constructor and Description |
---|
BaseItem(int id)
Construct the object.
|
BaseItem(int id,
short data)
Construct the object.
|
Modifier and Type | Method and Description |
---|---|
short |
getDamage()
Deprecated.
|
short |
getData()
Get the data value.
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getEnchantments()
Get the map of enchantments.
|
int |
getType()
Get the type of item.
|
void |
setDamage(short data)
Deprecated.
|
void |
setData(short data)
Set the data value.
|
void |
setType(int id)
Get the type of item.
|
public BaseItem(int id)
id
- ID of the itempublic BaseItem(int id, short data)
id
- ID of the itemdata
- data value of the itempublic int getType()
public void setType(int id)
id
- the id to set@Deprecated public short getDamage()
public short getData()
@Deprecated public void setDamage(short data)
data
- the damage to setpublic void setData(short data)
data
- the damage to setpublic java.util.Map<java.lang.Integer,java.lang.Integer> getEnchantments()