public class LocatableEntityQueryBuilder<T extends LocatableEntity,Q extends LocatableEntityQueryBuilder<T,Q,R>,R extends LocatableEntityQueryResult<T>> extends RenderableQueryBuilder<T,Q,R>
INVISIBLE_FILTER, VISIBLE_FILTER
ctx
Constructor and Description |
---|
LocatableEntityQueryBuilder(APIContext ctx,
java.util.function.Function<java.util.function.Predicate<T>,java.util.List<T>> objectsFunc) |
Modifier and Type | Method and Description |
---|---|
Q |
distance(double maximum) |
Q |
distance(double minimum,
double maximum) |
Q |
distance(Locatable to,
double maximum) |
Q |
distance(Locatable to,
double minimum,
double maximum) |
Q |
id(int... ids) |
Q |
located(Locatable... locatables)
Checks if the entity is located on ONE of the given tiles.
|
Q |
modelId(int... modelIds) |
Q |
notLocated(Locatable... locatables)
Checks if the entity is NOT located on ANY of the given tiles.
|
Q |
notWithin(Area... areas)
Checks if the entity is NOT located in ANY of the given areas.
|
Q |
reachable() |
Q |
reachableFrom(Locatable locatable) |
R |
results() |
Q |
unreachable() |
Q |
unreachableFrom(Locatable locatable) |
Q |
within(Area... areas)
Checks if the entity is located in ONE of the given areas.
|
contains, invisible, visible
accepts, asList, asSet, filter
public LocatableEntityQueryBuilder(APIContext ctx, java.util.function.Function<java.util.function.Predicate<T>,java.util.List<T>> objectsFunc)
public R results()
results
in class AbstractQueryBuilder<T extends LocatableEntity,Q extends LocatableEntityQueryBuilder<T,Q,R>,R extends LocatableEntityQueryResult<T>>
public Q id(int... ids)
public Q modelId(int... modelIds)
public Q distance(double maximum)
public Q distance(double minimum, double maximum)
public Q reachable()
public Q unreachable()
public Q located(Locatable... locatables)
locatables
- the locatablespublic Q notLocated(Locatable... locatables)
locatables
- the locatablespublic Q within(Area... areas)
areas
- the areas to check