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

Class: DataDrivenEntityTriggerAfterEventSignal

event entity

Beta

包含与数据驱动实体事件触发相关的事件注册信息——例如,鸡的 minecraft:ageable_grow_up 事件。

Contains event registration related to firing of a data driven entity event - for example, the minecraft:ageable_grow_up event on a chicken.

Methods

subscribe()

subscribe(callback, options?): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

options?

EntityDataDrivenTriggerEventOptions

Returns

(arg0) => void

Remarks

添加一个回调,将在数据驱动实体事件触发后被调用。

Adds a callback that will be called after a data driven entity event is triggered.


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Returns

void

Remarks

移除一个回调,使其在数据驱动实体事件触发后不再被调用。

Removes a callback that will be called after a data driven entity event is triggered.

同领域相关