Class ActorQueryBuilder<T extends Actor,Q extends QueryBuilder>
- 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<T,Q>
-
- com.runemate.game.api.hybrid.queries.RotatableQueryBuilder<T,Q>
-
- com.runemate.game.api.hybrid.queries.ActorQueryBuilder<T,Q>
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
NpcQueryBuilder
,PlayerQueryBuilder
public abstract class ActorQueryBuilder<T extends Actor,Q extends QueryBuilder> extends RotatableQueryBuilder<T,Q>
-
-
Constructor Summary
Constructors Constructor Description ActorQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(T argument)
Checks if the current builder accepts the argumentQ
animating()
Q
animating(boolean animating)
Q
animations(int... animations)
Q
animations(java.util.Collection<java.lang.Integer> animations)
Q
defaultColors(java.awt.Color... colors)
Adds the requirement that the result has a model with one of the specified default colorsQ
defaultColors(java.util.Collection<java.awt.Color> colors)
Q
dialogueContains(java.lang.String... dialogueContains)
Sets the required dialogue to contain one of the specified dialogues.Q
dialogues(java.lang.String... dialogues)
Sets the required dialogue to match one of the specified dialogues.Q
dialogues(java.util.Collection<java.util.regex.Pattern> dialogues)
Q
dialogues(java.util.regex.Pattern... dialogues)
Q
health(int health)
Q
health(int minimumHealth, int maximumHealth)
Q
models(int... models)
Q
models(java.util.Collection<java.lang.Integer> models)
Q
moving()
Q
moving(boolean moving)
Q
names(java.lang.String... names)
Q
names(java.util.Collection<java.util.regex.Pattern> names)
Q
names(java.util.regex.Pattern... names)
Q
overheadIcons(int... overheadIcons)
Q
overheadIcons(java.util.Collection<java.lang.Integer> overheadIcons)
Q
stances(int... stances)
Q
stances(java.util.Collection<java.lang.Integer> stances)
Q
targetedBy(Actor... targetedBy)
Q
targetedBy(java.util.Collection<Actor> targetedBy)
Q
targeting(Actor... targeting)
Q
targeting(java.util.Collection<Actor> targeting)
-
Methods inherited from class com.runemate.game.api.hybrid.queries.RotatableQueryBuilder
facing
-
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
-
Methods inherited from class com.runemate.game.api.hybrid.queries.QueryBuilder
clone, filter, get, getCache, getDefaultProvider, provider, results, setCache
-
-
-
-
Method Detail
-
animating
public final Q animating(boolean animating)
-
animating
public final Q animating()
-
names
public final Q names(java.lang.String... names)
-
overheadIcons
public final Q overheadIcons(java.util.Collection<java.lang.Integer> overheadIcons)
-
overheadIcons
public final Q overheadIcons(int... overheadIcons)
-
names
public final Q names(java.util.regex.Pattern... names)
-
names
public final Q names(java.util.Collection<java.util.regex.Pattern> names)
-
moving
public final Q moving(boolean moving)
-
moving
public final Q moving()
-
models
public final Q models(int... models)
-
models
public final Q models(java.util.Collection<java.lang.Integer> models)
-
defaultColors
public final Q defaultColors(java.awt.Color... colors)
Adds the requirement that the result has a model with one of the specified default colors
-
defaultColors
public final Q defaultColors(java.util.Collection<java.awt.Color> colors)
-
dialogues
public final Q dialogues(java.lang.String... dialogues)
Sets the required dialogue to match one of the specified dialogues.
-
dialogueContains
public final Q dialogueContains(java.lang.String... dialogueContains)
Sets the required dialogue to contain one of the specified dialogues.
-
dialogues
public final Q dialogues(java.util.regex.Pattern... dialogues)
-
dialogues
public final Q dialogues(java.util.Collection<java.util.regex.Pattern> dialogues)
-
animations
public final Q animations(int... animations)
-
animations
public final Q animations(java.util.Collection<java.lang.Integer> animations)
-
stances
public final Q stances(int... stances)
-
stances
public final Q stances(java.util.Collection<java.lang.Integer> stances)
-
health
public final Q health(int minimumHealth, int maximumHealth)
-
health
public final Q health(int health)
-
accepts
public boolean accepts(T argument)
Description copied from class:QueryBuilder
Checks if the current builder accepts the argument- Overrides:
accepts
in classRotatableQueryBuilder<T extends Actor,Q extends QueryBuilder>
- Parameters:
argument
- The argument to be tested against the built query.- Returns:
- true if the provided argument is accepted by the built query.
-
-