Skip to content

@minecraft/server


@minecraft/server / BlockComponentRegistry

Class: BlockComponentRegistry ​

Defined in: @minecraft/server/index.d.ts:4607

Methods ​

registerCustomComponent() ​

registerCustomComponent(name, customComponent): void

Defined in: @minecraft/server/index.d.ts:4629

Parameters ​

name ​

string

customComponent ​

BlockCustomComponent

Returns ​

void

Remarks ​

This function can be called in early-execution mode.

Throws ​

This function can throw errors.

BlockCustomComponentAlreadyRegisteredError

BlockCustomComponentReloadNewComponentError

BlockCustomComponentReloadNewEventError

BlockCustomComponentReloadVersionError

CustomComponentInvalidRegistryError

minecraftcommon.EngineError

NamespaceNameError