PluginBreak

class PluginBreak @JvmOverloads constructor(val block: Block, val normallyDrops: Boolean = true, val shouldSetToAir: Boolean = true) : BlockBreakContext(source)

The block is being broken by a plugin

Constructors

Link copied to clipboard
constructor(block: Block, normallyDrops: Boolean = true, shouldSetToAir: Boolean = true)

Properties

Link copied to clipboard
open override val block: Block

The block that is about to be broken.

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

Determines the default drop behavior of the context

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

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