@minecraft
    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

    • World mutation Early execution

      Parameters

      • callback: (arg0: ShutdownEvent) => void

        Function callback that is called when this event fires. This closure is called with restricted-execution privilege.

      Returns (arg0: ShutdownEvent) => void

      Closure that is called with restricted-execution privilege.

      Adds a new subscriber callback to this event.

    • World mutation Early execution

      Parameters

      • callback: (arg0: ShutdownEvent) => void

        Function closure that was previously passed to the subscribe method. This closure is called with restricted-execution privilege.

      Returns void

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