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 ItemQuery
differenceInValueLessThan(int difference)
Filters items based on the absolute difference between high alch price and current price being less than the specified threshold.ItemQuery
filterContains(java.lang.String... substrings)
Filters items whose names contain any of the specified substrings.ItemQuery
nonPlaceHolder()
Filters out placeholders by ensuring quantity > 0.ItemQuery
omitContains(java.lang.String substring)
Filters out items whose names contain the given substring.ItemQuery
onlyNoted()
Filters items that are noted.ItemQuery
onlyStackable()
Filters stackable items.ItemQuery
onlyUnnoted()
Filters items that are unnoted.ItemQuery
priceOver(int price)
Filters items with high alch price >= given price.ItemQuery
quantityGreaterThan(int quantity)
Filters items with quantity greater than specified amount.ItemQuery
tradeable()
Filters the items to include only those that are tradeable.ItemQuery
withSlot(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, 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.
-
-