Script API - v1.26.30.28
    Preparing search index...

    Debug Drawing class used to allow adding and removing wireframe shapes in world space.

    export class DebugDrawer {
    private constructor();
    addShape(shape: DebugShape, dimension?: minecraftserver.Dimension): void;
    removeAll(): void;
    removeShape(shape: DebugShape): void;
    }
    Index

    Constructors

    Methods

    • Parameters

      • shape: DebugShape

        The debug shape to be added. Should be of type DebugBox, DebugLine, DebugCircle, DebugSphere, DebugArrow or DebugText.

      • Optionaldimension: Dimension

      Returns void

      Adds a new debug shape to the world.

      This function can't be called in early-execution mode.

    • Returns void

      Removes all debug shapes from the world.

      This function can't be called in early-execution mode.

    • Parameters

      Returns void

      Removes an instance of a debug shape from the world. This is equivalent to calling remove on the shape itself.

      This function can't be called in early-execution mode.