public class NPCDefinition extends java.lang.Object implements EntityDefinition
Constructor and Description |
---|
NPCDefinition(org.osbot.rs07.accessor.XNPCDefinition def) |
Modifier and Type | Method and Description |
---|---|
static void |
add(org.osbot.rs07.accessor.XNPCDefinition def)
Caches the item definition and wraps it.
|
static NPCDefinition |
forId(int id)
Gets the definition for an NPC based on it's id.
|
java.lang.String[] |
getActions()
Gets the actions of the NPC.
|
int |
getHeadIcon()
Deprecated.
|
int[] |
getHeadIconArchives()
Gets the head icon archive ids for this npc.
|
short[] |
getHeadIconSprites()
Gets the head icon sprites for this npc.
|
int |
getId()
Gets the NPC id.
|
int |
getLevel()
Gets the combat level of the NPC.
|
int[] |
getModelIds()
Gets the array of model ids use by this NPC.
|
short[] |
getModifiedModelColors()
Gets what is called modified model colors of the object definition.
|
java.lang.String |
getName()
Gets the name of the NPC.
|
short[] |
getOriginalModelColors()
Gets what is called original model colors of the object definition.
|
int |
getRealId()
Gets the current real id of the NPC.
|
int |
getSize()
Gets the size in tiles of the npc
|
boolean |
isVisible()
Checks if the npc should be rendered
|
boolean |
isVisibleOnMinimap()
Checks if this npc dot is visible on minimap
|
static void |
setTransformIndex(int id,
int realId)
Deprecated.
for internal use only.
|
public static void add(org.osbot.rs07.accessor.XNPCDefinition def)
def
- The definition to add@Deprecated public static void setTransformIndex(int id, int realId)
id
- The id of the definitionrealId
- The transform indexpublic static NPCDefinition forId(int id)
id
- The npc id.public int getId()
public int getRealId()
public java.lang.String getName()
public int getLevel()
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
@Deprecated public int getHeadIcon()
public int[] getHeadIconArchives()
public short[] getHeadIconSprites()
public boolean isVisible()
public boolean isVisibleOnMinimap()
public int getSize()