The WorldClockOnRestartBeforeEvent class in @minecraft/server.
Class in @minecraft/server
import { WorldClockOnRestartBeforeEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”cancel
Section titled “cancel”cancel: boolean;read-only
readonly clock: WorldClock;Types
newTime
Section titled “newTime”newTime: number;Used by
Section titled “Used by”WorldClockOnRestartBeforeEventSignal.subscribe, WorldClockOnRestartBeforeEventSignal.unsubscribe