getExposureToExplosion

fun LivingEntity.getExposureToExplosion(source: Vec3, exclude: Collection<BlockPos>?, include: BlockPos?, maxBlastResistance: Float?, entityBoundingBox: AABB?): Float

Basically ServerExplosion.getSeenPercent but this method allows us to exclude blocks using exclude.

See also

ServerExplosion.getSeenPercent