Package net.storm.sdk.entities
Class Tiles
java.lang.Object
net.storm.sdk.entities.Tiles
Utility class for accessing and querying game tiles.
Tiles represent individual squares in the game world that can contain objects, items, and decorations. This class provides methods for:
- Getting tiles at specific locations
- Filtering tiles by custom predicates
- Accessing raw tile data arrays
- Getting surrounding tiles within a radius
- Getting the currently hovered tile
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAll()Gets all tiles in the loaded scene.Gets all tiles in the loaded scene that match the given predicate.static ITilegetAt(int plane, net.runelite.api.Point sceneLocation) Gets the tile at a specific scene location on a given plane.static ITilegetAt(net.runelite.api.coords.WorldPoint worldPoint) Gets the tile at a specific world point.static ITileGets the tile currently under the mouse cursor.static ITile[][]getRaw()Gets the raw 2D array of tiles for the current plane.static ITile[][][]Gets the raw 3D array of tiles for all planes.getSurrounding(net.runelite.api.coords.WorldPoint worldPoint, int radius) Gets all tiles within a specified radius of a world point.
-
Constructor Details
-
Tiles
public Tiles()
-
-
Method Details
-
getAt
Gets the tile at a specific scene location on a given plane.- Parameters:
plane- the plane (height level, 0-3)sceneLocation- the scene coordinates as a Point- Returns:
- the tile at the specified location, or
nullif not found
-
getAt
Gets the tile at a specific world point.- Parameters:
worldPoint- the world coordinates- Returns:
- the tile at the specified location, or
nullif not in the loaded scene
-
getAll
Gets all tiles in the loaded scene that match the given predicate.- Parameters:
filter- the predicate to filter tiles- Returns:
- a list of matching tiles
-
getAll
Gets all tiles in the loaded scene.- Returns:
- a list of all tiles
-
getRaw
Gets the raw 2D array of tiles for the current plane.The array is indexed by [sceneX][sceneY].
- Returns:
- the raw tile array for the current plane
-
getRawFloors
Gets the raw 3D array of tiles for all planes.The array is indexed by [sceneX][sceneY][plane].
- Returns:
- the raw tile array for all planes
-
getHoveredTile
Gets the tile currently under the mouse cursor.- Returns:
- the hovered tile, or
nullif no tile is being hovered
-
getSurrounding
Gets all tiles within a specified radius of a world point.Returns a square area of tiles centered on the given point.
- Parameters:
worldPoint- the center pointradius- the radius in tiles (creates a (2*radius+1) x (2*radius+1) area)- Returns:
- a list of tiles within the radius
-