Package com.epicbot.api.shared.methods
Interface IObjectsAPI
-
public interface IObjectsAPI
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Predicate<SceneObject>
ACCEPT_ALL
static int
DEFAULT_QUERY_RADIUS
The default radius/distance used ingetAll(int, Predicate)
.static java.util.function.Predicate<SceneObject>
DENY_ALL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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(SceneObjectQueryRequest request)
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()
-
-
-
Field Detail
-
ACCEPT_ALL
static final java.util.function.Predicate<SceneObject> ACCEPT_ALL
-
DENY_ALL
static final java.util.function.Predicate<SceneObject> DENY_ALL
-
DEFAULT_QUERY_RADIUS
static final int DEFAULT_QUERY_RADIUS
The default radius/distance used ingetAll(int, Predicate)
.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAll
java.util.List<SceneObject> getAll()
Gets all objects in the current scene.- Returns:
- list of objects
-
getAll
java.util.List<SceneObject> getAll(java.util.function.Predicate<SceneObject> filter)
Gets all objects matching the given filter.- Parameters:
filter
- the filter- Returns:
- list of objects
-
getAll
java.util.List<SceneObject> getAll(int range, java.util.function.Predicate<SceneObject> filter)
Gets all objects within a certain range matching the given filter.- Parameters:
range
- the radius, defaults to 26filter
- the filter- Returns:
- list of objects
-
getAll
java.util.List<SceneObject> getAll(SceneObjectQueryRequest request)
-
getAt
java.util.List<SceneObject> getAt(Locatable locatable)
Gets all objects at at the given location.- Parameters:
locatable
- the location- Returns:
- list of objects
-
getAt
java.util.List<SceneObject> getAt(Locatable locatable, java.util.function.Predicate<SceneObject> filter)
Gets all objects at the given location matching the given filter.- Parameters:
locatable
- the locationfilter
- the filter- Returns:
- list of objects
-
getAt
java.util.List<SceneObject> getAt(Locatable locatable, int mask)
Gets all objects at at the given location.- Parameters:
locatable
- the locationmask
- the type flags or -1- Returns:
- list of objects
-
getAt
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.- Parameters:
locatable
- the locationmask
- the type flags or -1filter
- the filter- Returns:
- list of objects
-
getTopAt
SceneObject getTopAt(Locatable locatable)
Gets the top object at the given location.- Parameters:
locatable
- the location- Returns:
- the top object or null
-
getTopAt
SceneObject getTopAt(Locatable locatable, java.util.function.Predicate<SceneObject> filter)
Gets the top object at the given location matching the given filter.- Parameters:
locatable
- the locationfilter
- the filter- Returns:
- the top object or null
-
query
SceneObjectQueryBuilder query()
-
-