LuaChunkIterator

class LuaChunkIterator - sort
valid :: boolean [R] Is this object valid?
help() → string All methods, and properties that this object supports.

A chunk iterator can be used for iterating chunks coordinates of a surface.

The returned type is a table containing the chunk coordinates:

Example
for chunk in some_surface.get_chunks() do
  game.player.print("x: " .. chunk.x .. ", y: " .. chunk.y)
end