Package rs.kreme.ksbot.api.queries
Class ItemQuery
- java.lang.Object
-
- rs.kreme.ksbot.api.queries.Query<KSItem,ItemQuery>
-
- rs.kreme.ksbot.api.queries.ItemQuery
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemQuerydifferenceInValueLessThan(int difference)Filters items based on the absolute difference between high alch price and current price being less than the specified threshold.ItemQueryfilterContains(java.lang.String... substrings)Filters items whose names contain any of the specified substrings.ItemQuerynonPlaceHolder()Filters out placeholders by ensuring quantity > 0.ItemQueryomitContains(java.lang.String substring)Filters out items whose names contain the given substring.ItemQueryonlyNoted()Filters items that are noted.ItemQueryonlyStackable()Filters stackable items.ItemQueryonlyUnnoted()Filters items that are unnoted.ItemQuerypriceOver(int price)Filters items with high alch price >= given price.ItemQueryquantityGreaterThan(int quantity)Filters items with quantity greater than specified amount.ItemQuerytradeable()Filters the items to include only those that are tradeable.ItemQuerywithSlot(int idx)Filters items that are in the specified inventory slot.-
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
-
ItemQuery
public ItemQuery(java.util.Collection<KSItem> items)
-
-
Method Detail
-
tradeable
public ItemQuery tradeable()
Filters the items to include only those that are tradeable.
-
differenceInValueLessThan
public ItemQuery differenceInValueLessThan(int difference)
Filters items based on the absolute difference between high alch price and current price being less than the specified threshold.
-
priceOver
public ItemQuery priceOver(int price)
Filters items with high alch price >= given price.
-
withSlot
public ItemQuery withSlot(int idx)
Filters items that are in the specified inventory slot.
-
nonPlaceHolder
public ItemQuery nonPlaceHolder()
Filters out placeholders by ensuring quantity > 0.
-
quantityGreaterThan
public ItemQuery quantityGreaterThan(int quantity)
Filters items with quantity greater than specified amount.
-
onlyStackable
public ItemQuery onlyStackable()
Filters stackable items.
-
onlyNoted
public ItemQuery onlyNoted()
Filters items that are noted.
-
onlyUnnoted
public ItemQuery onlyUnnoted()
Filters items that are unnoted.
-
filterContains
public ItemQuery filterContains(java.lang.String... substrings)
Filters items whose names contain any of the specified substrings.
-
omitContains
public ItemQuery omitContains(java.lang.String substring)
Filters out items whose names contain the given substring.
-
-