@minecraft
    正在准备搜索索引...

    接口 EntityHurtBeforeEventOptions实验性

    Contains optional parameters for registering an entity hurt before event.

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

    属性

    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.