Modifier and Type | Interface and Description |
---|---|
static interface |
Item.Attribute
Attributes are used for all items which require additional information.
|
static interface |
Item.ClothingAttribute
This attribute is used for all clothing items.
|
static interface |
Item.CustomItemAttribute
This attribute is used for custom items, i.e. items which were added through the API.
|
static class |
Item.Definition
Deprecated.
Use
Definitions.ItemDefinition instead! |
static interface |
Item.ObjectAttribute
This attribute is used for all items which represent an object (e.g. furniture).
|
Modifier and Type | Method and Description |
---|---|
Item.Attribute |
getAttribute()
Gets the item attribute.
|
Definitions.ItemDefinition |
getDefinition()
Gets the item definition of this item.
|
static Item.Definition |
getItemDefinition(short typeID)
Deprecated.
Use
Definitions.getItemDefinition(short) instead! |
static Item.Definition |
getItemDefinition(java.lang.String name)
Deprecated.
Use
Definitions.getItemDefinition(String) instead! |
int |
getMaxStacksize()
Gets the max stack size of the item.
|
java.lang.String |
getName()
Gets the ingame name (not the localized name) of the item.
|
int |
getStacksize()
Gets the current stack size of the item.
|
int |
getStatus()
Gets the current status of the item.
|
short |
getTypeID()
Gets the type ID of the item.
|
float |
getValue()
Gets the current value of the item.
|
int |
getVariation()
Gets the variation, i.e. the texture of the item.
|
java.lang.String getName()
short getTypeID()
int getVariation()
int getStacksize()
int getMaxStacksize()
float getValue()
int getStatus()
Definitions.ItemDefinition getDefinition()
Item.Attribute getAttribute()
static Item.Definition getItemDefinition(short typeID)
Definitions.getItemDefinition(short)
instead!typeID
- item type id.static Item.Definition getItemDefinition(java.lang.String name)
Definitions.getItemDefinition(String)
instead!name
- item name.