forEachSectionBlock

inline fun LevelChunk.forEachSectionBlock(sectionIndex: Int, mutable: BlockPos.MutableBlockPos = BlockPos.MutableBlockPos(), action: (BlockPos, BlockState) -> Unit)

Iterates all blocks in a specific section index and exposes world-space block positions.

The mutable instance is reused across callbacks for allocation-free chunk scanning.

See also

LevelChunk.getBlockState