Class: PlayerPlaceBlockBeforeEvent experimental
event player blockBeta
包含有关玩家放置方块之前的事件信息。
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
如果设置为 true,则取消方块放置事件。
Remarks
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 face of the block that the new block is being placed on.
faceLocation
readonlyfaceLocation:Vector3
Beta
相对于方块底部西北角的新方块放置位置。
Remarks
Location relative to the bottom north-west corner of the block where the new block is being placed onto.
permutationToPlace
readonlypermutationToPlace:BlockPermutation
Beta
如果事件未被取消,将放置的方块排列。
Remarks
The block permutation that will be placed if the event is not cancelled.
player
readonlyplayer:Player
Beta
放置此事件方块的玩家。
Remarks
Player that is placing the block for this event.
