ChunkEditor

interface ChunkEditor

Interface for editing Minecraft chunks with DSL support.

Provides methods to fill, replace blocks, and refresh chunks.

Properties

Link copied to clipboard
abstract val chunk: Chunk

The chunk being edited.

Functions

Link copied to clipboard
abstract fun fill(material: Material)

Fills the entire chunk with the specified material.

Link copied to clipboard
abstract fun refresh()

Refreshes the chunk to apply changes on the client side.

Link copied to clipboard
abstract fun replace(from: Material, to: Material)

Replaces all blocks of one material with another material in the chunk.