Interface Player

  • All Superinterfaces:
    Actor, Node, Renderable

    public interface Player
    extends Actor
    Represents a player entity in the game.
    • Method Detail

      • getId

        int getId()
        Get the ID of the player
      • getCombatLevel

        int getCombatLevel()
        Description copied from interface: Actor
        Gets the combat level of the actor.
        Specified by:
        getCombatLevel in interface Actor
        the combat level
      • getPlayerComposition

        PlayerComposition getPlayerComposition()
        Gets the composition of this player.
        the composition
      • getPolygons

        Polygon[] getPolygons()
        Gets the polygons that make up the players model.
        the model polygons
      • getTeam

        int getTeam()
        Gets the current team cape team number the player is on.
        team number, or 0 if not on any team
      • isFriendsChatMember

        boolean isFriendsChatMember()
        Checks whether this player is a member of the same friends chat the local player.
        true if the player is a friends chat member, false otherwise
      • isFriend

        boolean isFriend()
        Checks whether this player is a friend of the local player.
        true if the player is a friend, false otherwise
      • isClanMember

        boolean isClanMember()
        Checks whether the player is a member of the same clan as the local player.
      • getOverheadIcon

        HeadIcon getOverheadIcon()
        Gets the displayed overhead icon of the player.
        the overhead icon
      • getSkullIcon

        SkullIcon getSkullIcon()
        Gets the displayed skull icon of the player. Only works on the local player.
        the skull icon