Skip to main content

Class: ItemComponentMineBlockEvent

Contains information regarding the mining of a block using an item.

Constructors

new ItemComponentMineBlockEvent()

private new ItemComponentMineBlockEvent(): ItemComponentMineBlockEvent

Returns

ItemComponentMineBlockEvent

Properties

block

readonly block: Block

Remarks

The block impacted by this event.


itemStack?

optional readonly itemStack: ItemStack

Remarks

The item stack used to mine the block.


minedBlockPermutation

readonly minedBlockPermutation: BlockPermutation

Remarks

The block permutation that was mined.


source

readonly source: Entity

Remarks

The entity that mined the block.