@minecraft/server
    Preparing search index...

    Class ScoreboardIdentityBeta

    Contains an identity of the scoreboard item.

    Index

    Properties

    Methods

    Properties

    displayName: string

    Returns the player-visible name of this identity.

    id: number

    Identifier of the scoreboard identity.

    isValid: boolean

    Returns true if the ScoreboardIdentity reference is still valid.

    Type of the scoreboard identity.

    Methods

    • Beta

      Returns undefined | Entity

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

      This function can throw errors.