fill

fun fill(level: Level, start: BlockPos, end: BlockPos, state: BlockState)

Fill a region with a given BlockState.

Parameters

level

level to modify

start

start position (inclusive)

end

end position (inclusive)

state

BlockState to place


fun fill(level: Level, start: BlockPos, end: BlockPos, block: Block)

Fill a region with a given Block type using its default state.

Parameters

level

level to modify

start

start position (inclusive)

end

end position (inclusive)

block

block type to place