类 EntityLoadAfterEventSignal实验性

Registers a script-based event handler for handling what happens when an entity loads.

方法

  • 实验性

    参数

    返回 (arg0: EntityLoadAfterEvent) => void

    Method to register an event handler for what happens when an entity loads.

    无法在只读模式下调用此函数,详见 WorldBeforeEvents

    This function can be called in early-execution mode.

  • 实验性

    参数

    • callback: (arg0: EntityLoadAfterEvent) => void

      Original function that was passed into the subscribe event, that is to be unregistered.

    返回 void

    Unregisters a method that was previously subscribed to the subscription event.

    无法在只读模式下调用此函数,详见 WorldBeforeEvents

    This function can be called in early-execution mode.