类 PlayerPlaceBlockBeforeEvent实验性

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

层级 (查看完整内容)

属性

block: Block

Block impacted by this event.

cancel: boolean

If set to true, cancels the block place event.

dimension: Dimension

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

face: Direction

The face of the block that the new block is being placed on.

faceLocation: Vector3

Location relative to the bottom north-west corner of the block where the new block is being placed onto.

permutationBeingPlaced: BlockPermutation

The block permutation that is being placed.

player: Player

Player that is placing the block for this event.