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

    接口 EntityHurtAfterEventOptions实验性

    Contains optional parameters for registering an entity hurt after event.

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

    属性

    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.