block

Adds a block to the level.

Return

this class, for chaining

Parameters

block

Level Block

Throws

If the block coordinate is not the same dimension as the level


fun block(block: Block, coordinate: Coordinate): LevelBuilder

Adds a block to the level.

Return

this class, for chaining

Parameters

block

Block

coordinate

Coordinate


fun block(block: Block, x: Int, y: Int): LevelBuilder

Adds a block to the level.

Return

this class, for chaining

Parameters

block

Block

x

X Coordinate

y

Y Coordinate

Throws

If the dimension is not 2D


fun block(block: Block, x: Int, y: Int, z: Int): LevelBuilder

Adds a block to the level.

Return

this class, for chaining

Parameters

block

Block

x

X Coordinate

y

Y Coordinate

z

Z Coordinate

Throws

If the dimension is not 3D


fun block(name: String, properties: Map<String, Any>, coordinate: Coordinate): LevelBuilder

Adds a block to the level.

Return

this class, for chaining

Parameters

name

Block Name

properties

Block Properties

coordinate

Block Coordinate


fun block(name: String, properties: Map<String, Any>, vararg coordinates: Coordinate): LevelBuilder

Adds a block to the level.

Return

this class, for chaining

Parameters

name

Block Name

properties

Block Properties

coordinates

Array of Block Coordinates


fun block(name: String, properties: Map<String, Any>, coordinates: Iterable<Coordinate>): LevelBuilder

Adds a block to the level.

Return

this class, for chaining

Parameters

name

Block Name

properties

Block Properties

coordinates

Iterable of Block Coordinates


fun block(name: String, coordinate: Coordinate): LevelBuilder
fun block(name: String, vararg coordinate: Coordinate): LevelBuilder

Adds a block with no properties to the level.

Return

this class, for chaining

Parameters

name

Block Name

coordinate

Block Coordinate


fun block(name: String, coordinates: Iterable<Coordinate>): LevelBuilder

Adds a block with no properties to the level.

Return

this class, for chaining

Parameters

name

Block Name

coordinates

Iterable of Block Coordinates