Contains information regarding an event after a player breaks a block.

Hierarchy

Constructors

Properties

block: Block

Remarks

Block impacted by this event.

brokenBlockPermutation: BlockPermutation

Remarks

Returns permutation information about this block before it was broken.

dimension: Dimension

Remarks

Dimension that contains the block that is the subject of this event.

itemStackAfterBreak?: ItemStack

Remarks

The item stack that was used to break the block after the block was broken, or undefined if empty hand.

itemStackBeforeBreak?: ItemStack

Remarks

The item stack that was used to break the block before the block was broken, or undefined if empty hand.

player: Player

Remarks

Player that broke the block for this event.