isUnobstructed

fun BlockPos.isUnobstructed(except: Entity? = null, box: AABB = FULL_BOX, predicate: Predicate<Entity> = Predicates.alwaysTrue()): Boolean

Checks whether the position is unobstructed for placing a block.

See also

EntityGetter.isUnobstructed