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/classes/BlockComponentRegistry.md.

Class: BlockComponentRegistry

block component

Beta

用于注册方块自定义组件的注册表类。

Registry class for block custom components.

Methods

registerCustomComponent()

registerCustomComponent(name, customComponent): void

Early Execution Beta

Parameters

name

string

customComponent

BlockCustomComponent

Returns

void

Remarks

Throws

This function can throw errors.

BlockCustomComponentAlreadyRegisteredError

BlockCustomComponentReloadNewComponentError

BlockCustomComponentReloadNewEventError

BlockCustomComponentReloadVersionError

CustomComponentInvalidRegistryError

EngineError

NamespaceNameError

同领域相关