Script API - v1.26.30.25
    Preparing search index...

    The SelectionManager (accessible from the ExtensionContext) is responsible for the management of all @minecraft/server-editor.Selection objects, and provides the user the ability to create new @minecraft/server-editor.Selection objects for use within an extension.

    export class SelectionManager {
    private constructor();
    readonly entity: SelectionContainerEntity;
    readonly volume: SelectionContainerVolume;
    deselectBlocks(blockIdentifier: string): Promise<number>;
    generateManifest(): Promise<SelectionManifestData>;
    getCurrentManifest(): SelectionManifestData | undefined;
    replaceBlocks(fromBlockIdentifier: string, toBlockIdentifier: string): Promise<number>;
    }
    Index

    Constructors

    Properties

    Methods

    • Parameters

      • blockIdentifier: string

      Returns Promise<number>

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.

    • Parameters

      • fromBlockIdentifier: string
      • toBlockIdentifier: string

      Returns Promise<number>

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.