Package net.runelite.api
Interface GameObject
-
- All Superinterfaces:
TileObject
public interface GameObject extends TileObject
Represents a game object.Most object in the RuneScape world are considered as game objects. Things such as trees, anvils, boxes, etc are all game objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Shape
getConvexHull()
Gets the convex hull of the object's model.Angle
getOrientation()
Gets the orientation of the object.Renderable
getRenderable()
Point
getSceneMaxLocation()
Gets the maximum x and y scene coordinate pair for this game object.Point
getSceneMinLocation()
Gets the minimum x and y scene coordinate pair for this game object.int
sizeX()
Get the size of this object, in tiles, on the x axisint
sizeY()
Get the size of this object, in tiles, on the y axis-
Methods inherited from interface net.runelite.api.TileObject
getCanvasLocation, getCanvasLocation, getCanvasTextLocation, getCanvasTilePoly, getClickbox, getHash, getId, getLocalLocation, getMinimapLocation, getPlane, getWorldLocation, getX, getY
-
-
-
-
Method Detail
-
sizeX
int sizeX()
Get the size of this object, in tiles, on the x axis- Returns:
-
sizeY
int sizeY()
Get the size of this object, in tiles, on the y axis- Returns:
-
getSceneMinLocation
Point getSceneMinLocation()
Gets the minimum x and y scene coordinate pair for this game object.- Returns:
- the minimum scene coordinate
-
getSceneMaxLocation
Point getSceneMaxLocation()
Gets the maximum x and y scene coordinate pair for this game object.This value differs from
getSceneMinLocation()
when the size of the object is more than 1 tile.- Returns:
- the maximum scene coordinate
-
getConvexHull
Shape getConvexHull()
Gets the convex hull of the object's model.- Returns:
- the convex hull
- See Also:
Jarvis
-
getOrientation
Angle getOrientation()
Gets the orientation of the object.- Returns:
- the orientation
-
getRenderable
Renderable getRenderable()
-
-