is Facing Block
fun Entity.isFacingBlock(eyes: Vec3 = this.eyePosition, targetPoint: Vec3, blockPos: BlockPos, expectedSide: Direction? = null, expectedMaxRange: Double? = null): Boolean
Allows you to check if a point is behind a wall