Class LocatableEntityQueryRequest<T extends LocatableEntity>
- java.lang.Object
-
- com.epicbot.api.shared.query.request.QueryRequest<T>
-
- com.epicbot.api.shared.query.request.LocatableEntityQueryRequest<T>
-
- Direct Known Subclasses:
ActorQueryRequest
,GroundItemQueryRequest
,ProjectileQueryRequest
,SceneObjectQueryRequest
public abstract class LocatableEntityQueryRequest<T extends LocatableEntity> extends QueryRequest<T>
-
-
Field Summary
-
Fields inherited from class com.epicbot.api.shared.query.request.QueryRequest
ctx
-
-
Constructor Summary
Constructors Constructor Description LocatableEntityQueryRequest(APIContext ctx, int distance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(int x, int y, int plane)
boolean
accepts(T obj)
int
getDistance()
Tile
getEntityLocation(Locatable other)
Tile
getEntityLocation(T entity)
Tile
getLocalPlayerLocation()
java.util.List<Locatable>
getLocated()
java.util.List<Locatable>
getNotLocated()
java.util.List<Area>
getNotWithin()
java.util.List<Area>
getWithin()
void
located(Locatable... locatables)
void
notLocated(Locatable... locatables)
void
notWithin(Area... areas)
void
setDistance(double distance)
void
within(Area... areas)
-
Methods inherited from class com.epicbot.api.shared.query.request.QueryRequest
filter, request
-
-
-
-
Constructor Detail
-
LocatableEntityQueryRequest
public LocatableEntityQueryRequest(APIContext ctx, int distance)
-
-
Method Detail
-
accepts
public boolean accepts(T obj)
- Overrides:
accepts
in classQueryRequest<T extends LocatableEntity>
-
accepts
public boolean accepts(int x, int y, int plane)
-
setDistance
public void setDistance(double distance)
-
located
public void located(Locatable... locatables)
-
notLocated
public void notLocated(Locatable... locatables)
-
within
public void within(Area... areas)
-
notWithin
public void notWithin(Area... areas)
-
getDistance
public int getDistance()
-
getLocated
public java.util.List<Locatable> getLocated()
-
getNotLocated
public java.util.List<Locatable> getNotLocated()
-
getWithin
public java.util.List<Area> getWithin()
-
getNotWithin
public java.util.List<Area> getNotWithin()
-
getLocalPlayerLocation
public Tile getLocalPlayerLocation()
-
-