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/interfaces/EntityHurtAfterEventOptions.md.

Interface: EntityHurtAfterEventOptions

event entity

Beta

包含注册实体受伤后事件的可选参数。

Contains optional parameters for registering an entity hurt after event.

Properties

allowedDamageCauses?

optional allowedDamageCauses?: EntityDamageCause[]

Beta

Remarks

如果设置了此值,则仅当伤害原因匹配时才会触发此事件。

If this value is set, this event will only fire for damage causes that match.


entities?

optional entities?: Entity[]

Beta

Remarks

如果设置了此值,则仅当实体与此集合中的实体匹配时才会触发此事件。

If this value is set, this event will only fire for entities that match the entities within this collection.


entityFilter?

optional entityFilter?: EntityFilter

Beta

Remarks

如果设置了此值,则仅当实体匹配时才会触发此事件。

If this value is set, this event will only fire for entities that match.


entityTypes?

optional entityTypes?: string[]

Beta

Remarks

如果设置了此值,则仅当受影响的实体类型与此参数匹配时才会触发此事件。

If this value is set, this event will only fire if the impacted entities' type matches this parameter.

同领域相关