public abstract class SimpleLocatableQuery<K extends SimpleIdentifiable & SimpleLocatable> extends SimpleQuery<SimpleLocatableQuery<K>,K,ClientContext>
ctx
Modifier and Type | Method and Description |
---|---|
SimpleLocatableQuery<K> |
filter(int... ids)
Will filter out all items whose id isn't one of the elements inside of the {ids} array
|
SimpleLocatableQuery<K> |
filter(SimpleLocatable... locatables)
Will filter out all items whose location doesn't match any of the locatable objects in the {locatables} array
|
SimpleLocatableQuery<K> |
filter(WorldArea area)
Will filter out all items who are not inside of the specified area
|
SimpleLocatableQuery<K> |
filter(WorldPoint... points)
Will filter out all items whose location are not one of those inside of the array {points}
|
SimpleLocatableQuery<K> |
filterWithin(int distance)
Will filter out all items not within specified distance to the local player
|
SimpleLocatableQuery<K> |
filterWithin(WorldPoint worldPoint,
int distance)
Will filter out all items not within specified distance to said {worldPoint}
|
SimpleLocatableQuery<K> |
nearest()
Will sort the query by closest distance to our local player
|
SimpleLocatableQuery<K> |
nearest(SimpleLocatable locatable)
Will sort the query by closest distance to the location of said {locatable} object
|
SimpleLocatableQuery<K> |
nearest(WorldPoint point)
Will sort the query by closest distance to the specified worldpoint {point}
|
K |
nextNearest()
DO NOT USE!!!!
Please refrain from using this method as it sorts the query every time you call it and rather use `.nearest().next()`
Will sort the query by closest distance to the local player and return the `next#` method from the query
|
contains, filter, isEmpty, iterator, next, peekNext, populate, population, reverse, shuffle, size, sort, toStream
public K nextNearest()
public SimpleLocatableQuery<K> filter(int... ids)
ids
- array of ids for our filterpublic SimpleLocatableQuery<K> nearest()
public SimpleLocatableQuery<K> nearest(WorldPoint point)
point
- world point to sort our query bypublic SimpleLocatableQuery<K> nearest(SimpleLocatable locatable)
locatable
- locatable object to sort our query bypublic SimpleLocatableQuery<K> filter(SimpleLocatable... locatables)
locatables
- array of locatable objects for our filter to checkpublic SimpleLocatableQuery<K> filter(WorldPoint... points)
points
- array of worldpoints for our filter to checkpublic SimpleLocatableQuery<K> filter(WorldArea area)
area
- area for our filter to checkpublic SimpleLocatableQuery<K> filterWithin(int distance)
distance
- - radius to check around playerpublic SimpleLocatableQuery<K> filterWithin(WorldPoint worldPoint, int distance)
distance
- - radius to check around {worldPoint}worldPoint
- - point to filter around