Beta
Provides the functionality for registering custom world clocks. World clocks can only be registered during the system startup event.
export class WorldClockRegistry { private constructor(); registerClock(name: string): void;} Copy
export class WorldClockRegistry { private constructor(); registerClock(name: string): void;}
Private
The name that represents this world clock. Must have a namespace and use only valid identifier characters. (e.g., 'mypack:my_clock').
Registers a new custom world clock. Must be called during the system startup event.
early-execution-allowed - This function can be called in early-execution mode.
This function can throw errors.
WorldClockInvalidRegistryError
WorldClockRegistrationError
WorldClockReloadNewWorldClockError
Provides the functionality for registering custom world clocks. World clocks can only be registered during the system startup event.
Source