@minecraft
    Preparing search index...

    Class BlockVolumeBase

    Base type for BlockVolumes.

    Hierarchy (View Summary)

    Index

    Methods

    • Beta

      Parameters

      • count: number

        Number of closest positions to return

      • location: Vector3

        Position to measure distance from

      Returns 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

    • Beta

      Parameters

      • count: number

        Number of farthest positions to return

      • location: Vector3

        Position to measure distance from

      Returns 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