Skip to main content

Class: BlockComponentPlayerInteractEvent

Contains information regarding a specific block being interacted with.

Extends

Constructors

new BlockComponentPlayerInteractEvent()

private new BlockComponentPlayerInteractEvent(): BlockComponentPlayerInteractEvent

Returns

BlockComponentPlayerInteractEvent

Overrides

BlockEvent . constructor

Properties

block

readonly block: Block

Remarks

Block impacted by this event.

Inherited from

BlockEvent . block


dimension

readonly dimension: Dimension

Remarks

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

Inherited from

BlockEvent . dimension


face

readonly face: Direction

Remarks

The block face that was interacted with.


faceLocation?

optional readonly faceLocation: Vector3

Remarks

Location relative to the bottom north-west corner of the block that the player interacted with.


player?

optional readonly player: Player

Remarks

The player that interacted with this block.