placeBlock

open fun placeBlock(location: Location, block: NovaBlock)

Places the block at that location.

Parameters

location

The location where the block should be placed.

block

The type of the block


open fun placeBlock(location: Location, block: NovaBlock, source: Any)

Places the block at that location.

Parameters

location

The location where the block should be placed.

block

The type of the block.

source

The source of this block placement. Could be a player, tile-entity or similar.


abstract fun placeBlock(location: Location, block: NovaBlock, source: Any, playSound: Boolean)

Places the block at that location.

Parameters

location

The location where the block should be placed.

block

The type of the block.

source

The source of this block placement. Could be a player, tile-entity or similar.

playSound

If block breaking sounds should be placed.


open fun placeBlock(location: Location, material: NovaMaterial)

Deprecated

Places the material at that location.

Deprecated

Use placeBlock instead.

Parameters

location

The location where the block should be placed.

material

The material of the block.

Throws

If the material is not a block.


open fun placeBlock(location: Location, material: NovaMaterial, source: Any)

Deprecated

Places the material at that location.

Deprecated

Use placeBlock instead.

Parameters

location

The location where the block should be placed.

material

The material of the block.

source

The source of this block placement. Could be a player, tile-entity or similar.

Throws

If the material is not a block.


abstract fun placeBlock(location: Location, material: NovaMaterial, source: Any, playSound: Boolean)

Deprecated

Places the material at that location.

Deprecated

Use placeBlock instead.

Parameters

location

The location where the block should be placed.

material

The material of the block.

source

The source of this block placement. Could be a player, tile-entity or similar.

playSound

If block breaking sounds should be placed.

Throws

If the material is not a block.