Package org.rspeer.game.query.scene
Class ProjectileQuery
- java.lang.Object
-
- org.rspeer.game.query.Query<T,Q,SceneNodeQueryResults<T>>
-
- org.rspeer.game.query.scene.SceneNodeQuery<Projectile,ProjectileQuery>
-
- org.rspeer.game.query.scene.ProjectileQuery
-
- All Implemented Interfaces:
Cloneable,Predicate<Projectile>,SelfTyped<ProjectileQuery>,Identifiable.Query<ProjectileQuery>,Mobile.Query<ProjectileQuery>,SceneNode.Query<SceneNodeQuery<Projectile,ProjectileQuery>>
public class ProjectileQuery extends SceneNodeQuery<Projectile,ProjectileQuery> implements Identifiable.Query<ProjectileQuery>, Mobile.Query<ProjectileQuery>
-
-
Constructor Summary
Constructors Constructor Description ProjectileQuery(Supplier<List<Projectile>> provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Supplier<List<Projectile>>getDefaultProvider()ProjectileQueryids(int... ids)ProjectileQuerymoving()ProjectileQueryself()ProjectileQuerysource(PathingEntity... source)ProjectileQuerystationary()ProjectileQuerytargeting(PathingEntity... targets)booleantest(Projectile e)-
Methods inherited from class org.rspeer.game.query.scene.SceneNodeQuery
distanceEvaluator, nonInstanced, on, on, positionInteractable, reachable, within, within, within, within
-
-
-
-
Constructor Detail
-
ProjectileQuery
public ProjectileQuery(Supplier<List<Projectile>> provider)
-
-
Method Detail
-
getDefaultProvider
public Supplier<List<Projectile>> getDefaultProvider()
- Specified by:
getDefaultProviderin classQuery<Projectile,ProjectileQuery,SceneNodeQueryResults<Projectile>>
-
self
public ProjectileQuery self()
- Specified by:
selfin interfaceSelfTyped<ProjectileQuery>
-
ids
public ProjectileQuery ids(int... ids)
- Specified by:
idsin interfaceIdentifiable.Query<ProjectileQuery>
-
moving
public ProjectileQuery moving()
- Specified by:
movingin interfaceMobile.Query<ProjectileQuery>
-
stationary
public ProjectileQuery stationary()
- Specified by:
stationaryin interfaceMobile.Query<ProjectileQuery>
-
targeting
public ProjectileQuery targeting(PathingEntity... targets)
-
source
public ProjectileQuery source(PathingEntity... source)
-
test
public boolean test(Projectile e)
- Specified by:
testin interfacePredicate<Projectile>- Overrides:
testin classSceneNodeQuery<Projectile,ProjectileQuery>
-
-