public interface Entity extends Identifiable, Interactable, Vector3D
Modifier and Type | Method and Description |
---|---|
default boolean |
exists()
Checks whether this Entity still exists or not.
|
default Area |
getArea(int radius)
Generates a new area based around an entity.
|
Bot |
getBot()
Gets the bot instance for this entity.
|
Client |
getClient()
Gets the client instance for this entity.
|
EntityDefinition |
getDefinition()
Gets the definition object for this entity.
|
int |
getGridX()
Gets the grid x coordinate for this entity.
|
int |
getGridY()
Gets the grid y coordinate for this entity.
|
int |
getHeight()
Gets the height of this entity's model.
|
int |
getLocalX()
Gets the local x coordinate for this entity.
|
int |
getLocalY()
Gets the local y coordinate for this entity.
|
Model |
getModel()
Gets the model for this entity.
|
default Position |
getPosition()
Gets the position for this entity.
|
int |
getSizeX()
Gets the size of this entity in the x dimension.
|
int |
getSizeY()
Gets the size of this entity in the y dimension.
|
int |
getX()
Gets the x coordinate for this entity.
|
int |
getY()
Gets the y coordinate for this entity.
|
int |
getZ()
Gets the z coordinate for this entity.
|
default boolean |
hasAction(java.lang.String... actions)
Check if identifiable contains one or more of specified actions.
|
default boolean |
interact(java.lang.String... actions)
Executes an @link org.osbot.rs07.event.InteractionEvent which attempts to interact with
this
Interactable with the specified actions (if any). |
default boolean |
isVisible()
Checks if an entity is visible on the main game screen.
|
getActions, getId, getModelIds, getName
hover
Bot getBot()
Client getClient()
int getX()
int getY()
int getZ()
default Position getPosition()
default Area getArea(int radius)
radius
- The distance from the entity you are creating an area from.int getLocalX()
int getLocalY()
int getGridX()
int getGridY()
int getSizeX()
int getSizeY()
default boolean exists()
default boolean isVisible()
Model getModel()
int getHeight()
EntityDefinition getDefinition()
default boolean interact(java.lang.String... actions)
Interactable
with the specified actions (if any).interact
in interface Interactable
actions
- The actions to chose from the menu while hovering over this Interactable
.default boolean hasAction(java.lang.String... actions)
hasAction
in interface Identifiable
actions
- The actions you wish to check.