@minecraft/server
    Preparing search index...

    Class ShutdownBeforeEventSignal

    Provides an adaptable interface for callers to subscribe to an event that fires before the game world shuts down. This event occurs after players have left, but before the world has closed.

    Index

    Methods

    • Parameters

      • callback: (arg0: ShutdownEvent) => void

        Function callback that is called when this event fires.

      Returns (arg0: ShutdownEvent) => void

      Adds a new subscriber callback to this event.

      This function can't be called in read-only mode.

      This function can be called in early-execution mode.

    • Parameters

      • callback: (arg0: ShutdownEvent) => void

        Function closure that was previously passed to the subscribe method.

      Returns void

      Removes a subscriber callback previously subscribed to via the subscribe method.

      This function can't be called in read-only mode.

      This function can be called in early-execution mode.