For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/ExplosionBeforeEventSignal.md.

Class: ExplosionBeforeEventSignal

event

Beta

管理与爆炸发生前相关的回调。

Manages callbacks that are connected to before an explosion occurs.

Methods

subscribe()

subscribe(callback): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Tip

此闭包以受限执行权限被调用。

Tip

This closure is called with restricted-execution privilege.

Returns

Tip

以受限执行权限被调用的闭包。

Tip

Closure that is called with restricted-execution privilege.

(arg0) => void

Remarks

添加一个回调,将在爆炸发生前被调用。该回调可以选择性更改或取消爆炸行为。

Adds a callback that will be called when before an explosion occurs. The callback can optionally change or cancel explosion behavior.


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Tip

此闭包以受限执行权限被调用。

Tip

This closure is called with restricted-execution privilege.

Returns

void

Remarks

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

Removes a callback from being called from before when an explosion would occur.

同领域相关