Contains optional parameters for registering an entity hurt before event.
export interface EntityHurtBeforeEventOptions { allowedDamageCauses?: EntityDamageCause[]; entityFilter?: EntityFilter;} Copy
export interface EntityHurtBeforeEventOptions { allowedDamageCauses?: EntityDamageCause[]; entityFilter?: EntityFilter;}
Optional
If this value is set, this event will only fire for damage causes that match.
If this value is set, this event will only fire for entities that match.
Contains optional parameters for registering an entity hurt before event.
Source