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/ExtensionContext.md.

Class: ExtensionContext

Beta

The extension context is a native (C++) object created for each registered Editor Extension, when a player connection is established with the server. A registered extension activation or deactivation closure is accompanied by an [ExtensionContext] object, which provides a player specific, editor extension specific context. The Extension Context is the main interface to all the bound Editor Services. As more player services are added to the editor, they will be exposed through this object

Properties

afterEvents

实验性

readonly afterEvents: ExtensionContextAfterEvents

Beta

Remarks

Contains a set of events that are applicable to the editor player. Event callbacks are called in a deferred manner. Event callbacks are executed in read-write mode.


blockPalette

实验性

readonly blockPalette: BlockPaletteManager

Beta


blockUtilities

实验性

readonly blockUtilities: BlockUtilities

Beta


blockUtilityTasks

实验性

readonly blockUtilityTasks: BlockUtilityTasks

Beta


brushShapeManager

实验性

readonly brushShapeManager: BrushShapeManager

Beta


clipboardManager

readonly clipboardManager: ClipboardManager

Beta

Remarks

This is used to access the players Clipboard Manager and the main interface through which the player can create, modify and apply clipboard items


cursor

readonly cursor: Cursor

Beta

Remarks

This is used to access the players 3D block cursor and it's properties


exportManager

实验性

readonly exportManager: ExportManager

Beta


extensionInfo

实验性

readonly extensionInfo: Extension

Beta

Remarks

Contains information about the registered extension instance.


guidePlaneManager

实验性

readonly guidePlaneManager: GuidePlaneManager

Beta


minimapManager

实验性

readonly minimapManager: MinimapManager

Beta

Remarks

Manager for minimap functionality, providing interface for creating markers and controlling minimap displays.


player

readonly player: Player

Beta

Remarks

The current player which is the subject of the extension invocation


playtest

实验性

readonly playtest: PlaytestManager

Beta


selectionManager

readonly selectionManager: SelectionManager

Beta

Remarks

The instance of the players Selection Manager and the main interface through which the player can create/modify selections


settings

实验性

readonly settings: SettingsManager

Beta

Remarks

The instance of the players Settings Manager and the contract through which the settings for the player can be modified.


structureManager

实验性

readonly structureManager: EditorStructureManager

Beta


transactionManager

readonly transactionManager: TransactionManager

Beta

Remarks

The instance of the players Transaction Manager and the main interface through which the creator can create transaction records, and undo/redo previous transactions


widgetManager

实验性

readonly widgetManager: WidgetManager

Beta