Class GameObjects
- java.lang.Object
-
- com.runemate.game.api.hybrid.region.GameObjects
-
public final class GameObjects extends java.lang.Object
For retrieval, sorting, and analysis of GameObjects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.function.Predicate<GameObject>
getActionPredicate(java.lang.String... acceptedActions)
Gets a GameObject filter that can be used to get a GameObject with one of the specified actionstatic java.util.function.Predicate<GameObject>
getAppearancePredicate(int... acceptedAppearanceIds)
static java.util.function.Predicate<GameObject>
getAreaPredicate(Area... acceptedAreas)
static java.util.function.Predicate<GameObject>
getIdPredicate(int... acceptedIds)
static LocatableEntityQueryResults<GameObject>
getLoaded()
Gets a Set of all loaded GameObjectsstatic LocatableEntityQueryResults<GameObject>
getLoaded(int... ids)
Gets a Set of all loaded GameObjects with one of the given idsstatic LocatableEntityQueryResults<GameObject>
getLoaded(java.lang.String... names)
Gets a Set of all loaded GameObjects with one of the given namesstatic LocatableEntityQueryResults<GameObject>
getLoaded(java.util.function.Predicate<GameObject> filter)
Gets a Set of all loaded GameObjects that are accepted by the given filterstatic LocatableEntityQueryResults<GameObject>
getLoadedOn(Coordinate coordinate)
Gets a Set of all loaded GameObjects at the given Coordinatestatic LocatableEntityQueryResults<GameObject>
getLoadedOn(Coordinate coordinate, int... ids)
Gets a Set of all loaded GameObjects at the given coordinate with one of the given idsstatic LocatableEntityQueryResults<GameObject>
getLoadedOn(Coordinate coordinate, java.lang.String... names)
Gets a Set of all loaded GameObjects at the given coordinate with one of the given namesstatic LocatableEntityQueryResults<GameObject>
getLoadedOn(Coordinate coordinate, java.util.function.Predicate<GameObject> filter)
Gets a Set of all loaded GameObjects at the given coordinate that is accepted by the filterstatic LocatableEntityQueryResults<GameObject>
getLoadedWithin(Area area)
Gets a Set of all loaded GameObjects within the given Areastatic LocatableEntityQueryResults<GameObject>
getLoadedWithin(Area area, int... ids)
static LocatableEntityQueryResults<GameObject>
getLoadedWithin(Area area, java.lang.String... names)
static LocatableEntityQueryResults<GameObject>
getLoadedWithin(Area area, java.util.function.Predicate<GameObject> filter)
Gets a Set of all loaded GameObjects within the given Area that are accepted by the filterstatic java.util.function.Predicate<GameObject>
getModelPredicate(int... acceptedHashes)
Gets a GameObject model hash filterstatic java.util.function.Predicate<GameObject>
getNamePredicate(java.lang.String... acceptedNames)
Gets a GameObject filter that can be used to get a GameObject with one of the specified namesstatic java.util.function.Predicate<GameObject>
getSizePredicate(int width, int height)
static java.util.function.Predicate<GameObject>
getTypePredicate(GameObject.Type... acceptedTypes)
static GameObjectQueryBuilder
newQuery()
Creates a new game object query.
-
-
-
Method Detail
-
newQuery
public static GameObjectQueryBuilder newQuery()
Creates a new game object query.
-
getLoaded
public static LocatableEntityQueryResults<GameObject> getLoaded()
Gets a Set of all loaded GameObjects
-
getLoaded
public static LocatableEntityQueryResults<GameObject> getLoaded(int... ids)
Gets a Set of all loaded GameObjects with one of the given ids
-
getLoaded
public static LocatableEntityQueryResults<GameObject> getLoaded(java.lang.String... names)
Gets a Set of all loaded GameObjects with one of the given names
-
getLoaded
public static LocatableEntityQueryResults<GameObject> getLoaded(java.util.function.Predicate<GameObject> filter)
Gets a Set of all loaded GameObjects that are accepted by the given filter
-
getLoadedOn
public static LocatableEntityQueryResults<GameObject> getLoadedOn(Coordinate coordinate)
Gets a Set of all loaded GameObjects at the given Coordinate
-
getLoadedOn
public static LocatableEntityQueryResults<GameObject> getLoadedOn(Coordinate coordinate, int... ids)
Gets a Set of all loaded GameObjects at the given coordinate with one of the given ids
-
getLoadedOn
public static LocatableEntityQueryResults<GameObject> getLoadedOn(Coordinate coordinate, java.lang.String... names)
Gets a Set of all loaded GameObjects at the given coordinate with one of the given names
-
getLoadedOn
public static LocatableEntityQueryResults<GameObject> getLoadedOn(Coordinate coordinate, java.util.function.Predicate<GameObject> filter)
Gets a Set of all loaded GameObjects at the given coordinate that is accepted by the filter
-
getLoadedWithin
public static LocatableEntityQueryResults<GameObject> getLoadedWithin(Area area)
Gets a Set of all loaded GameObjects within the given Area
-
getLoadedWithin
public static LocatableEntityQueryResults<GameObject> getLoadedWithin(Area area, java.util.function.Predicate<GameObject> filter)
Gets a Set of all loaded GameObjects within the given Area that are accepted by the filter
-
getLoadedWithin
public static LocatableEntityQueryResults<GameObject> getLoadedWithin(Area area, int... ids)
-
getLoadedWithin
public static LocatableEntityQueryResults<GameObject> getLoadedWithin(Area area, java.lang.String... names)
-
getIdPredicate
public static java.util.function.Predicate<GameObject> getIdPredicate(int... acceptedIds)
-
getAreaPredicate
public static java.util.function.Predicate<GameObject> getAreaPredicate(Area... acceptedAreas)
-
getTypePredicate
public static java.util.function.Predicate<GameObject> getTypePredicate(GameObject.Type... acceptedTypes)
-
getActionPredicate
public static java.util.function.Predicate<GameObject> getActionPredicate(java.lang.String... acceptedActions)
Gets a GameObject filter that can be used to get a GameObject with one of the specified action- Parameters:
acceptedActions
- the powers that are valid (case-sensitive)- Returns:
- a filter
-
getNamePredicate
public static java.util.function.Predicate<GameObject> getNamePredicate(java.lang.String... acceptedNames)
Gets a GameObject filter that can be used to get a GameObject with one of the specified names- Parameters:
acceptedNames
- the names that are valid (case-sensitive)- Returns:
- a filter
-
getAppearancePredicate
public static java.util.function.Predicate<GameObject> getAppearancePredicate(int... acceptedAppearanceIds)
-
getModelPredicate
public static java.util.function.Predicate<GameObject> getModelPredicate(int... acceptedHashes)
Gets a GameObject model hash filter- Parameters:
acceptedHashes
-
-
getSizePredicate
public static java.util.function.Predicate<GameObject> getSizePredicate(int width, int height)
-
-