Class Players
- java.lang.Object
-
- org.dreambot.api.methods.interactive.Interactables<Player>
-
- org.dreambot.api.methods.interactive.Players
-
public class Players extends Interactables<Player>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<Player>
all()
static java.util.List<Player>
all(java.lang.Integer... ids)
static java.util.List<Player>
all(java.lang.String... names)
static java.util.List<Player>
all(Filter<Player> filter)
static Player
closest(java.lang.Integer... ids)
static Player
closest(java.lang.String... names)
static Player
closest(Filter<Player> filter)
static Player
closest(Filter<Player> filter, Tile toTile)
static Player[]
getArray()
Gets all playersstatic Player
getAtIndex(int index)
Gets a player at a specific indexstatic PlayerComposite
getComposite(Player player, java.lang.Object playerComposite)
static Player
getLocal()
Gets your playerstatic ModelWrapper
getModel(Player player)
static boolean
referenceExists(int index)
Checks to see if the player reference exists at this index
-
-
-
Method Detail
-
all
public static java.util.List<Player> all()
-
getLocal
public static Player getLocal()
Gets your player- Returns:
Player
as your current logged in player
-
all
public static java.util.List<Player> all(java.lang.Integer... ids)
-
all
public static java.util.List<Player> all(java.lang.String... names)
-
closest
public static Player closest(java.lang.String... names)
-
closest
public static Player closest(java.lang.Integer... ids)
-
getArray
public static Player[] getArray()
Gets all players- Returns:
- All cached players
-
referenceExists
public static boolean referenceExists(int index)
Checks to see if the player reference exists at this index- Parameters:
index
-- Returns:
- true if not null else false
-
getAtIndex
public static Player getAtIndex(int index)
Gets a player at a specific index- Parameters:
index
-- Returns:
- null if player reference not found, otherwise player for given index
-
getComposite
public static PlayerComposite getComposite(Player player, java.lang.Object playerComposite)
-
getModel
public static ModelWrapper getModel(Player player)
-
-