Contains an identity of the scoreboard item.

Properties

Methods

Properties

displayName: string

Returns the player-visible name of this identity.

id: number

Identifier of the scoreboard identity.

Type of the scoreboard identity.

Methods

  • Returns Entity

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

    This function can throw errors.

  • Returns boolean

    Returns true if the ScoreboardIdentity reference is still valid.