Class ItemQuery


  • public class ItemQuery
    extends Query<KSItem,​ItemQuery>
    A query class for filtering and retrieving KSItem objects based on various criteria. This class provides methods to filter items by properties like tradeability, price, quantity, slot, etc.
    • 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.