Interface IPlayer

All Superinterfaces:
net.runelite.api.Actor, net.runelite.api.CameraFocusableEntity, IActor, Identifiable, Interactable, Locatable, Nameable, net.runelite.api.Node, net.runelite.api.Player, net.runelite.api.Renderable, RuneLiteWrapper<net.runelite.api.Actor>, SceneEntity

public interface IPlayer extends net.runelite.api.Player, IActor
Represents a player character in the game world.

Players are actors controlled by users. This interface extends IActor and provides player-specific functionality.

Example usage:

 
 IPlayers players = Static.getPlayers();
 IPlayer local = players.getLocal();
 String myName = local.getName();
 int myCombatLevel = local.getCombatLevel();
 
 

See Also:
  • Method Details

    • update

      void update(net.runelite.api.Player player)
      Updates this player's state with data from a RuneLite player object.

      This is an internal method used to sync player data.

      Parameters:
      player - the RuneLite player object