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

    类 CuboidBrushShape

    Base for creating new brush shapes

    层级 (查看层级一览)

    索引

    构造函数

    • 参数

      • 可选settings: {
            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;
        }

      返回 CuboidBrushShape

      Constructs a new instance of the CuboidBrushShape class

    访问器

    方法

    • 参数

      • 可选cancelToken: { cancelled: boolean }

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

      • 可选yieldInterval: number

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

      返回 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.