Class ScoreboardIdentityBeta

Contains an identity of the scoreboard item.

Hierarchy

  • ScoreboardIdentity

Constructors

Properties

displayName: string

Remarks

Returns the player-visible name of this identity.

id: number

Remarks

Identifier of the scoreboard identity.

Remarks

Type of the scoreboard identity.

Methods

  • Returns Entity

    Remarks

    If the scoreboard identity is an entity or player, returns the entity that this scoreboard item corresponds to.

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

    Throws

    This function can throw errors.

  • Parameters

    Returns number

    Score value.

    Remarks

    Gets the current score for this participant based on an objective.

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

    Throws

    This function can throw errors.

  • Parameters

    Returns boolean

    Remarks

    Removes this participant from an objective.

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

    Throws

    This function can throw errors.

  • Parameters

    Returns boolean

    Remarks

    Sets a score for this participant for a particular objective.

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

    Throws

    This function can throw errors.