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

    类 EntityWaypoint实验性

    Waypoint that tracks an entity's position. The waypoint automatically updates as the entity moves and becomes invalid when the entity is removed.

    层级 (查看层级一览)

    索引

    构造函数

    属性

    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.

    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.