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 Modifier and Type Method Description TileItemQuery
abovePrice(int value)
Filters ground items whose total value (price * quantity) exceeds a value.TileItemQuery
abovePriceItem(int value)
Filters ground items with a price greater than or equal to a specified value.TileItemQuery
inLocation(WorldArea area)
Filters ground items located within a specific area.KSGroundItem
nearestToPlayer()
Finds the ground item nearest to the local player.KSGroundItem
nearestToPoint(net.runelite.api.coords.WorldPoint point)
Finds the ground item nearest to a specific point.TileItemQuery
notInLocation(WorldArea area)
Filters ground items located outside a specific area.TileItemQuery
notYourLoot()
Filters ground items not in the player's loot list.TileItemQuery
onlyNoted()
Filters only noted ground items.TileItemQuery
onlyUnnoted()
Filters only unnoted ground items.TileItemQuery
withinDistance(int distance)
Filters ground items within a certain distance of the local player.TileItemQuery
withinDistanceToPoint(int distance, net.runelite.api.coords.WorldPoint point)
Filters ground items within a certain distance of a given point.TileItemQuery
yourLoot()
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, 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
public KSGroundItem nearestToPlayer()
Finds the ground item nearest to the local player.
-
nearestToPoint
public KSGroundItem nearestToPoint(net.runelite.api.coords.WorldPoint point)
Finds the ground item nearest to a specific point.
-
-