Package rs.kreme.ksbot.api.queries
Class TileObjectQuery
- java.lang.Object
-
- rs.kreme.ksbot.api.queries.Query<KSObject,TileObjectQuery>
-
- rs.kreme.ksbot.api.queries.TileObjectQuery
-
public class TileObjectQuery extends Query<KSObject,TileObjectQuery>
A query class for filtering and retrieving tile objects based on various criteria.
-
-
Constructor Summary
Constructors Constructor Description TileObjectQuery(java.util.Collection<KSObject> ts)
Constructs a TileObjectQuery with the specified collection of tile objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TileObjectQuery
atLocation(net.runelite.api.coords.WorldPoint... location)
Filters tile objects at specific locations.KSObject
closest()
Retrieves the closest tile object to the player.TileObjectQuery
inArea(net.runelite.api.coords.WorldArea area)
Filters the tile objects within a specific WorldArea.KSObject
nearestToPlayer()
Retrieves the tile object nearest to the player's current location.KSObject
nearestToPoint(net.runelite.api.coords.WorldPoint point)
Retrieves the tile object nearest to a specific WorldPoint.TileObjectQuery
notAtLocations(net.runelite.api.coords.WorldPoint... location)
Filters out tile objects at specific locations.TileObjectQuery
withImposterId(int id)
Filters tile objects with a specific impostor ID.TileObjectQuery
withinDistance(int distance)
Filters the tile objects within the specified distance from the player's location.-
Methods inherited from class rs.kreme.ksbot.api.queries.Query
count, empty, exists, filter, first, first, last, list, list, max, min, omit, omit, omit, random, shuffledList, shuffledList, sorted, stream, unique, withId, withName, withNameOrId, withOption, withoutId, withoutName, withoutNameOrId, withoutOption
-
-
-
-
Constructor Detail
-
TileObjectQuery
public TileObjectQuery(java.util.Collection<KSObject> ts)
Constructs a TileObjectQuery with the specified collection of tile objects.
-
-
Method Detail
-
withinDistance
public TileObjectQuery withinDistance(int distance)
Filters the tile objects within the specified distance from the player's location.
-
withImposterId
public TileObjectQuery withImposterId(int id)
Filters tile objects with a specific impostor ID.
-
atLocation
public TileObjectQuery atLocation(net.runelite.api.coords.WorldPoint... location)
Filters tile objects at specific locations.
-
notAtLocations
public TileObjectQuery notAtLocations(net.runelite.api.coords.WorldPoint... location)
Filters out tile objects at specific locations.
-
nearestToPlayer
public KSObject nearestToPlayer()
Retrieves the tile object nearest to the player's current location.
-
closest
public KSObject closest()
Retrieves the closest tile object to the player.
-
nearestToPoint
public KSObject nearestToPoint(net.runelite.api.coords.WorldPoint point)
Retrieves the tile object nearest to a specific WorldPoint.
-
inArea
public TileObjectQuery inArea(net.runelite.api.coords.WorldArea area)
Filters the tile objects within a specific WorldArea.
-
-