chunk

abstract fun chunk(x: Int, z: Int, action: ChunkEditor.() -> Unit)

Edits a chunk at the specified coordinates.

Example:

world.edit {
chunk(0, 0) {
load()
// Chunk editing operations
}
}

Parameters

x

The chunk X coordinate

z

The chunk Z coordinate

action

The action to apply to the chunk

See also