PlayerAPI
Player API.
ClassRLPlugins API
public class PlayerAPI extends ActorAPIMembers
Static methods
- PlayerExgetLocal()
Your own player.
- voidinteract(PlayerEx, String...)
Interacts with a player by first matching action.
- voidinteract(PlayerEx, int)
Interact with a player by option number.
- voidinteract(int, int)
Interact with a player by option number.
- booleanisIdle()
Check if the local player is idle.
- PlayerQuerysearch()
Creates an instance of PlayerQuery.
Inherited from ActorAPI
- ActorEx<?>getInCombatWith()
Find the actor currently in combat with the local player.
getLocal()static
public static PlayerEx getLocal()Your own player.
Returns
The current player.
interact(PlayerEx, String...)static
public static void interact(PlayerEx player, String... actions)Interacts with a player by first matching action.
Parameters
player- Player.
actions- Actions list.
interact(PlayerEx, int)static
public static void interact(PlayerEx player, int option)Interact with a player by option number.
Parameters
player- Player.
option- Option number.
interact(int, int)static
public static void interact(int index, int option)Interact with a player by option number.
Parameters
index- Player index.
option- Option number.
isIdle()static
public static boolean isIdle()Check if the local player is idle.
Returns
True if idle.
search()static
public static PlayerQuery search()Creates an instance of PlayerQuery.
Returns
PlayerQuery.
getInCombatWith()staticfrom ActorAPI
public static ActorEx<?> getInCombatWith()Find the actor currently in combat with the local player.
Returns
The actor, or null if none found.
Also allowed
Every class has these, as in plain Java.
equals, toString