Block Break Context
Information surrounding a block break event. Used to centralize block breaking logic so that BlockBreakEvent, BlockExplodeEvent, etc. can all be references by one interface rather than having to be dealt with individually.
Inheritors
Types
The block is being exploded as a result of another block exploding
The block is exploding (e.g. beds in the Nether/End, respawn anchors in the Overworld/End)
The block has been burned away by fire
The block is being forcefully broken by BlockStorage.deleteBlock
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.
The block is being exploded by an entity (e.g. a creeper or TNT)
The block has faded away (see BlockFadeEvent for more details)
The block is being broken by a player
The block is being broken by a plugin