Interface Player

  • All Superinterfaces:
    Actor, Node, Renderable

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

      • getCombatLevel

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

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

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

        int getTeam()
        Gets the current team cape team number the player is on.
        Returns:
        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.
        Returns:
        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.
        Returns:
        true if the player is a friend, false otherwise
      • getOverheadIcon

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

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