Contains optional parameters for registering an entity hurt after event.

interface EntityHurtAfterEventOptions {
    allowedDamageCauses?: EntityDamageCause[];
    entities?: Entity[];
    entityFilter?: EntityFilter;
    entityTypes?: string[];
}

Properties

allowedDamageCauses?: EntityDamageCause[]

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

entities?: Entity[]

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

entityFilter?: EntityFilter

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

entityTypes?: string[]

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