Class: WorldClockRegistry experimental
worldBeta
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
WorldClockReloadNewWorldClockError
