public class ItemDefinition extends java.lang.Object implements EntityDefinition
Constructor and Description |
---|
ItemDefinition(org.osbot.rs07.accessor.XItemDefinition def) |
Modifier and Type | Method and Description |
---|---|
static void |
add(org.osbot.rs07.accessor.XItemDefinition def)
Deprecated.
For internal use only!
|
static void |
clear()
Deprecated.
For internal use only!
Clears the item definition cache
|
static ItemDefinition |
forId(int id)
Gets the definition for an item based on it's id.
|
static ItemDefinition |
forName(java.lang.String name)
Attempts to get the definition for an item by its name.
|
java.lang.String[] |
getActions()
Gets the actions that this item could possibly have when in the inventory.
|
java.lang.String[] |
getGroundActions()
Gets the actions that this item could possibly have when on the ground.
|
int |
getId()
Gets the item id.
|
int |
getModelId()
Gets the model id of this item.
|
int[] |
getModelIds()
Gets the model ids for this item.
|
short[] |
getModifiedModelColors()
Gets what is called modified model colors of the object definition.
|
java.lang.String |
getName()
Gets the item name.
|
int |
getNonPlaceholderId()
Gets the non placeholder id for this item
|
int |
getNotedId()
Gets the noted id for this item.
|
short[] |
getOriginalModelColors()
Gets what is called original model colors of the object definition.
|
int |
getUnnotedId()
Gets the unnoted id for this item.
|
boolean |
isNoted() |
boolean |
isPlaceholder()
Whether this item is placeholder item.
|
public ItemDefinition(org.osbot.rs07.accessor.XItemDefinition def)
@Deprecated public static void add(org.osbot.rs07.accessor.XItemDefinition def)
def
- The item definition instance to add@Deprecated public static void clear()
public static ItemDefinition forId(int id)
id
- The item id.public static ItemDefinition forName(java.lang.String name)
name
- The item name.public int getId()
public java.lang.String getName()
public java.lang.String[] getActions()
getActions
in interface EntityDefinition
public java.lang.String[] getGroundActions()
public short[] getModifiedModelColors()
getModifiedModelColors
in interface EntityDefinition
public short[] getOriginalModelColors()
getOriginalModelColors
in interface EntityDefinition
public int getNotedId()
public int getUnnotedId()
public boolean isNoted()
public boolean isPlaceholder()
public int getNonPlaceholderId()
public int getModelId()
public int[] getModelIds()
getModelIds
in interface EntityDefinition