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
实验性
readonlyentity:SelectionContainerEntity
Beta
volume
实验性
readonlyvolume: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>
