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

    Class DebugBoxBeta

    A debug shape class that represents a box or cuboid.

    Hierarchy (View Summary)

    Index

    Constructors

    • Beta

      Parameters

      • location: Vector3

      Returns DebugBox

    Properties

    bound: Vector3

    The bounding box of the shape. The final box will be this bound multiplied by the shape's scale.

    color: RGB

    The color of the shape.

    hasDuration: boolean

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

    location: Vector3

    The location of the shape. For most shapes this 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 0 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 0 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.