Package net.storm.api.domain.tiles
Interface IGameObject
- All Superinterfaces:
net.runelite.api.GameObject,Identifiable,Interactable,ITileObject,Locatable,Nameable,RuneLiteWrapper<net.runelite.api.TileObject>,SceneEntity,TileEntity,net.runelite.api.TileObject,Transformable<net.runelite.api.ObjectComposition>
Represents an interactive game object in the world.
Game objects are the most common type of tile object and include:
- Trees and rocks (skilling)
- Doors and gates
- Banks, furnaces, anvils
- NPCs that are actually objects (e.g., fishing spots)
- Most interactive scenery
Game objects can span multiple tiles. Use getWorldArea() to get
the full area occupied by the object.
Example usage:
IGameObject tree = TileObjects.getNearest("Oak");
if (tree != null && tree.hasAction("Chop down")) {
tree.interact("Chop down");
}
- See Also:
-
Field Summary
Fields inherited from interface net.runelite.api.TileObject
HASH_PLANE_SHIFT -
Method Summary
Modifier and TypeMethodDescriptionnet.runelite.api.coords.WorldAreaGets the world area occupied by this game object.Methods inherited from interface net.runelite.api.GameObject
getConfig, getConvexHull, getModelOrientation, getOrientation, getRenderable, getSceneMaxLocation, getSceneMinLocation, sizeX, sizeYMethods inherited from interface net.storm.api.domain.Identifiable
getIdMethods inherited from interface net.storm.api.domain.Interactable
generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, getActionIndex, getActions, getClickPoint, hasAction, hasAction, hasAction, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, isInteractable, isInteractable, isInteractableMethods inherited from interface net.storm.api.domain.tiles.ITileObject
menuPoint, updateCompositionMethods inherited from interface net.storm.api.domain.Locatable
distanceTo, distanceTo, distanceTo2DHypotenuse, distanceToHypotenuse, getLocalLocation, getPlane, getWorldLocation, getWorldX, getWorldYMethods inherited from interface net.storm.api.domain.RuneLiteWrapper
getWrappedMethods inherited from interface net.storm.api.domain.SceneEntity
getWorldViewMethods inherited from interface net.storm.api.domain.tiles.TileEntity
getTileMethods inherited from interface net.runelite.api.TileObject
getCanvasLocation, getCanvasLocation, getCanvasTextLocation, getCanvasTilePoly, getClickbox, getHash, getId, getLocalLocation, getMinimapLocation, getOpOverride, getPlane, getWorldLocation, getWorldView, getX, getY, getZ, isOpShownMethods inherited from interface net.storm.api.domain.Transformable
getActualId, getTransformedComposition
-
Method Details
-
getWorldArea
net.runelite.api.coords.WorldArea getWorldArea()Gets the world area occupied by this game object.Large objects like trees or buildings can span multiple tiles. This returns the full rectangular area the object occupies.
- Returns:
- the world area of this object
-