Class GroundObjectQuery

    • Constructor Detail

      • GroundObjectQuery

        public GroundObjectQuery​(Context ctx)
    • Method Detail

      • within

        public GroundObjectQuery within​(net.runelite.api.coords.WorldPoint anchor,
                                        int distance)
        Filters for only objects whose location is within the specified distance from the anchor point.
        Parameters:
        anchor - The anchor local point.
        distance - The maximum distance from the anchor point (in local units).
        Returns:
        True if the object is within the specified distance from the anchor point, false otherwise.
      • valueAbove

        public GroundObjectQuery valueAbove​(int value)
        Filters for ground items where the Grand Exchange price is above a specific threshold. Stacks of items are NOT considered with this method. Use stackValueAbove() to consider stacks of items.
        Parameters:
        value - The value threshold for the items.
        Returns:
        GroundObjectQuery
      • stackValueAbove

        public GroundObjectQuery stackValueAbove​(int value)
        Filters for ground items where the Grand Exchange price is above a specific threshold. Stacks of items are taken into consideration when using this method.
        Parameters:
        value - The value threshold for the items.
        Returns:
        GroundObjectQuery
      • highAlchemyPriceAbove

        public GroundObjectQuery highAlchemyPriceAbove​(int value)
        Filters for ground items where the high alchemy price is above a specific threshold.
        Parameters:
        value - The value threshold for the ground items
        Returns:
        GroundObjectQuery
      • nearest

        public GroundObjectEntity nearest()
        Sorts the stream of ground objects to order them by manhattan distance to the local player.
        Returns:
        GroundObjectQuery
      • sortByDistance

        public GroundObjectQuery sortByDistance()
        Sorts the ground object stream by distance from the local players' current location.
        Returns:
        GroundObjectQuery
      • within

        public GroundObjectQuery within​(int distance)
        Filters for only objects whose location is within the specified distance from the players current local point.
        Parameters:
        distance - The maximum distance from the anchor point (in world units).
        Returns:
        True if the object is within the specified distance from the anchor point, false otherwise.
      • at

        public GroundObjectQuery at​(net.runelite.api.coords.WorldPoint point)
        Filters by exact WorldPoint.
        Parameters:
        point - The world point at which to find ground objects on
        Returns:
        GroundObjectQuery
      • reachable

        public GroundObjectQuery reachable()
        Filters for only ground items which are reachable from the players current tile.
        Returns:
        GroundObjectQuery