setBlock
abstract fun setBlock(block: Block, @KeyPattern.Value blockId: String, state: String?): Boolean(source)
Sets the block with blockId in place of the block. Mimic calls it only for empty blocks. Apply block physics as usual, so neighboring blocks are updated.
Return
false if the ID is unknown, the state is invalid, or the block can't be set.
Parameters
state
State of the block in the format of its provider, usually block state properties like [facing=north], or null for the default state. It is never blank. If the state is invalid, log a warning and don't set the block.