replace

abstract fun replace(from: Material, to: Material)

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

Parameters

from

The material to replace.

to

The material to replace with.