@minecraft/server
    Preparing search index...

    Class WorldInitializeBeforeEventSignal

    This class is deprecated and will be removed in 2.0.0.

    Manages callbacks that are run at the initialization of the scripting environment for a World. Do note that this event may run multiple times within a session in the case that the /reload command is used.

    Index

    Methods

    • Parameters

      Returns (arg0: WorldInitializeBeforeEvent) => void

      This function is deprecated and will be removed in 2.0.0.

      Adds a callback that will be called when the scripting environment is initialized for a World.

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

      This function can be called in early-execution mode.

    • Parameters

      Returns void

      This function is deprecated and will be removed in 2.0.0.

      Removes a callback from being called the scripting environment is initialized for a World.

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

      This function can be called in early-execution mode.