removeBlock

open fun removeBlock(location: Location): Boolean

Removes the Nova block at that location.

Return

If there was a Nova block at that location and the removal was successful.

Parameters

location

The location of the block to remove.


open fun removeBlock(location: Location, source: Any): Boolean

Removes the Nova block at that location as if it was destroyed by source.

Return

If there was a Nova block at that location and the removal was successful.

Parameters

location

The location of the block to remove.

source

The source of the block removal.


abstract fun removeBlock(location: Location, source: Any, breakEffects: Boolean): Boolean

Removes the Nova block at that location as if it was destroyed by source.

Return

If there was a Nova block at that location and the removal was successful.

Parameters

location

The location of the block to remove.

source

The source of the block removal.

breakEffects

If block breaking effects should be played.


open fun removeBlock(location: Location, source: Any, playSound: Boolean, showParticles: Boolean): Boolean

Deprecated

Removes the Nova block at that location as if it was destroyed by source.

Return

If there was a Nova block at that location and the removal was successful.

Deprecated

Break sound and particles are not independent from one another. Use removeBlock instead.

Parameters

location

The location of the block to remove.

source

The source of the block removal.

playSound

If block breaking sounds should be played.

showParticles

If block breaking particles should be displayed.