Class InterfaceComponentQueryBuilder
- java.lang.Object
-
- com.runemate.game.api.hybrid.queries.QueryBuilder<T,QB,QR>
-
- com.runemate.game.api.hybrid.queries.InteractableQueryBuilder<InterfaceComponent,InterfaceComponentQueryBuilder,InterfaceComponentQueryResults>
-
- com.runemate.game.api.hybrid.queries.InterfaceComponentQueryBuilder
-
- All Implemented Interfaces:
java.lang.Cloneable
public class InterfaceComponentQueryBuilder extends InteractableQueryBuilder<InterfaceComponent,InterfaceComponentQueryBuilder,InterfaceComponentQueryResults>
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Collection<java.lang.Integer>
containers
boolean
scanGrandchildren
java.util.Collection<InterfaceComponent.Type>
types
-
Constructor Summary
Constructors Constructor Description InterfaceComponentQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
accepts(InterfaceComponent argument)
Checks if the current builder accepts the argumentInterfaceComponentQueryBuilder
actions(java.lang.String... actions)
InterfaceComponentQueryBuilder
actions(java.util.Collection<java.util.regex.Pattern> actions)
InterfaceComponentQueryBuilder
actions(java.util.regex.Pattern... actions)
InterfaceComponentQueryBuilder
containedItem(java.util.function.Predicate<ItemDefinition> filter)
InterfaceComponentQueryBuilder
containers(int... indices)
InterfaceComponentQueryBuilder
containers(java.util.Collection<java.lang.Integer> indices)
InterfaceComponentQueryBuilder
fonts(int... fonts)
InterfaceComponentQueryBuilder
fonts(java.util.Collection<java.lang.Integer> fonts)
InterfaceComponentQueryBuilder
get()
Gets a reference to this with the correct typejava.util.concurrent.Callable<java.util.List<? extends InterfaceComponent>>
getDefaultProvider()
Gets the default provider of the unfiltered data entries.boolean
grandchildren()
InterfaceComponentQueryBuilder
grandchildren(boolean search)
InterfaceComponentQueryBuilder
grandchildren(int quantity)
InterfaceComponentQueryBuilder
grandchildren(int... quantities)
InterfaceComponentQueryBuilder
grandchildren(java.util.Collection<java.lang.Integer> quantities)
InterfaceComponentQueryBuilder
heights(int... heights)
InterfaceComponentQueryBuilder
heights(java.util.Collection<java.lang.Integer> heights)
InterfaceComponentQueryBuilder
ids(int... ids)
InterfaceComponentQueryBuilder
layerDepths(int... layerDepths)
InterfaceComponentQueryBuilder
layerDepths(java.util.Collection<java.lang.Integer> layerDepths)
InterfaceComponentQueryBuilder
names(java.lang.String... names)
InterfaceComponentQueryBuilder
names(java.util.Collection<java.util.regex.Pattern> names)
InterfaceComponentQueryBuilder
names(java.util.regex.Pattern... names)
InterfaceComponentQueryBuilder
projectedBufferId(int... ids)
InterfaceComponentQueryBuilder
projectedBufferId(java.util.function.Predicate<java.lang.Integer> filter)
InterfaceComponentQueryBuilder
projectedNpc(java.util.function.Predicate<NpcDefinition> filter)
InterfaceComponentQueryBuilder
projectedPlayer(java.util.function.Predicate<Player> filter)
InterfaceComponentQueryResults
results()
Gets a QueryResults object from the available provider and lazily evaluates all prior chained statements.InterfaceComponentQueryBuilder
scrolls(boolean scrolls)
InterfaceComponentQueryBuilder
specializationIndicators(int... values)
InterfaceComponentQueryBuilder
specializationIndicators(java.util.Collection<java.lang.Integer> values)
InterfaceComponentQueryBuilder
spriteRotations(int... spriteRotations)
InterfaceComponentQueryBuilder
spriteRotations(java.util.Collection<java.lang.Integer> spriteRotations)
InterfaceComponentQueryBuilder
sprites(int... sprites)
InterfaceComponentQueryBuilder
sprites(java.util.Collection<java.lang.Integer> sprites)
InterfaceComponentQueryBuilder
textColors(java.awt.Color... textColors)
InterfaceComponentQueryBuilder
textColors(java.util.Collection<java.awt.Color> textColors)
InterfaceComponentQueryBuilder
textContains(java.lang.String... textContains)
InterfaceComponentQueryBuilder
texts(java.lang.String... texts)
InterfaceComponentQueryBuilder
texts(java.util.Collection<java.util.regex.Pattern> texts)
InterfaceComponentQueryBuilder
texts(java.util.regex.Pattern... texts)
InterfaceComponentQueryBuilder
textures(int... textures)
Deprecated.InterfaceComponentQueryBuilder
textures(java.util.Collection<java.lang.Integer> textures)
Deprecated.InterfaceComponentQueryBuilder
tooltips(java.lang.String... tooltips)
InterfaceComponentQueryBuilder
tooltips(java.util.Collection<java.util.regex.Pattern> tooltips)
InterfaceComponentQueryBuilder
tooltips(java.util.regex.Pattern... tooltips)
InterfaceComponentQueryBuilder
types(InterfaceComponent.Type... types)
InterfaceComponentQueryBuilder
types(java.util.Collection<InterfaceComponent.Type> types)
InterfaceComponentQueryBuilder
widths(int... widths)
InterfaceComponentQueryBuilder
widths(java.util.Collection<java.lang.Integer> widths)
-
Methods inherited from class com.runemate.game.api.hybrid.queries.InteractableQueryBuilder
invisible, visible
-
-
-
-
Field Detail
-
scanGrandchildren
public boolean scanGrandchildren
-
containers
public java.util.Collection<java.lang.Integer> containers
-
types
public java.util.Collection<InterfaceComponent.Type> types
-
-
Method Detail
-
accepts
public boolean accepts(InterfaceComponent argument)
Description copied from class:QueryBuilder
Checks if the current builder accepts the argument- Overrides:
accepts
in classInteractableQueryBuilder<InterfaceComponent,InterfaceComponentQueryBuilder,InterfaceComponentQueryResults>
- Parameters:
argument
- The argument to be tested against the built query.- Returns:
- true if the provided argument is accepted by the built query.
-
ids
public InterfaceComponentQueryBuilder ids(int... ids)
-
actions
public InterfaceComponentQueryBuilder actions(java.lang.String... actions)
-
actions
public InterfaceComponentQueryBuilder actions(java.util.regex.Pattern... actions)
-
actions
public InterfaceComponentQueryBuilder actions(java.util.Collection<java.util.regex.Pattern> actions)
-
containedItem
public InterfaceComponentQueryBuilder containedItem(java.util.function.Predicate<ItemDefinition> filter)
-
containers
public InterfaceComponentQueryBuilder containers(int... indices)
-
containers
public InterfaceComponentQueryBuilder containers(java.util.Collection<java.lang.Integer> indices)
-
scrolls
public InterfaceComponentQueryBuilder scrolls(boolean scrolls)
-
grandchildren
public InterfaceComponentQueryBuilder grandchildren(boolean search)
-
grandchildren
public InterfaceComponentQueryBuilder grandchildren(int quantity)
-
grandchildren
public InterfaceComponentQueryBuilder grandchildren(int... quantities)
-
grandchildren
public InterfaceComponentQueryBuilder grandchildren(java.util.Collection<java.lang.Integer> quantities)
-
grandchildren
public boolean grandchildren()
-
heights
public InterfaceComponentQueryBuilder heights(int... heights)
-
heights
public InterfaceComponentQueryBuilder heights(java.util.Collection<java.lang.Integer> heights)
-
layerDepths
public InterfaceComponentQueryBuilder layerDepths(int... layerDepths)
-
layerDepths
public InterfaceComponentQueryBuilder layerDepths(java.util.Collection<java.lang.Integer> layerDepths)
-
names
public InterfaceComponentQueryBuilder names(java.lang.String... names)
-
names
public InterfaceComponentQueryBuilder names(java.util.Collection<java.util.regex.Pattern> names)
-
names
public InterfaceComponentQueryBuilder names(java.util.regex.Pattern... names)
-
tooltips
@RS3Only public InterfaceComponentQueryBuilder tooltips(java.lang.String... tooltips)
-
tooltips
@RS3Only public InterfaceComponentQueryBuilder tooltips(java.util.Collection<java.util.regex.Pattern> tooltips)
-
tooltips
@RS3Only public InterfaceComponentQueryBuilder tooltips(java.util.regex.Pattern... tooltips)
-
projectedBufferId
public InterfaceComponentQueryBuilder projectedBufferId(int... ids)
-
projectedBufferId
public InterfaceComponentQueryBuilder projectedBufferId(java.util.function.Predicate<java.lang.Integer> filter)
-
projectedNpc
public InterfaceComponentQueryBuilder projectedNpc(java.util.function.Predicate<NpcDefinition> filter)
-
projectedPlayer
public InterfaceComponentQueryBuilder projectedPlayer(java.util.function.Predicate<Player> filter)
-
spriteRotations
public InterfaceComponentQueryBuilder spriteRotations(int... spriteRotations)
-
spriteRotations
public InterfaceComponentQueryBuilder spriteRotations(java.util.Collection<java.lang.Integer> spriteRotations)
-
sprites
public InterfaceComponentQueryBuilder sprites(int... sprites)
-
sprites
public InterfaceComponentQueryBuilder sprites(java.util.Collection<java.lang.Integer> sprites)
-
fonts
public InterfaceComponentQueryBuilder fonts(int... fonts)
-
fonts
public InterfaceComponentQueryBuilder fonts(java.util.Collection<java.lang.Integer> fonts)
-
textColors
public InterfaceComponentQueryBuilder textColors(java.awt.Color... textColors)
-
textColors
public InterfaceComponentQueryBuilder textColors(java.util.Collection<java.awt.Color> textColors)
-
textContains
public InterfaceComponentQueryBuilder textContains(java.lang.String... textContains)
-
texts
public InterfaceComponentQueryBuilder texts(java.util.Collection<java.util.regex.Pattern> texts)
-
texts
public InterfaceComponentQueryBuilder texts(java.lang.String... texts)
-
texts
public InterfaceComponentQueryBuilder texts(java.util.regex.Pattern... texts)
-
textures
@Deprecated public InterfaceComponentQueryBuilder textures(int... textures)
Deprecated.Replaced by sprites(int[] textures)- Parameters:
textures
-
-
textures
@Deprecated public InterfaceComponentQueryBuilder textures(java.util.Collection<java.lang.Integer> textures)
Deprecated.Replaced by sprites(Collection)- Parameters:
textures
-
-
types
public InterfaceComponentQueryBuilder types(InterfaceComponent.Type... types)
-
types
public InterfaceComponentQueryBuilder types(java.util.Collection<InterfaceComponent.Type> types)
-
widths
public InterfaceComponentQueryBuilder widths(int... widths)
-
widths
public InterfaceComponentQueryBuilder widths(java.util.Collection<java.lang.Integer> widths)
-
specializationIndicators
public InterfaceComponentQueryBuilder specializationIndicators(int... values)
-
specializationIndicators
public InterfaceComponentQueryBuilder specializationIndicators(java.util.Collection<java.lang.Integer> values)
-
get
public InterfaceComponentQueryBuilder get()
Description copied from class:QueryBuilder
Gets a reference to this with the correct type- Specified by:
get
in classQueryBuilder<InterfaceComponent,InterfaceComponentQueryBuilder,InterfaceComponentQueryResults>
-
getDefaultProvider
public java.util.concurrent.Callable<java.util.List<? extends InterfaceComponent>> getDefaultProvider()
Description copied from class:QueryBuilder
Gets the default provider of the unfiltered data entries. Must be thread-safe.- Specified by:
getDefaultProvider
in classQueryBuilder<InterfaceComponent,InterfaceComponentQueryBuilder,InterfaceComponentQueryResults>
- Returns:
- A non-null
Callable
provider that is used by default.
-
results
public InterfaceComponentQueryResults results()
Description copied from class:QueryBuilder
Gets a QueryResults object from the available provider and lazily evaluates all prior chained statements. The results need not be ordered.- Overrides:
results
in classQueryBuilder<InterfaceComponent,InterfaceComponentQueryBuilder,InterfaceComponentQueryResults>
- Returns:
- A non-null instance of
QueryBuilder
-
-