BlockManager
interface BlockManager
Functions
Link copied to clipboard
Gets the NovaBlockState at that location.
Link copied to clipboard
@Nullable
Gets the drops of the Nova block at that location or null if there is no Nova block there.
@Nullable
Gets the drops of the Nova block at that location as if it was mined with the given tool or null if there is no Nova block there.
@Nullable
Gets the drops of the Nova block at that location as if it was mined by source with the given tool or null if there is no Nova block there.
Link copied to clipboard
Checks if there is a NovaBlockState at that location.
Link copied to clipboard
open fun placeBlock(@NotNull location: @NotNull Location, @NotNull block: @NotNull NovaBlock, @Nullable source: @Nullable Any)
abstract fun placeBlock(@NotNull location: @NotNull Location, @NotNull block: @NotNull NovaBlock, @Nullable source: @Nullable Any, playSound: Boolean)
Places the block at that location.
open fun placeBlock(@NotNull location: @NotNull Location, @NotNull material: @NotNull NovaMaterial, @Nullable source: @Nullable Any)
abstract fun placeBlock(@NotNull location: @NotNull Location, @NotNull material: @NotNull NovaMaterial, @Nullable source: @Nullable Any, playSound: Boolean)
Places the material at that location.
Link copied to clipboard
Removes the Nova block at that location.
open fun removeBlock(@NotNull location: @NotNull Location, @Nullable source: @Nullable Any): Boolean
abstract fun removeBlock(@NotNull location: @NotNull Location, @Nullable source: @Nullable Any, breakEffects: Boolean): Boolean
open fun removeBlock(@NotNull location: @NotNull Location, @Nullable source: @Nullable Any, playSound: Boolean, showParticles: Boolean): Boolean
Removes the Nova block at that location as if it was destroyed by source.