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.
-
-
Field Summary
-
Fields inherited from interface net.runelite.api.TileObject
HASH_PLANE_SHIFT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetConfig()A bitfield containing various flags:ShapegetConvexHull()Gets the convex hull of the object's model.intgetModelOrientation()Gets the orientation of the model in JAU.intgetOrientation()Get the orientation of the objectRenderablegetRenderable()PointgetSceneMaxLocation()Gets the maximum x and y scene coordinate pair for this game object.PointgetSceneMinLocation()Gets the minimum x and y scene coordinate pair for this game object.intsizeX()Get the size of this object, in tiles, on the x axisintsizeY()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, getWorldView, getX, getY, getZ
-
-
-
-
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
int getOrientation()
Get the orientation of the object- Returns:
- See Also:
Angle
-
getRenderable
Renderable getRenderable()
-
getModelOrientation
int getModelOrientation()
Gets the orientation of the model in JAU. This is typically 0 for non-actors, since most object's models are oriented prior to lighting during scene loading. SeegetOrientation()instead for object orientation.- See Also:
Angle
-
getConfig
int getConfig()
A bitfield containing various flags:object type = bits & 31 orientation = bits >>> 6 & 3 supports items = bits >>> 8 & 1
-
-