Class NpcQueryBuilder
- 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<Npc,NpcQueryBuilder>
-
- com.runemate.game.api.hybrid.queries.NpcQueryBuilder
-
- All Implemented Interfaces:
java.lang.Cloneable
public class NpcQueryBuilder extends ActorQueryBuilder<Npc,NpcQueryBuilder>
-
-
Constructor Summary
Constructors Constructor Description NpcQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(Npc argument)
Checks if the current builder accepts the argumentNpcQueryBuilder
actions(java.lang.String... actions)
NpcQueryBuilder
actions(java.util.regex.Pattern... actions)
NpcQueryBuilder
appearance(int... appearance)
NpcQueryBuilder
colorSubstitutions(com.runemate.game.api.hybrid.util.collections.Pair<java.awt.Color,java.awt.Color> substitution)
NpcQueryBuilder
colorSubstitutions(java.awt.Color original, java.awt.Color substitution)
NpcQueryBuilder
colorSubstitutions(java.util.Map<java.awt.Color,java.awt.Color> substitutions)
NpcQueryBuilder
get()
Gets a reference to this with the correct typejava.util.concurrent.Callable<java.util.List<? extends Npc>>
getDefaultProvider()
Gets the default provider of the unfiltered data entries.NpcQueryBuilder
ids(int... ids)
NpcQueryBuilder
levels(int... levels)
NpcQueryBuilder
levels(java.util.Collection<java.lang.Integer> levels)
NpcQueryBuilder
maxLevel(int maxLevel)
NpcQueryBuilder
minLevel(int minLevel)
-
Methods inherited from class com.runemate.game.api.hybrid.queries.ActorQueryBuilder
animating, animating, animations, animations, defaultColors, defaultColors, dialogueContains, dialogues, dialogues, dialogues, health, health, models, models, moving, moving, names, names, names, overheadIcons, overheadIcons, stances, stances, targetedBy, targetedBy, targeting, 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
-
-
-
-
Method Detail
-
actions
public final NpcQueryBuilder actions(java.lang.String... actions)
-
actions
public final NpcQueryBuilder actions(java.util.regex.Pattern... actions)
-
get
public NpcQueryBuilder get()
Description copied from class:QueryBuilder
Gets a reference to this with the correct type- Specified by:
get
in classQueryBuilder<Npc,NpcQueryBuilder,LocatableEntityQueryResults<Npc>>
-
getDefaultProvider
public java.util.concurrent.Callable<java.util.List<? extends Npc>> getDefaultProvider()
Description copied from class:QueryBuilder
Gets the default provider of the unfiltered data entries. Must be thread-safe.- Specified by:
getDefaultProvider
in classQueryBuilder<Npc,NpcQueryBuilder,LocatableEntityQueryResults<Npc>>
- Returns:
- A non-null
Callable
provider that is used by default.
-
appearance
public NpcQueryBuilder appearance(int... appearance)
-
minLevel
public NpcQueryBuilder minLevel(int minLevel)
-
maxLevel
public NpcQueryBuilder maxLevel(int maxLevel)
-
levels
public NpcQueryBuilder levels(int... levels)
-
levels
public NpcQueryBuilder levels(java.util.Collection<java.lang.Integer> levels)
-
ids
public NpcQueryBuilder ids(int... ids)
-
colorSubstitutions
public final NpcQueryBuilder colorSubstitutions(java.awt.Color original, java.awt.Color substitution)
-
colorSubstitutions
public final NpcQueryBuilder colorSubstitutions(com.runemate.game.api.hybrid.util.collections.Pair<java.awt.Color,java.awt.Color> substitution)
-
colorSubstitutions
public final NpcQueryBuilder colorSubstitutions(java.util.Map<java.awt.Color,java.awt.Color> substitutions)
-
accepts
public boolean accepts(Npc argument)
Description copied from class:QueryBuilder
Checks if the current builder accepts the argument- Overrides:
accepts
in classActorQueryBuilder<Npc,NpcQueryBuilder>
- Parameters:
argument
- The argument to be tested against the built query.- Returns:
- true if the provided argument is accepted by the built query.
-
-