The WorldClock class in @minecraft/server.
Class in @minecraft/server
import { WorldClock } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”isPaused
Section titled “isPaused”isPaused: boolean;read-only
readonly name: string;time: number;timeMarkers
Section titled “timeMarkers”read-only
readonly timeMarkers: TimeMarker[];Types
Methods
Section titled “Methods”addTimeMarker
Section titled “addTimeMarker”addTimeMarker(timeMarkerOptions: TimeMarkerOptions): void;Parameters
timeMarkerOptionsTimeMarkerOptions
Types
removeTimeMarker
Section titled “removeTimeMarker”removeTimeMarker(timeMarker: string | TimeMarker): void;Parameters
timeMarkerstring | TimeMarker
Types
rewindTo
Section titled “rewindTo”rewindTo(timeMarker: string | TimeMarker): void;Parameters
timeMarkerstring | TimeMarker
Types
set(timeMarker: string | TimeMarker): void;Parameters
timeMarkerstring | TimeMarker
Types
skipTo
Section titled “skipTo”skipTo(timeMarker: string | TimeMarker): void;Parameters
timeMarkerstring | TimeMarker
Types
Used by
Section titled “Used by”World.getClock, WorldClockOnPausedAfterEvent.clock, WorldClockOnRestartBeforeEvent.clock, WorldClockOnResumedAfterEvent.clock, WorldClockOnTimeMarkerAfterEvent.clock, WorldClockOnTimeModifiedAfterEvent.clock