Class: PlayerInteractWithBlockBeforeEvent
Contains information regarding an event before a player interacts with a block.
Constructors
new PlayerInteractWithBlockBeforeEvent()
private
new PlayerInteractWithBlockBeforeEvent():PlayerInteractWithBlockBeforeEvent
Returns
PlayerInteractWithBlockBeforeEvent
Properties
block
readonly
block:Block
Remarks
The block that will be interacted with.
blockFace
readonly
blockFace:Direction
Remarks
The face of the block that is being interacted with.
cancel
cancel:
boolean
Remarks
If set to true the interaction will be cancelled.
faceLocation
readonly
faceLocation:Vector3
Remarks
Location relative to the bottom north-west corner of the block where the item is placed.
itemStack?
optional
readonly
itemStack:ItemStack
Remarks
The item stack that is being used in the interaction, or undefined if empty hand.
player
readonly
player:Player
Remarks
Source Player for this event.