For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-editor/classes/SelectionManager.md.

Class: SelectionManager

Beta

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.

Properties

entity

实验性

readonly entity: SelectionContainerEntity

Beta


volume

实验性

readonly volume: SelectionContainerVolume

Beta

Methods

deselectBlocks()

deselectBlocks(blockIdentifier): Promise<number>

World Mutation Beta

Parameters

blockIdentifier

string

Returns

Promise<number>

Remarks


generateManifest()

generateManifest(): Promise<SelectionManifestData>

World Mutation Beta

Returns

Promise<SelectionManifestData>

Remarks


getCurrentManifest()

getCurrentManifest(): SelectionManifestData | undefined

World Mutation Beta

Returns

SelectionManifestData | undefined

Remarks


replaceBlocks()

replaceBlocks(fromBlockIdentifier, toBlockIdentifier): Promise<number>

World Mutation Beta

Parameters

fromBlockIdentifier

string

toBlockIdentifier

string

Returns

Promise<number>

Remarks