public interface IObjectsAPI
Modifier and Type | Field and Description |
---|---|
static java.util.function.Predicate<SceneObject> |
ACCEPT_ALL |
static int |
DEFAULT_QUERY_RADIUS
The default radius/distance used in
getAll(int, Predicate) . |
static java.util.function.Predicate<SceneObject> |
DENY_ALL |
Modifier and Type | Method and Description |
---|---|
java.util.List<SceneObject> |
getAll()
Gets all objects in the current scene.
|
java.util.List<SceneObject> |
getAll(int range,
java.util.function.Predicate<SceneObject> filter)
Gets all objects within a certain range matching the given filter.
|
java.util.List<SceneObject> |
getAll(java.util.function.Predicate<SceneObject> filter)
Gets all objects matching the given filter.
|
java.util.List<SceneObject> |
getAt(Locatable locatable)
Gets all objects at at the given location.
|
java.util.List<SceneObject> |
getAt(Locatable locatable,
int mask)
Gets all objects at at the given location.
|
java.util.List<SceneObject> |
getAt(Locatable locatable,
int mask,
java.util.function.Predicate<SceneObject> filter)
Gets all objects at the given location matching the given filter.
|
java.util.List<SceneObject> |
getAt(Locatable locatable,
java.util.function.Predicate<SceneObject> filter)
Gets all objects at the given location matching the given filter.
|
SceneObject |
getTopAt(Locatable locatable)
Gets the top object at the given location.
|
SceneObject |
getTopAt(Locatable locatable,
java.util.function.Predicate<SceneObject> filter)
Gets the top object at the given location matching the given filter.
|
SceneObjectQueryBuilder |
query() |
static final java.util.function.Predicate<SceneObject> ACCEPT_ALL
static final java.util.function.Predicate<SceneObject> DENY_ALL
static final int DEFAULT_QUERY_RADIUS
getAll(int, Predicate)
.java.util.List<SceneObject> getAll()
java.util.List<SceneObject> getAll(java.util.function.Predicate<SceneObject> filter)
filter
- the filterjava.util.List<SceneObject> getAll(int range, java.util.function.Predicate<SceneObject> filter)
range
- the radius, defaults to 26filter
- the filterjava.util.List<SceneObject> getAt(Locatable locatable)
locatable
- the locationjava.util.List<SceneObject> getAt(Locatable locatable, java.util.function.Predicate<SceneObject> filter)
locatable
- the locationfilter
- the filterjava.util.List<SceneObject> getAt(Locatable locatable, int mask)
locatable
- the locationmask
- the type flags or -1java.util.List<SceneObject> getAt(Locatable locatable, int mask, java.util.function.Predicate<SceneObject> filter)
locatable
- the locationmask
- the type flags or -1filter
- the filterSceneObject getTopAt(Locatable locatable)
locatable
- the locationSceneObject getTopAt(Locatable locatable, java.util.function.Predicate<SceneObject> filter)
locatable
- the locationfilter
- the filterSceneObjectQueryBuilder query()