Class GameObjectQueryBuilder
- 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<GameObject,GameObjectQueryBuilder>
-
- com.runemate.game.api.hybrid.queries.GameObjectQueryBuilder
-
- All Implemented Interfaces:
java.lang.Cloneable
public class GameObjectQueryBuilder extends LocatableEntityQueryBuilder<GameObject,GameObjectQueryBuilder>
-
-
Constructor Summary
Constructors Constructor Description GameObjectQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(GameObject argument)
Checks if the current builder accepts the argumentGameObjectQueryBuilder
actions(java.lang.String... actions)
GameObjectQueryBuilder
actions(java.util.regex.Pattern... actions)
GameObjectQueryBuilder
appearance(int... appearance)
GameObjectQueryBuilder
colorSubstitutions(com.runemate.game.api.hybrid.util.collections.Pair<java.awt.Color,java.awt.Color> substitution)
GameObjectQueryBuilder
colorSubstitutions(java.awt.Color original, java.awt.Color substitution)
GameObjectQueryBuilder
colorSubstitutions(java.util.Map<java.awt.Color,java.awt.Color> substitutions)
GameObjectQueryBuilder
defaultColors(java.awt.Color... colors)
Adds the requirement that the result has a model with one of the specified default colorsGameObjectQueryBuilder
get()
Gets a reference to this with the correct typejava.util.concurrent.Callable<java.util.List<? extends GameObject>>
getDefaultProvider()
Gets the default provider of the unfiltered data entries.GameObjectQueryBuilder
ids(int... ids)
GameObjectQueryBuilder
mapScenes(int... mapScenes)
GameObjectQueryBuilder
mapsFunctions(int... mapFunctions)
GameObjectQueryBuilder
models(int... modelHashes)
Adds the requirement that the result has a model with one of the specified hashesGameObjectQueryBuilder
names(java.lang.String... names)
GameObjectQueryBuilder
names(java.util.regex.Pattern... names)
GameObjectQueryBuilder
types(GameObject.Type... types)
GameObjectQueryBuilder
types(java.util.Collection<GameObject.Type> types)
-
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 GameObjectQueryBuilder names(java.lang.String... names)
-
names
public GameObjectQueryBuilder names(java.util.regex.Pattern... names)
-
get
public GameObjectQueryBuilder get()
Description copied from class:QueryBuilder
Gets a reference to this with the correct type- Specified by:
get
in classQueryBuilder<GameObject,GameObjectQueryBuilder,LocatableEntityQueryResults<GameObject>>
-
getDefaultProvider
public java.util.concurrent.Callable<java.util.List<? extends GameObject>> getDefaultProvider()
Description copied from class:QueryBuilder
Gets the default provider of the unfiltered data entries. Must be thread-safe.- Specified by:
getDefaultProvider
in classQueryBuilder<GameObject,GameObjectQueryBuilder,LocatableEntityQueryResults<GameObject>>
- Returns:
- A non-null
Callable
provider that is used by default.
-
ids
public GameObjectQueryBuilder ids(int... ids)
-
mapsFunctions
public final GameObjectQueryBuilder mapsFunctions(int... mapFunctions)
-
mapScenes
public final GameObjectQueryBuilder mapScenes(int... mapScenes)
-
actions
public GameObjectQueryBuilder actions(java.lang.String... actions)
-
actions
public GameObjectQueryBuilder actions(java.util.regex.Pattern... actions)
-
types
public GameObjectQueryBuilder types(java.util.Collection<GameObject.Type> types)
-
types
public GameObjectQueryBuilder types(GameObject.Type... types)
-
models
public final GameObjectQueryBuilder models(int... modelHashes)
Adds the requirement that the result has a model with one of the specified hashes
-
defaultColors
public final GameObjectQueryBuilder defaultColors(java.awt.Color... colors)
Adds the requirement that the result has a model with one of the specified default colors
-
colorSubstitutions
public final GameObjectQueryBuilder colorSubstitutions(java.awt.Color original, java.awt.Color substitution)
-
colorSubstitutions
public final GameObjectQueryBuilder colorSubstitutions(com.runemate.game.api.hybrid.util.collections.Pair<java.awt.Color,java.awt.Color> substitution)
-
colorSubstitutions
public final GameObjectQueryBuilder colorSubstitutions(java.util.Map<java.awt.Color,java.awt.Color> substitutions)
-
appearance
public final GameObjectQueryBuilder appearance(int... appearance)
-
accepts
public boolean accepts(GameObject argument)
Description copied from class:QueryBuilder
Checks if the current builder accepts the argument- Overrides:
accepts
in classLocatableEntityQueryBuilder<GameObject,GameObjectQueryBuilder>
- Parameters:
argument
- The argument to be tested against the built query.- Returns:
- true if the provided argument is accepted by the built query.
-
-