@minecraft
    正在准备搜索索引...

    类 PlayerWaypoint实验性

    Waypoint that tracks a player's position. Extends EntityWaypoint with additional player-specific visibility rules such as hidden state and spectator mode.

    层级 (查看层级一览)

    索引

    构造函数

    属性

    color?: RGB

    Optional RGB color tint applied to the waypoint icon. If not specified, the waypoint uses its default color.

    entity: Entity

    The entity being tracked by this waypoint.

    This property can throw when used.

    InvalidWaypointError

    InvalidWaypointTextureSelectorError

    The visibility rules that control when the waypoint is shown based on the entity's state (e.g., sneaking, invisible, dead).

    This property can throw when used.

    InvalidWaypointError

    InvalidWaypointTextureSelectorError

    isEnabled: boolean

    Controls whether the waypoint is currently displayed on the player's screen. When disabled, the waypoint is hidden but remains valid.

    isValid: boolean

    Returns whether the waypoint is currently valid. A waypoint becomes invalid when its tracked entity is no longer valid.

    The PlayerVisibilityRules that control when the waypoint is shown based on the player's state (e.g., hidden, spectator mode, spectator viewing another spectator).

    This property can throw when used.

    InvalidWaypointError

    InvalidWaypointTextureSelectorError

    textureSelector: WaypointTextureSelector

    The WaypointTextureSelector that determines which icon texture is displayed for the waypoint based on distance or other criteria.

    方法

    • 世界修改

      返回 void

      Removes the waypoint from all locator bars it has been added to. This affects all players who have this waypoint in their locator bar.