Package net.storm.api.domain.tiles
Interface ITile
- All Superinterfaces:
Locatable,RuneLiteWrapper<net.runelite.api.Tile>,net.runelite.api.Tile
public interface ITile
extends net.runelite.api.Tile, Locatable, RuneLiteWrapper<net.runelite.api.Tile>
Represents a tile in the game world.
A tile is a single square in the game world that can contain:
- Game objects (trees, rocks, doors, etc.)
- Ground items (loot)
- Wall objects (walls, fences)
- Decorative objects (flowers, grass)
- Ground objects (floor decorations)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the bridge tile above this tile, if any.Gets the decorative object on this tile, if any.Gets the ground object on this tile, if any.Gets all game objects on this tile.Gets all ground items on this tile.Gets all tile objects (walls, ground objects, decorative objects) on this tile.Gets the wall object on this tile, if any.booleanhasLineOfSightTo(ITile other) Checks if this tile has line of sight to another tile.booleanisEmpty()Checks if this tile is empty (no objects or items).booleanChecks if this tile is obstructed (blocked by collision).Builds a path from this tile to another tile.Methods 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.runelite.api.Tile
getGameObjects, getGroundItems, getItemLayer, getLocalLocation, getPlane, getRenderLevel, getSceneLocation, getSceneTileModel, getSceneTilePaint, getWorldLocation, setGroundObject, setSceneTileModel, setSceneTilePaint
-
Method Details
-
getWallObject
IWallObject getWallObject()Gets the wall object on this tile, if any.- Specified by:
getWallObjectin interfacenet.runelite.api.Tile- Returns:
- the wall object, or null if none exists
-
getGroundObject
IGroundObject getGroundObject()Gets the ground object on this tile, if any.- Specified by:
getGroundObjectin interfacenet.runelite.api.Tile- Returns:
- the ground object, or null if none exists
-
getDecorativeObject
IDecorativeObject getDecorativeObject()Gets the decorative object on this tile, if any.- Specified by:
getDecorativeObjectin interfacenet.runelite.api.Tile- Returns:
- the decorative object, or null if none exists
-
getIGameObjects
List<IGameObject> getIGameObjects()Gets all game objects on this tile.Multiple game objects can exist on a single tile.
- Returns:
- list of game objects (may be empty)
-
getIGroundItems
Gets all ground items on this tile.- Returns:
- list of ground items (may be empty)
-
isObstructed
boolean isObstructed()Checks if this tile is obstructed (blocked by collision).- Returns:
- true if obstructed, false otherwise
-
isEmpty
boolean isEmpty()Checks if this tile is empty (no objects or items).- Returns:
- true if empty, false otherwise
-
hasLineOfSightTo
Checks if this tile has line of sight to another tile.Line of sight considers walls, objects, and other blocking entities.
- Parameters:
other- the target tile- Returns:
- true if line of sight exists, false otherwise
-
pathTo
Builds a path from this tile to another tile.This uses local pathfinding within the loaded scene. For long-distance pathfinding, use
IWalker.- Parameters:
other- the destination tile- Returns:
- list of tiles forming the path, or empty if no path exists
-
getTileObjects
List<ITileObject> getTileObjects()Gets all tile objects (walls, ground objects, decorative objects) on this tile.- Returns:
- list of tile objects (may be empty)
-
getBridge
ITile getBridge()Gets the bridge tile above this tile, if any.Used for multi-level areas where bridges exist above tiles.
- Specified by:
getBridgein interfacenet.runelite.api.Tile- Returns:
- the bridge tile, or null if none exists
-