Package rs.kreme.ksbot.api.queries
Class TileItemQuery
- java.lang.Object
-
- rs.kreme.ksbot.api.queries.Query<KSGroundItem,TileItemQuery>
-
- rs.kreme.ksbot.api.queries.TileItemQuery
-
public class TileItemQuery extends Query<KSGroundItem,TileItemQuery>
A specialized query class for filtering and retrieving ground items in the game.
-
-
Constructor Summary
Constructors Constructor Description TileItemQuery(java.util.Collection<KSGroundItem> tileItems)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TileItemQueryabovePrice(int value)Filters ground items whose total value (price * quantity) exceeds a value.TileItemQueryabovePriceItem(int value)Filters ground items with a price greater than or equal to a specified value.KSGroundItemclosest()Finds the ground item nearest to the local player.KSGroundItemclosestToPoint(net.runelite.api.coords.WorldPoint point)Finds the ground item nearest to a specific point.TileItemQueryinLocation(WorldArea area)Filters ground items located within a specific area.KSGroundItemnearestToPlayer()Deprecated.TileItemQuerynotInLocation(WorldArea area)Filters ground items located outside a specific area.TileItemQuerynotYourLoot()Filters ground items not in the player's loot list.TileItemQueryonlyNoted()Filters only noted ground items.TileItemQueryonlyUnnoted()Filters only unnoted ground items.TileItemQuerywithinDistance(int distance)Filters ground items within a certain distance of the local player.TileItemQuerywithinDistanceToPoint(int distance, net.runelite.api.coords.WorldPoint point)Filters ground items within a certain distance of a given point.TileItemQueryyourLoot()Filters ground items belonging to the player's loot list.-
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, reverse, shuffledList, shuffledList, sorted, stream, unique, withId, withName, withNameOrId, withOption, withoutId, withoutName, withoutNameOrId, withoutOption
-
-
-
-
Constructor Detail
-
TileItemQuery
public TileItemQuery(java.util.Collection<KSGroundItem> tileItems)
-
-
Method Detail
-
inLocation
public TileItemQuery inLocation(WorldArea area)
Filters ground items located within a specific area.
-
notInLocation
public TileItemQuery notInLocation(WorldArea area)
Filters ground items located outside a specific area.
-
yourLoot
public TileItemQuery yourLoot()
Filters ground items belonging to the player's loot list.
-
notYourLoot
public TileItemQuery notYourLoot()
Filters ground items not in the player's loot list.
-
onlyNoted
public TileItemQuery onlyNoted()
Filters only noted ground items.
-
onlyUnnoted
public TileItemQuery onlyUnnoted()
Filters only unnoted ground items.
-
abovePriceItem
public TileItemQuery abovePriceItem(int value)
Filters ground items with a price greater than or equal to a specified value.
-
abovePrice
public TileItemQuery abovePrice(int value)
Filters ground items whose total value (price * quantity) exceeds a value.
-
withinDistance
public TileItemQuery withinDistance(int distance)
Filters ground items within a certain distance of the local player.
-
withinDistanceToPoint
public TileItemQuery withinDistanceToPoint(int distance, net.runelite.api.coords.WorldPoint point)
Filters ground items within a certain distance of a given point.
-
nearestToPlayer
@Deprecated public KSGroundItem nearestToPlayer()
Deprecated.
-
closest
public KSGroundItem closest()
Finds the ground item nearest to the local player.
-
closestToPoint
public KSGroundItem closestToPoint(net.runelite.api.coords.WorldPoint point)
Finds the ground item nearest to a specific point.
-
-