setState

abstract fun setState(block: DesignBlock, state: BlockState)

Set the state of a block. While an image fill is pending, the engine adds no automatic source set entries to it.

Parameters

block

the block whose state should be set.

state

the new state to set.