iterate

fun BoundingBox.iterate(): Iterable<BlockPos>

Iterates the blocks of this box. The yielded BlockPos is reused between iterations, so copy it (.immutable) before storing.