接口 EntityApplyDamageOptions实验性

Additional descriptions and metadata for a damage event.

interface EntityApplyDamageOptions {
    cause: EntityDamageCause;
    damagingEntity?: Entity;
}

属性

Underlying cause of the damage.

damagingEntity?: Entity

Optional entity that caused the damage.