@minecraft
    Preparing search index...

    Class CuboidBrushShape

    Base for creating new brush shapes

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • Optionalsettings: {
            depth?: number;
            enableHollowSettings?: boolean;
            height?: number;
            hideRotation?: boolean;
            hollow?: boolean;
            length?: number;
            maxLength?: number;
            minLength?: number;
            thickness?: number;
            uniform?: boolean;
            width?: number;
            xRotation?: number;
            yRotation?: number;
            zRotation?: number;
        }

      Returns CuboidBrushShape

      Constructs a new instance of the CuboidBrushShape class

    Accessors

    Methods

    • Parameters

      • OptionalcancelToken: { cancelled: boolean }

        Optional token to cancel the operation. Set cancelled to true to abort.

      • OptionalyieldInterval: number

        Number of blocks to process before yielding. Default is 10000.

      Returns Promise<RelativeVolumeListBlockVolume>

      Promise that resolves to the shape positions as Vector3 array.

      Asynchronously creates the shape, yielding control periodically to avoid timeouts. Use this for large shapes where createShape() may timeout.