类 EntityRemoveBeforeEventSignal实验性

Allows registration for an event that fires when an entity is being removed from the game (for example, unloaded, or a few seconds after they are dead.)

方法

  • 实验性

    参数

    返回 (arg0: EntityRemoveBeforeEvent) => void

    Returns a closure that can be used in subsequent unsubscribe operations.

    Will call your function every time an entity is being removed from the game.

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

    This function can be called in early-execution mode.

  • 实验性

    参数

    返回 void

    Unsubscribes your function from subsequent calls when an entity is being removed.

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

    This function can be called in early-execution mode.