Package org.rspeer.game.query.scene
Class SceneObjectQuery
- java.lang.Object
-
- org.rspeer.game.query.Query<T,Q,SceneNodeQueryResults<T>>
-
- org.rspeer.game.query.scene.SceneNodeQuery<SceneObject,SceneObjectQuery>
-
- org.rspeer.game.query.scene.SceneObjectQuery
-
- All Implemented Interfaces:
Cloneable
,Predicate<SceneObject>
,SelfTyped<SceneObjectQuery>
,Actionable.Query<SceneObjectQuery>
,Identifiable.Query<SceneObjectQuery>
,Nameable.Query<SceneObjectQuery>
,SceneNode.Query<SceneNodeQuery<SceneObject,SceneObjectQuery>>
public class SceneObjectQuery extends SceneNodeQuery<SceneObject,SceneObjectQuery> implements Actionable.Query<SceneObjectQuery>, Identifiable.Query<SceneObjectQuery>, Nameable.Query<SceneObjectQuery>
-
-
Constructor Summary
Constructors Constructor Description SceneObjectQuery(Supplier<List<SceneObject>> provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SceneObjectQuery
actions(String... actions)
SceneObjectQuery
colors(int... colors)
Supplier<List<SceneObject>>
getDefaultProvider()
SceneObjectQuery
ids(int... ids)
SceneObjectQuery
mapFunctions(int... mapFunctions)
SceneObjectQuery
mapScenes(int... mapScenes)
SceneObjectQuery
nameContains(String... names)
SceneObjectQuery
names(String... names)
SceneObjectQuery
on(Position... positions)
SceneObjectQuery
self()
boolean
test(SceneObject obj)
SceneObjectQuery
types(Class<? extends RSSceneObject>... types)
SceneObjectQuery
within(int distance)
SceneObjectQuery
within(SceneNode src, int distance)
SceneObjectQuery
within(Area... areas)
-
Methods inherited from class org.rspeer.game.query.scene.SceneNodeQuery
distanceEvaluator, nonInstanced, positionInteractable, reachable
-
-
-
-
Constructor Detail
-
SceneObjectQuery
public SceneObjectQuery(Supplier<List<SceneObject>> provider)
-
-
Method Detail
-
getDefaultProvider
public Supplier<List<SceneObject>> getDefaultProvider()
- Specified by:
getDefaultProvider
in classQuery<SceneObject,SceneObjectQuery,SceneNodeQueryResults<SceneObject>>
-
names
public SceneObjectQuery names(String... names)
- Specified by:
names
in interfaceNameable.Query<SceneObjectQuery>
-
nameContains
public SceneObjectQuery nameContains(String... names)
- Specified by:
nameContains
in interfaceNameable.Query<SceneObjectQuery>
-
actions
public SceneObjectQuery actions(String... actions)
- Specified by:
actions
in interfaceActionable.Query<SceneObjectQuery>
-
mapFunctions
public SceneObjectQuery mapFunctions(int... mapFunctions)
-
mapScenes
public SceneObjectQuery mapScenes(int... mapScenes)
-
types
@SafeVarargs public final SceneObjectQuery types(Class<? extends RSSceneObject>... types)
-
colors
public SceneObjectQuery colors(int... colors)
-
ids
public SceneObjectQuery ids(int... ids)
- Specified by:
ids
in interfaceIdentifiable.Query<SceneObjectQuery>
-
within
public SceneObjectQuery within(Area... areas)
- Overrides:
within
in classSceneNodeQuery<SceneObject,SceneObjectQuery>
-
within
public SceneObjectQuery within(SceneNode src, int distance)
- Specified by:
within
in interfaceSceneNode.Query<SceneNodeQuery<SceneObject,SceneObjectQuery>>
- Overrides:
within
in classSceneNodeQuery<SceneObject,SceneObjectQuery>
-
within
public SceneObjectQuery within(int distance)
- Specified by:
within
in interfaceSceneNode.Query<SceneNodeQuery<SceneObject,SceneObjectQuery>>
- Overrides:
within
in classSceneNodeQuery<SceneObject,SceneObjectQuery>
-
on
public SceneObjectQuery on(Position... positions)
- Specified by:
on
in interfaceSceneNode.Query<SceneNodeQuery<SceneObject,SceneObjectQuery>>
- Overrides:
on
in classSceneNodeQuery<SceneObject,SceneObjectQuery>
-
test
public boolean test(SceneObject obj)
- Specified by:
test
in interfacePredicate<SceneObject>
- Overrides:
test
in classSceneNodeQuery<SceneObject,SceneObjectQuery>
-
self
public SceneObjectQuery self()
- Specified by:
self
in interfaceSelfTyped<SceneObjectQuery>
-
-