Package rs.kreme.ksbot.api.hooks
Class Tiles
- java.lang.Object
-
- rs.kreme.ksbot.api.hooks.Tiles
-
public class Tiles extends java.lang.Object
This class provides utilities for interacting with in-game tiles, including functions to retrieve tile data, find specific tiles, and perform actions on or near certain tiles.
-
-
Constructor Summary
Constructors Constructor Description Tiles()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.runelite.api.Tile
getAt(int worldX, int worldY, int plane)
Retrieves the tile at specific world coordinates (X, Y, plane).net.runelite.api.Tile
getAt(net.runelite.api.coords.LocalPoint localPoint)
Retrieves the tile at a specific local point.net.runelite.api.Tile
getAt(net.runelite.api.coords.WorldPoint worldPoint)
Retrieves the tile at a specific world point.java.util.List<net.runelite.api.Tile>
query()
Retrieves all tiles in the scene that match the provided filter.
-
-
-
Method Detail
-
query
public java.util.List<net.runelite.api.Tile> query()
Retrieves all tiles in the scene that match the provided filter.- Returns:
- a list of tiles that match the given filter.
-
getAt
public net.runelite.api.Tile getAt(net.runelite.api.coords.WorldPoint worldPoint)
Retrieves the tile at a specific world point.- Parameters:
worldPoint
- the world point to retrieve the tile from.- Returns:
- the tile at the given world point, or null if it doesn't exist.
-
getAt
public net.runelite.api.Tile getAt(net.runelite.api.coords.LocalPoint localPoint)
Retrieves the tile at a specific local point.- Parameters:
localPoint
- the local point to retrieve the tile from.- Returns:
- the tile at the given local point, or null if it doesn't exist.
-
getAt
public net.runelite.api.Tile getAt(int worldX, int worldY, int plane)
Retrieves the tile at specific world coordinates (X, Y, plane). Automatically adjusts for local scene boundaries.- Parameters:
worldX
- the world X-coordinate.worldY
- the world Y-coordinate.plane
- the plane (altitude level) of the world.- Returns:
- the tile at the given world coordinates, or null if it is out of bounds.
-
-