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/WeatherChangeBeforeEventSignal.md.

Class: WeatherChangeBeforeEventSignal

event

Beta

Manages callbacks that are connected to before weather changing.

管理与天气变化前相关的回调。

Methods

subscribe()

subscribe(callback): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Tip

This closure is called with restricted-execution privilege.

Tip

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

Returns

Tip

Closure that is called with restricted-execution privilege.

Tip

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

(arg0) => void

Remarks

Adds a callback that will be called before weather changes.

添加一个回调,将在天气变化前调用。


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Tip

This closure is called with restricted-execution privilege.

Tip

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

Returns

void

Remarks

Removes a callback from being called before weather changes.

移除一个在天气变化前调用的回调。

同领域相关