Package privbot.query
@PublicApi
package privbot.query
Fluent queries behind
ctx.npcs.query(), objects, ground items, and widgets.
A hook builds the query from a snapshot of the scene or container; filters then narrow it in
place and return it, so a query is single-use. Name filters are case-insensitive substring matches.
closest() falls back to the first entry when the player position cannot be read. An empty
result can mean "nothing matches" or "could not read": treat it as absence only after confirming.
-
ClassDescriptionStable ordering for inventory consumables when multiple slots match (e.g.Fluent query for scene graphics objects (e.g.Fluent filter chain over ground item stacks, built by
ctx.groundItems.query().Which item container aPrivItemrow came from; picks the widget an item action is sent to.Fluent filter chain over inventory-style slot rows wrapped asPrivItem.Fluent filter chain over the NPCs in the scene, built byctx.npcs.query().Fluent filter chain over scene objects (walls, decorations, ground objects and game objects), built byctx.objects.query().Strict cardinal comparisons between the player's tile and an anchor tile.Fluent filter chain over the loaded players, returned byctx.players.query().The facade that hands out searches:ctx.players.Collects every interactable object in the loaded scene, on every plane.