Package rsb.wrappers
Class RSModel
java.lang.Object
rsb.methods.MethodProvider
rsb.wrappers.RSModel
- Direct Known Subclasses:
RSCharacterModel
,RSGroundItemModel
,RSGroundObjectModel
,RSWallObjectModel
A screen space model.
- Author:
- GigiaJ
-
Field Summary
Fields inherited from class rsb.methods.MethodProvider
methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Clicks the RSModel and clicks the menu actionboolean
Clicks the RSModel and clicks the menu actionboolean
doClick
(boolean leftClick) Clicks the RSModel.boolean
Returns true if the provided object is an RSModel with the same x, y and z points as this model.int
net.runelite.api.Model
getModel()
int
net.runelite.api.Point
getPoint()
Returns a random screen point.net.runelite.api.Point
Gets a point on a model that is on screen.net.runelite.api.Point[]
Returns all the screen points.Polygon[]
Returns an array of triangles containing the screen points of this model.int
void
hover()
Moves the mouse onto the RSModel.newVertexFilter
(int[] vertex_a) Returns a filter that matches against the array of point indices for the A vertices of each triangle.
-
Constructor Details
-
RSModel
-
-
Method Details
-
newVertexFilter
Returns a filter that matches against the array of point indices for the A vertices of each triangle. Use in scripts is discouraged.- Parameters:
vertex_a
- The array of indices for A vertices.- Returns:
- The vertex point index based model filter.
-
doClick
public boolean doClick(boolean leftClick) Clicks the RSModel.- Parameters:
leftClick
- if true it left clicks.- Returns:
- true if clicked.
-
doAction
Clicks the RSModel and clicks the menu action- Parameters:
action
- the action to be clicked in the menutarget
- the option of the action to be clicked in the menu- Returns:
- true if clicked, false if failed.
-
doAction
Clicks the RSModel and clicks the menu action- Parameters:
action
- the action to be clicked in the menu- Returns:
- true if clicked, false if failed.
-
getPoint
public net.runelite.api.Point getPoint()Returns a random screen point.- Returns:
- A screen point, or Point(-1, -1) if the model is not on screen.
- See Also:
-
getPoints
public net.runelite.api.Point[] getPoints()Returns all the screen points.- Returns:
- All the points that are on the screen, if the model is not on the screen it will return null.
-
getPointOnScreen
public net.runelite.api.Point getPointOnScreen()Gets a point on a model that is on screen.- Returns:
- First point that it finds on screen else a random point on screen of an object.
-
getTriangles
Returns an array of triangles containing the screen points of this model.- Returns:
- The on screen triangles of this model.
-
hover
public void hover()Moves the mouse onto the RSModel. -
equals
Returns true if the provided object is an RSModel with the same x, y and z points as this model. This method compares all of the values in the three vertex arrays. -
getOrientation
public int getOrientation() -
getIndexCount
public int getIndexCount() -
getVertexCount
public int getVertexCount() -
getModel
public net.runelite.api.Model getModel() -
getConvexHull
-