类 EffectAddBeforeEventSignal实验性

管理当效果被添加到实体时连接的回调函数。

Manages callbacks that are connected to when an effect is added to an entity.

方法

  • 实验性

    参数

    返回 (arg0: EffectAddBeforeEvent) => void

    添加一个回调函数,当效果被添加到实体时会调用该回调函数。 *

    • Adds a callback that will be called when an effect is added
    • to an entity.

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

    This function can be called in early-execution mode.

  • 实验性

    参数

    返回 void

    移除一个回调函数,使其不再在效果被添加到实体时调用。 * Removes a callback from being called when an effect is added

    • to an entity. 无法在只读模式下调用此函数,详见 WorldBeforeEvents

    This function can be called in early-execution mode.