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

Class: DataDrivenEntityTriggerAfterEvent

event entity

Beta

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

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

Properties

entity

readonly entity: Entity

Beta

Remarks

触发事件的实体。

Entity that the event triggered on.


eventId

readonly eventId: string

Beta

Remarks

正在触发的数据驱动事件的名称。

Name of the data driven event being triggered.

Methods

getModifiers()

getModifiers(): DefinitionModifier[]

Beta

Returns

DefinitionModifier[]

Remarks

一个可更新的组件状态修改列表,是此触发事件的效果。

An updateable list of modifications to component state that are the effect of this triggered event.

同领域相关