Class: PlayerBreakBlockBeforeEvent
Contains information regarding an event before a player breaks a block.
Extends
Constructors
new PlayerBreakBlockBeforeEvent()
private
new PlayerBreakBlockBeforeEvent():PlayerBreakBlockBeforeEvent
Returns
Overrides
Properties
block
readonly
block:Block
Remarks
Block impacted by this event.
Inherited from
cancel
cancel:
boolean
Remarks
If set to true, cancels the block break event.
dimension
readonly
dimension:Dimension
Remarks
Dimension that contains the block that is the subject of this event.
Inherited from
itemStack?
optional
itemStack:ItemStack
Remarks
The item stack that is being used to break the block, or undefined if empty hand.
player
readonly
player:Player
Remarks
Player breaking the block for this event.