Destroyed

The block has been destroyed for another reason, such as a lever dropping because the block it was attached to was broken. It is not really documented exactly when the event that this relies on is actually fired for some reason.

Unfortunate quirk of Paper/Spigot/Bukkit/Mojang that this is needed.

See BlockDestroyEvent for more details

Constructors

Link copied to clipboard
constructor(event: BlockDestroyEvent)

Properties

Link copied to clipboard
open override val block: @NotNull Block

The block that is about to be broken.

Link copied to clipboard
Link copied to clipboard
open override val normallyDrops: Boolean = true

Determines the default drop behavior of the context

Link copied to clipboard
@get:JvmName(name = "shouldSetToAir")
open val shouldSetToAir: Boolean

If true, the block will be set to air after the Pylon data is removed