类 BlockComponentPlayerPlaceBeforeEvent实验性

表示玩家放置方块前的事件信息。

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

层级 (查看层级一览)

属性

block: Block

此事件影响的方块。

Block impacted by this event.

cancel: boolean

若为 true,则表示取消放置方块事件。

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 block face that was placed onto.

permutationToPlace: BlockPermutation

表示若事件未被取消,将要放置的方块组合。若设置为不同的方块组合,则将放置该组合。

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?: Player

表示正在放置该方块的玩家。

The player that is placing this block.