public class GroundItem extends Animable<org.osbot.rs07.accessor.XGroundItem> implements Entity
model, prioritized
Constructor and Description |
---|
GroundItem(org.osbot.rs07.accessor.XGroundItem instance)
Constructor
|
GroundItem(org.osbot.rs07.accessor.XGroundItem instance,
Position position)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getActions()
Gets the model actions of this identifiable.
|
int |
getAmount()
Gets the amount of this ground item object.
|
ItemDefinition |
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 |
getId()
Gets the id of this identifiable.
|
int |
getLocalX()
Gets the local x coordinate for this entity.
|
int |
getLocalY()
Gets the local y coordinate for this entity.
|
Model |
getModel()
|
int[] |
getModelIds()
Gets the model ids of this identifiable.
|
java.lang.String |
getName()
Gets the name of this identifiable.
|
java.awt.Point |
getPoint()
Gets the precise point (x,y) on the screen for this ground item
|
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.
|
boolean |
hover()
Attempts to hover the mouse over the next click needed to interact with this
Interactable . |
boolean |
isVisible()
Checks if an entity is visible on the main game screen.
|
getAnimable, getModelHeight
getHeight, isPrioritized, setPrioritized, updateModel
getClient, getMethods
equals, getBot, supplyWrappers, wrap, wrapArray
public GroundItem(org.osbot.rs07.accessor.XGroundItem instance)
instance
- The XGroundItem
instancepublic java.awt.Point getPoint()
public int getId()
getId
in interface Identifiable
public int getAmount()
public java.lang.String getName()
getName
in interface Identifiable
public int[] getModelIds()
getModelIds
in interface Identifiable
public ItemDefinition getDefinition()
getDefinition
in interface Entity
public int getX()
public int getY()
public int getZ()
public Position getPosition()
getPosition
in interface Entity
public int getLocalX()
public int getLocalY()
public int getGridX()
public int getGridY()
public int getSizeX()
public int getSizeY()
public boolean isVisible()
public boolean hover()
Interactable
.
This method will never click the mouse, so it can be used to speed up scripts while they are idling.hover
in interface Interactable
public Model getModel()
public java.lang.String[] getActions()
getActions
in interface Identifiable