Class ScoreboardBeta

Contains objectives and participants for the scoreboard.

Hierarchy

  • Scoreboard

Constructors

Methods

  • Parameters

    • objectiveId: string
    • displayName: string

    Returns ScoreboardObjective

    Remarks

    Adds a new objective to the scoreboard.

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

    Throws

    This function can throw errors.

  • Parameters

    • displaySlotId: string

    Returns ScoreboardObjective

    Remarks

    Clears the objective that occupies a display slot.

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

    Throws

    This function can throw errors.

  • Parameters

    • objectiveId: string

      Identifier of the objective.

    Returns ScoreboardObjective

    Remarks

    Returns a specific objective (by id).

    Throws

    This function can throw errors.

  • Returns ScoreboardIdentity[]

    Remarks

    Returns all defined scoreboard identities.

    Throws

    This function can throw errors.

  • Parameters

    Returns number

    Score value.

    Remarks

    Returns a score given an objective and participant.

    Throws

    This function can throw errors.

  • Parameters

    Returns boolean

    Remarks

    Removes an objective from the scoreboard.

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

    Throws

    This function can throw errors.

  • Parameters

    Returns ScoreboardObjective

    Remarks

    Sets an objective into a display slot with specified additional display settings.

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

    Throws

    This function can throw errors.

  • Parameters

    Returns boolean

    Remarks

    Sets the score given a participant and objective.

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

    Throws

    This function can throw errors.