Class: BlockComponentPlayerPlaceBeforeEvent
event player block componentBeta
包含有关玩家放置方块之前的事件信息。
Contains information regarding an event before a player places a block.
Extends
Properties
block
readonlyblock:Block
Beta
Remarks
当前世界中此事件所在位置的方块。
Block currently in the world at the location of this event.
Inherited from
cancel
cancel:
boolean
Beta
Remarks
如果设置为 true,则取消方块放置事件。
If set to true, cancels the block place event.
dimension
readonlydimension:Dimension
Beta
Remarks
包含此事件主体方块的维度。
Dimension that contains the block that is the subject of this event.
Inherited from
face
readonlyface:Direction
Beta
Remarks
放置时所朝向的方块面。
The block face that was placed onto.
permutationToPlace
permutationToPlace:
BlockPermutation
Beta
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?
readonlyoptionalplayer?:Player
Beta
Remarks
正在放置此方块的玩家。
The player that is placing this block.
