Uses of Class
privbot.query.ItemQuery
Packages that use ItemQuery
Package
Description
ctx.* facades: inventory, bank, NPCs, widgets, and the other one-liners.Fluent queries behind
ctx.npcs.query(), objects, ground items, and widgets.-
Uses of ItemQuery in privbot.hooks
Methods in privbot.hooks that return ItemQuery -
Uses of ItemQuery in privbot.query
Methods in privbot.query that return ItemQueryModifier and TypeMethodDescriptionNarrows this query in place and returns it.ItemQuery.nonPlaceholder()Drops empty or placeholder rows (id 0 or less).ItemQuery.quantityGreaterThan(int n) Same asquantityOver(int); KSBot-style name.ItemQuery.quantityOver(int n) Keeps rows whose quantity is strictly greater thann.ItemQuery.sort(Comparator<PrivItem> comparator) Sort the working list in place (e.g.Alias offilter(Predicate).ItemQuery.withAction(String... actions) Keeps items whose definition exposes at least one of the given actions (e.g.ItemQuery.withId(int... ids) Keeps items whose id is one ofids; no ids leaves the query unchanged.Keeps items whose name contains any ofnames(case-insensitive substring), so"Shark"also matches"Raw shark".ItemQuery.withSlot(int slot) Keeps the row in container slotslot(0-based).