public class BaseItem extends Object
BaseItemStack for an instance
with stack amount information.| 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.
|
Map<Integer,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 setCopyright © 2010-2014. All Rights Reserved.