@minecraft/debug-utilities
    Preparing search index...

    Class DebugArrowBeta

    The length of the arrow's head/tip.

    Hierarchy (View Summary)

    Index

    Constructors

    • Beta

      Parameters

      • location: Vector3 | DimensionLocation
      • endLocation: Vector3

      Returns DebugArrow

    Properties

    color: RGB

    The color of the shape.

    dimension: Dimension

    The dimension the shape is visible within. If the dimension is undefined, it will display in all dimensions.

    endLocation: Vector3

    The end location of the line segment. The final line will spawn between location and endLocation.

    hasDuration: boolean

    Returns true if the shape has a limited time span before being removed.

    headLength: number

    Adds a new debug shape to the world.

    headRadius: number

    The radius of the arrow's head/tip.

    headSegments: number

    The number of segments for the base circle of the arrow's head/tip (default: 4).

    location: Vector3

    The location of the shape. For most shapes the location is the centre of the shape, except DebugLine and DebugArrow where this represents the start point of the line.

    rotation: Vector3

    The rotation of the shape (Euler angles - [Pitch, Yaw, Roll]).

    scale: number

    The scale of the shape. This does not apply to DebugLine or DebugArrow.

    timeLeft?: number

    The time left (in seconds) until this shape is automatically removed. Returns undefined if the shape does not have a limited life-span.

    totalTimeLeft?: number

    The total initial time-span (in seconds) until this shape is automatically removed. Returns undefined if the shape does not have a limited life-span.

    Methods

    • Beta

      Returns void

      Removes this shape from the world. The shape can be re-added via the DebugDrawer's addShape method.

    • Beta

      Parameters

      • location: Vector3 | DimensionLocation

      Returns void

      Set the location and dimension of the shape. If the dimension is undefined, it will display in all dimensions. For most shapes the location is the centre of the shape, except DebugLine and DebugArrow where this represents the start point of the line.