StackableQuery

A query to search over Stackable entities

Parameters

<EntityType>

the entity type

<QueryType>

the query type

Inheritors

Functions

Link copied to clipboard
open fun bank(): BankQuery
Creates a new BankQuery
Link copied to clipboard
open fun count(): Int
Executes this query and gets the number of results
Link copied to clipboard
Creates a new EquipmentQuery
Link copied to clipboard
abstract fun filter(filter: Predicate<EntityType>): QueryType
Applies the specified filter to this query.
Link copied to clipboard
Executes this query, and gets the first result if it exists
Link copied to clipboard
Executes this query, and selects a random result based on a uniform distribution
Link copied to clipboard
open fun forEach(consumer: Consumer<EntityType>)
Executes this query and passes each result to the specified consumer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Creates a new InventoryQuery
Link copied to clipboard
open fun isAny(): Boolean
Executes this query and checks if any result exists
Link copied to clipboard
Link copied to clipboard
open fun maxStack(maxStack: Int): QueryType
Only match entities with at most the specified stack size
Link copied to clipboard
open fun minStack(minStack: Int): QueryType
Only match entities with at least the specified stack size
Link copied to clipboard
open fun npcs(): NpcQuery
Creates a new NpcQuery
Link copied to clipboard
open fun players(): PlayerQuery
Creates a new PlayerQuery
Link copied to clipboard
Link copied to clipboard
open fun shop(): ShopItemQuery
Creates a new ShopItemQuery
Link copied to clipboard
abstract fun sorted(comparator: Comparator<EntityType>): QueryType
Orders the query by the specified comparator.
Link copied to clipboard
open fun stackEquals(stack: Array<Int>): QueryType
Only match entities who have the specified stack
Link copied to clipboard
open fun stackNotEquals(stack: Array<Int>): QueryType
Only match entities who do not have the specified stack
Link copied to clipboard
open fun stackWithin(minStack: Int, maxStack: Int): QueryType
Only match entities whose stack size is within the specified min/max range
Link copied to clipboard
abstract fun stream(): Stream<EntityType>
Returns this query as a stream.
Link copied to clipboard
open fun sumStacks(): Int
Executes this query and sums the stack of all matching items
Link copied to clipboard
open fun tiles(): TileQuery
Creates a new TileQuery
Link copied to clipboard
open fun toList(): List<EntityType>
Executes this query, and gets the results
Link copied to clipboard
open fun trade(): TradeQuery
Creates a new TradeQuery
Link copied to clipboard
open fun widgets(): WidgetQuery
Creates a new WidgetQuery
Link copied to clipboard
open fun worlds(): WorldQuery
Creates a new WorldQuery