public class ObjectDefinition extends java.lang.Object implements EntityDefinition
Constructor and Description |
---|
ObjectDefinition(org.osbot.rs07.accessor.XObjectDefinition def) |
Modifier and Type | Method and Description |
---|---|
static void |
add(org.osbot.rs07.accessor.XObjectDefinition def)
Caches the item definition and wraps it.
|
static ObjectDefinition |
forId(int id)
Gets the definition for an object based on it's id.
|
java.lang.String[] |
getActions()
Gets the menu actions of this object.
|
int |
getClipping2()
Deprecated.
|
int |
getId()
Gets the id of this object.
|
int[] |
getModelIds()
Gets the model ids of this object.
|
short[] |
getModifiedModelColors()
Gets what is called modified model colors of the object definition.
|
java.lang.String |
getName()
Gets the name of this object.
|
short[] |
getOriginalModelColors()
Gets what is called original model colors of the object definition.
|
int |
getRealId()
Gets the real id of this object if it's transformed.
|
int |
getSizeX()
Gets the size in the x dimension.
|
int |
getSizeY()
Gets the size in the y dimension.
|
int |
getWalkToData()
Deprecated.
|
boolean |
isClipping1()
Deprecated.
|
boolean |
isClipping3()
Deprecated.
|
static void |
setTransformIndex(int id,
int realId)
Deprecated.
|
public ObjectDefinition(org.osbot.rs07.accessor.XObjectDefinition def)
public static void add(org.osbot.rs07.accessor.XObjectDefinition def)
@Deprecated public static void setTransformIndex(int id, int realId)
id
- The base id of the definitionrealId
- The real id of the definitionpublic static ObjectDefinition forId(int id)
Note: This method might return null because the object hasn't been loaded by the client yet!
id
- The object id.public int getId()
public int getRealId()
public java.lang.String getName()
public int getSizeX()
public int getSizeY()
@Deprecated public int getWalkToData()
@Deprecated public boolean isClipping3()
@Deprecated public boolean isClipping1()
@Deprecated public int getClipping2()
public int[] getModelIds()
getModelIds
in interface EntityDefinition
public java.lang.String[] getActions()
getActions
in interface EntityDefinition
public short[] getModifiedModelColors()
getModifiedModelColors
in interface EntityDefinition
public short[] getOriginalModelColors()
getOriginalModelColors
in interface EntityDefinition