@minecraft/server
    Preparing search index...

    Class WorldClockOnRestartBeforeEventBeta

    Contains information related to a WorldClock restarting.

    Index

    Properties

    Properties

    cancel: boolean

    If set to true, cancels the world clock restart event. This will keep the world clock at the maximum time value and prevent it from ticking forward.

    clock: WorldClock

    The world clock that is restarting.

    newTime: number

    The time that the world clock will be set to after it restarts. If not set, the world clock will be set to 0.

    Minimum Value: 0