The global block clipboard.

Accessors

  • get contentsSize(): Vector3

    The size of the contents of the global block clipboard.

    If the block clipboard is empty, this will be { x: -1, y: -1, z: -1 }.

    Returns Vector3

    { x: -1, y: -1, z: -1 }
    
  • get contentsSizeLimits(): Vector3

    The sizes of the chunks of the contents of this block clipboard.

    When the block clipboard is empty, this will be { x: 64, y: 128, z: 64 }.

    Returns Vector3

    { x: 64, y: 128, z: 64 }
    
  • get ids(): `andexdb:clipboard,${number},${number},${number}`[]

    The structure IDs of the contents of the global block clipboard.

    Returns `andexdb:clipboard,${number},${number},${number}`[]

  • get isEmpty(): boolean

    Whether the global block clipboard is empty.

    Returns boolean

Methods

  • Clears the contents of the global block clipboard.

    Returns void

  • Copies the specified area to the global block clipboard.

    Parameters

    • dimension: Dimension

      The dimension of the area to copy to the clipboard.

    • area: { from: Vector3; to: Vector3 }

      The area to copy to the clipboard.

    • Optionaloptions: StructureCreateOptions

      The options to copy the area to the clipboard with.

    • OptionalsizeLimits: Vector3 = ...

      The sizes of the chunks of the clipboard. Defaults to { x: 64, y: 128, z: 64 }.

    Returns void

  • Copies the specified range of blocks to the global block clipboard.

    Parameters

    Returns void

  • Throws an error because the global block clipboard cannot be deleted.

    Returns void

    Always, because the global block clipboard cannot be deleted.

  • Gets the structure at the specified indices in the clipboard contents.

    Parameters

    • indices: Vector3

      The indices to get the structure for.

    Returns undefined | Structure

    The structure at the specified indices in the clipboard contents, or undefined if no structure is found at the specified indices.

  • Gets the structure that contains the specified position in the clipboard contents.

    Parameters

    • position: Vector3

      The position to get the structure for.

    Returns undefined | Structure

    The structure that contains the specified position in the clipboard contents, or undefined if no structure is found containing the specified position.

  • Pastes the contents of this block clipboard.

    Parameters

    Returns Promise<void>

    A promise that resolves when the contents of the clipboard have been pasted.

    If the clipboard is empty.