Class LocatableEntityQueryBuilder<T extends LocatableEntity,QB 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,QB>
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
BankQueryBuilder
,DepositBoxQueryBuilder
,GameObjectQueryBuilder
,GroundItemQueryBuilder
,ProjectileQueryBuilder
,RotatableQueryBuilder
,SpotAnimationQueryBuilder
public abstract class LocatableEntityQueryBuilder<T extends LocatableEntity,QB extends QueryBuilder> extends InteractableQueryBuilder<T,QB,LocatableEntityQueryResults<T>>
-
-
Constructor Summary
Constructors Constructor Description LocatableEntityQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(T argument)
Checks if the current builder accepts the argumentQB
off(Coordinate... positions)
QB
off(java.util.Collection<Coordinate> positions)
QB
on(Coordinate... positions)
QB
on(java.util.Collection<Coordinate> positions)
QB
reachable()
Adds a new filter to the query for entities that are reachable.QB
reachableFrom(Locatable locatable)
QB
reachableFrom(java.util.concurrent.Callable<Locatable> callable)
QB
surroundingsReachable()
Adds a new filter to the query for entities that have connecting tiles that are reachable.QB
surroundingsReachableFrom(Locatable locatable)
Adds a new filter to the query for entities that have connecting tiles that are reachable.QB
surroundingsReachableFrom(java.util.concurrent.Callable<Locatable> locatable)
QB
surroundingsUnreachable()
QB
surroundingsUnreachableFrom(Locatable locatable)
QB
surroundingsUnreachableFrom(java.util.concurrent.Callable<Locatable> locatable)
QB
unreachable()
QB
unreachableFrom(Locatable locatable)
QB
unreachableFrom(java.util.concurrent.Callable<Locatable> callable)
QB
visibility(double minimum)
QB
visibility(double minimum, double maximum)
QB
within(@NonNull Area... areas)
Applies a filter to the query that accepts provided LocatableEntity's that have a Locatable#getPosition() that lies within one of the provided areas.QB
within(@NonNull java.util.Collection<Area> areas)
Applies a filter to the query that accepts provided LocatableEntity's that have a Locatable#getPosition() that lies within one of the provided areas.-
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
-
reachable
public QB reachable()
Adds a new filter to the query for entities that are reachable.
-
unreachable
public QB unreachable()
-
surroundingsReachable
public QB surroundingsReachable()
Adds a new filter to the query for entities that have connecting tiles that are reachable.
-
surroundingsReachableFrom
public QB surroundingsReachableFrom(Locatable locatable)
Adds a new filter to the query for entities that have connecting tiles that are reachable.
-
surroundingsReachableFrom
public QB surroundingsReachableFrom(java.util.concurrent.Callable<Locatable> locatable)
-
surroundingsUnreachable
public QB surroundingsUnreachable()
-
surroundingsUnreachableFrom
public QB surroundingsUnreachableFrom(java.util.concurrent.Callable<Locatable> locatable)
-
visibility
public QB visibility(double minimum)
-
visibility
public QB visibility(double minimum, double maximum)
-
on
public final QB on(Coordinate... positions)
-
on
public final QB on(java.util.Collection<Coordinate> positions)
-
off
public final QB off(Coordinate... positions)
-
off
public final QB off(java.util.Collection<Coordinate> positions)
-
within
public final QB within(@NonNull @NonNull Area... areas)
Applies a filter to the query that accepts provided LocatableEntity's that have a Locatable#getPosition() that lies within one of the provided areas.- Parameters:
areas
- a variable amount of non-null Areas- Returns:
- itself
-
within
public final QB within(@NonNull @NonNull java.util.Collection<Area> areas)
Applies a filter to the query that accepts provided LocatableEntity's that have a Locatable#getPosition() that lies within one of the provided areas.- Parameters:
areas
- a Collection of non-null Areas- Returns:
- itself
-
accepts
public boolean accepts(T argument)
Description copied from class:QueryBuilder
Checks if the current builder accepts the argument- Overrides:
accepts
in classInteractableQueryBuilder<T extends LocatableEntity,QB extends QueryBuilder,LocatableEntityQueryResults<T extends LocatableEntity>>
- Parameters:
argument
- The argument to be tested against the built query.- Returns:
- true if the provided argument is accepted by the built query.
-
-