The WorldClockRegistry class in @minecraft/server.
Class in @minecraft/server
import { WorldClockRegistry } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Methods
Section titled “Methods”registerClock
Section titled “registerClock”registerClock(name: string, registrationOptions?: WorldClockRegistrationOptions): void;Parameters
namestringregistrationOptionsoptionalWorldClockRegistrationOptions