Skip to main content

Class: BlockComponentPlayerPlaceBeforeEvent

Contains information regarding an event before a player places a block.

Extends

Constructors

new BlockComponentPlayerPlaceBeforeEvent()

private new BlockComponentPlayerPlaceBeforeEvent(): BlockComponentPlayerPlaceBeforeEvent

Returns

BlockComponentPlayerPlaceBeforeEvent

Overrides

BlockEvent . constructor

Properties

block

readonly block: Block

Remarks

Block impacted by this event.

Inherited from

BlockEvent . block


cancel

cancel: boolean

Remarks

If set to true, cancels the block place event.


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 placed onto.


permutationToPlace

permutationToPlace: BlockPermutation

Remarks

The block permutation that will be placed if the event is not cancelled. If set to a different block permutation, that permutation will be placed instead.


player?

optional readonly player: Player

Remarks

The player that is placing this block.