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

    类 BlockVolumeBase

    Base type for BlockVolumes.

    层级 (查看层级一览)

    索引

    方法

    • 实验性

      参数

      • count: number

        Number of closest positions to return

      • location: Vector3

        Position to measure distance from

      返回 Vector3[]

      Returns a list of block positions within the volume that are closest to a given location, sorted by distance (nearest first)

      This function can throw errors.

      ArgumentOutOfBoundsError

    • 实验性

      参数

      • count: number

        Number of farthest positions to return

      • location: Vector3

        Position to measure distance from

      返回 Vector3[]

      Returns a list of block positions within the volume that are farthest from a given location, sorted by distance (farthest first)

      This function can throw errors.

      ArgumentOutOfBoundsError