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

Class: WorldClockRegistry experimental

world

Beta

Provides the functionality for registering custom world clocks. World clocks can only be registered during the system startup event.

Methods

registerClock()

registerClock(name): void

Early Execution Beta

Parameters

name

string

The name that represents this world clock. Must have a namespace and use only valid identifier characters. (e.g., 'mypack:my_clock').

Returns

void

Remarks

Registers a new custom world clock. Must be called during the system startup event.

Privilege

early-execution-allowed -

Throws

This function can throw errors.

WorldClockInvalidRegistryError

WorldClockRegistrationError

WorldClockReloadNewWorldClockError

同领域相关