Class TileObjectQuery


  • public class TileObjectQuery
    extends Query<KSObject,​TileObjectQuery>
    A query class for filtering and retrieving tile objects based on various criteria.
    • 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.