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

    类 BrushShape抽象

    Base for creating new brush shapes

    层级 (查看层级一览)

    索引

    构造函数

    访问器

    方法

    • 参数

      • 可选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.

    • 返回 number

      Estimated block count

      Returns a mathematical estimate of the number of blocks in the shape. Used for UI display and validation before shape creation.