placeBlock

open fun placeBlock(@NotNull location: @NotNull Location, @NotNull block: @NotNull 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(@NotNull location: @NotNull Location, @NotNull block: @NotNull NovaBlock, @Nullable source: @Nullable 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(@NotNull location: @NotNull Location, @NotNull block: @NotNull NovaBlock, @Nullable source: @Nullable 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(@NotNull location: @NotNull Location, @NotNull material: @NotNull NovaMaterial)

Deprecated

Use placeBlock instead.

Places the material at that location.

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(@NotNull location: @NotNull Location, @NotNull material: @NotNull NovaMaterial, @Nullable source: @Nullable Any)

Deprecated

Use placeBlock instead.

Places the material at that location.

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(@NotNull location: @NotNull Location, @NotNull material: @NotNull NovaMaterial, @Nullable source: @Nullable Any, playSound: Boolean)

Deprecated

Use placeBlock instead.

Places the material at that location.

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.