类 BlockExplodeAfterEventSignal实验性

管理与爆炸发生时的回调函数, 当爆炸影响到单个方块时触发。

Manages callbacks that are connected to when an explosion occurs, as it impacts individual blocks.

方法

  • 实验性

    参数

    返回 (arg0: BlockExplodeAfterEvent) => void

    添加一个回调函数,当爆炸发生时, 该回调函数会在爆炸影响到单个方块时被调用。

    Adds a callback that will be called when an explosion occurs, as it impacts individual blocks.

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

    This function can be called in early-execution mode.

  • 实验性

    参数

    返回 void

    移除一个回调函数,使其在爆炸发生时 不再被调用。

    Removes a callback from being called when an explosion occurs, as it impacts individual blocks.

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

    This function can be called in early-execution mode.