Class Players
- java.lang.Object
-
- com.runemate.game.api.hybrid.region.Players
-
public final class Players extends java.lang.Object
For retrieval, sorting, and analysis of Players
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Player
getAt(int index)
Gets the player at the given index in the array (advanced)static LocatableEntityQueryResults<Player>
getLoaded()
Gets a List of all loaded playersstatic LocatableEntityQueryResults<Player>
getLoaded(Actor target)
Gets a list of all loaded players interacting with a specific Actor (Npc/Player)static LocatableEntityQueryResults<Player>
getLoaded(java.lang.String... names)
static LocatableEntityQueryResults<Player>
getLoaded(java.util.function.Predicate<? super Player> filter)
static @Nullable Player
getLocal()
Gets the local player, also known as your character.static int
getLocalPlayerWeight()
Gets the weight of the local player as it appears in-gamestatic java.util.function.Predicate<Player>
getModelPredicate(int... acceptedHashes)
Gets a Player model hash filterstatic java.util.function.Predicate<Player>
getNamePredicate(java.lang.String... acceptedNames)
static PlayerQueryBuilder
newQuery()
-
-
-
Method Detail
-
getAt
public static Player getAt(int index)
Gets the player at the given index in the array (advanced)
-
getLoaded
public static LocatableEntityQueryResults<Player> getLoaded(Actor target)
Gets a list of all loaded players interacting with a specific Actor (Npc/Player)
-
getLoaded
public static LocatableEntityQueryResults<Player> getLoaded(java.util.function.Predicate<? super Player> filter)
-
getLoaded
public static LocatableEntityQueryResults<Player> getLoaded(java.lang.String... names)
-
getLoaded
public static LocatableEntityQueryResults<Player> getLoaded()
Gets a List of all loaded players
-
getLocal
@Nullable public static @Nullable Player getLocal()
Gets the local player, also known as your character.
-
getLocalPlayerWeight
public static int getLocalPlayerWeight()
Gets the weight of the local player as it appears in-game
-
getModelPredicate
public static java.util.function.Predicate<Player> getModelPredicate(int... acceptedHashes)
Gets a Player model hash filter
-
getNamePredicate
public static java.util.function.Predicate<Player> getNamePredicate(java.lang.String... acceptedNames)
-
newQuery
public static PlayerQueryBuilder newQuery()
-
-