setBlock

abstract fun setBlock(x: Int, y: Int, z: Int, block: BlockState, flags: BlockChangeFlags): Boolean

Sets the block at the given coordinates to the given block.

Return

true if the block was set, false otherwise

Parameters

x

the X coordinate

y

the Y coordinate

z

the Z coordinate

block

the block

flags

the flags to use when updating the block


abstract fun setBlock(position: Vec3i, block: BlockState, flags: BlockChangeFlags): Boolean

Sets the block at the given position to the given block.

Return

true if the block was set, false otherwise

Parameters

position

the position

block

the block

flags

the flags to use when updating the block