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)
Tiles also have collision and line-of-sight information.

See Also:
  • Method Details

    • getWallObject

      IWallObject getWallObject()
      Gets the wall object on this tile, if any.
      Specified by:
      getWallObject in interface net.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:
      getGroundObject in interface net.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:
      getDecorativeObject in interface net.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

      List<ITileItem> 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

      boolean hasLineOfSightTo(ITile other)
      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

      List<ITile> pathTo(ITile other)
      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:
      getBridge in interface net.runelite.api.Tile
      Returns:
      the bridge tile, or null if none exists