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

Interface: EntityHurtBeforeEventOptions

event entity

Beta

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

Contains optional parameters for registering an entity hurt before event.

Properties

allowedDamageCauses?

optional allowedDamageCauses?: EntityDamageCause[]

Beta

Remarks

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

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


entityFilter?

optional entityFilter?: EntityFilter

Beta

Remarks

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

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

同领域相关