Class GroundItemQueryBuilder
- java.lang.Object
-
- com.runemate.game.api.hybrid.queries.QueryBuilder<T,QB,QR>
-
- com.runemate.game.api.hybrid.queries.InteractableQueryBuilder<T,QB,LocatableEntityQueryResults<T>>
-
- com.runemate.game.api.hybrid.queries.LocatableEntityQueryBuilder<GroundItem,GroundItemQueryBuilder>
-
- com.runemate.game.api.hybrid.queries.GroundItemQueryBuilder
-
- All Implemented Interfaces:
java.lang.Cloneable
public class GroundItemQueryBuilder extends LocatableEntityQueryBuilder<GroundItem,GroundItemQueryBuilder>
-
-
Constructor Summary
Constructors Constructor Description GroundItemQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(GroundItem argument)
Checks if the current builder accepts the argumentGroundItemQueryBuilder
actions(java.lang.String... actions)
GroundItemQueryBuilder
actions(java.util.regex.Pattern... actions)
GroundItemQueryBuilder
get()
Gets a reference to this with the correct typejava.util.concurrent.Callable<java.util.List<? extends GroundItem>>
getDefaultProvider()
Gets the default provider of the unfiltered data entries.GroundItemQueryBuilder
ids(int... ids)
GroundItemQueryBuilder
inventoryActions(java.lang.String... inventoryActions)
GroundItemQueryBuilder
inventoryActions(java.util.regex.Pattern... inventoryActions)
GroundItemQueryBuilder
names(java.lang.String... names)
GroundItemQueryBuilder
names(java.util.regex.Pattern... names)
GroundItemQueryBuilder
noted()
GroundItemQueryBuilder
quantity(int minQuantity)
GroundItemQueryBuilder
quantity(int minQuantity, int maxQuantity)
GroundItemQueryBuilder
stacks(boolean yes)
java.lang.String
toString()
GroundItemQueryBuilder
unnoted()
-
Methods inherited from class com.runemate.game.api.hybrid.queries.LocatableEntityQueryBuilder
off, off, on, on, reachable, reachableFrom, reachableFrom, surroundingsReachable, surroundingsReachableFrom, surroundingsReachableFrom, surroundingsUnreachable, surroundingsUnreachableFrom, surroundingsUnreachableFrom, unreachable, unreachableFrom, unreachableFrom, visibility, visibility, within, within
-
Methods inherited from class com.runemate.game.api.hybrid.queries.InteractableQueryBuilder
invisible, visible
-
-
-
-
Method Detail
-
names
public final GroundItemQueryBuilder names(java.lang.String... names)
-
names
public final GroundItemQueryBuilder names(java.util.regex.Pattern... names)
-
noted
public final GroundItemQueryBuilder noted()
-
unnoted
public final GroundItemQueryBuilder unnoted()
-
stacks
public final GroundItemQueryBuilder stacks(boolean yes)
-
ids
public GroundItemQueryBuilder ids(int... ids)
-
actions
public final GroundItemQueryBuilder actions(java.lang.String... actions)
-
actions
public final GroundItemQueryBuilder actions(java.util.regex.Pattern... actions)
-
inventoryActions
public final GroundItemQueryBuilder inventoryActions(java.lang.String... inventoryActions)
-
inventoryActions
public final GroundItemQueryBuilder inventoryActions(java.util.regex.Pattern... inventoryActions)
-
quantity
public GroundItemQueryBuilder quantity(int minQuantity)
-
quantity
public GroundItemQueryBuilder quantity(int minQuantity, int maxQuantity)
-
get
public GroundItemQueryBuilder get()
Description copied from class:QueryBuilder
Gets a reference to this with the correct type- Specified by:
get
in classQueryBuilder<GroundItem,GroundItemQueryBuilder,LocatableEntityQueryResults<GroundItem>>
-
getDefaultProvider
public java.util.concurrent.Callable<java.util.List<? extends GroundItem>> getDefaultProvider()
Description copied from class:QueryBuilder
Gets the default provider of the unfiltered data entries. Must be thread-safe.- Specified by:
getDefaultProvider
in classQueryBuilder<GroundItem,GroundItemQueryBuilder,LocatableEntityQueryResults<GroundItem>>
- Returns:
- A non-null
Callable
provider that is used by default.
-
accepts
public boolean accepts(GroundItem argument)
Description copied from class:QueryBuilder
Checks if the current builder accepts the argument- Overrides:
accepts
in classLocatableEntityQueryBuilder<GroundItem,GroundItemQueryBuilder>
- Parameters:
argument
- The argument to be tested against the built query.- Returns:
- true if the provided argument is accepted by the built query.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-