@minecraft/server
    Preparing search index...

    Class ListBlockVolumeBeta

    Volume composed of an unordered container of unique block locations.

    Hierarchy (View Summary)

    Index

    Constructors

    • Beta

      Parameters

      • locations: Vector3[]

        Initial array of block locations that ListBlockVolume will be constructed with.

      Returns ListBlockVolume

      Creates a new instance of ListBlockVolume.

    Methods

    • Beta

      Parameters

      • locations: Vector3[]

        Array of block locations to be inserted into container.

      Returns void

      Insert block locations into container.

    • Beta

      Returns number

      Return the capacity (volume) of the BlockVolume (WDH)

    • Beta

      Returns Vector3

      Get the largest corner position of the volume (guaranteed to be >= min)

      This function can throw errors.

    • Beta

      Returns Vector3

      Get the smallest corner position of the volume (guaranteed to be <= max)

      This function can throw errors.

    • Beta

      Parameters

      Returns boolean

      Check to see if a given world block location is inside a BlockVolume

    • Beta

      Parameters

      • locations: Vector3[]

        Array of block locations to be removed from container.

      Returns void

      Remove block locations from container.

    • Beta

      Parameters

      • delta: Vector3

        Amount of blocks to move by

      Returns void

      Move a BlockVolume by a specified amount