Contains optional parameters for registering an entity hurt before event.

interface EntityHurtBeforeEventOptions {
    allowedDamageCauses?: EntityDamageCause[];
    entityFilter?: EntityFilter;
}

Properties

allowedDamageCauses?: EntityDamageCause[]

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

entityFilter?: EntityFilter

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