removeBlock

open fun removeBlock(@NotNull location: @NotNull 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(@NotNull location: @NotNull Location, @Nullable source: @Nullable 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(@NotNull location: @NotNull Location, @Nullable source: @Nullable 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(@NotNull location: @NotNull Location, @Nullable source: @Nullable Any, playSound: Boolean, showParticles: Boolean): Boolean

Deprecated

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

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.

playSound

If block breaking sounds should be played.

showParticles

If block breaking particles should be displayed.