Class ScoreboardObjectiveBeta

Contains objectives and participants for the scoreboard.

Hierarchy

  • ScoreboardObjective

Constructors

Properties

displayName: string

Remarks

Returns the player-visible name of this scoreboard objective.

Throws

This property can throw when used.

id: string

Remarks

Identifier of the scoreboard objective.

Throws

This property can throw when used.

Methods

  • Returns ScoreboardIdentity[]

    Remarks

    Returns all objective participant identities.

    Throws

    This function can throw errors.

  • Parameters

    Returns undefined | number

    Remarks

    Returns a specific score for a participant.

    Throws

    This function can throw errors.

  • Returns ScoreboardScoreInfo[]

    Remarks

    Returns specific scores for this objective for all participants.

    Throws

    This function can throw errors.

  • Parameters

    Returns boolean

    Remarks

    Returns if the specified identity is a participant of the scoreboard objective.

    Throws

    This function can throw errors.

  • Returns boolean

  • Parameters

    Returns boolean

    Remarks

    Removes a participant from this scoreboard objective.

    This function can't be called in read-only mode.

    Throws

    This function can throw errors.

  • Parameters

    Returns void

    Remarks

    Sets a score for a participant.

    This function can't be called in read-only mode.

    Throws

    This function can throw errors.