BlockComponentPlayerInteractEvent¶
文档版本:1.21.60.21
BlockComponentPlayerInteractEvent类,扩展自BlockEvent。包含被玩家互动的方块的信息。
属性¶
face
face:Direction- 该方块参与互动的面。
faceLocation
faceLocation:Vector3|undefined- 玩家互动时点击的位置(以该方块底部西北角顶点为坐标原点)。
player
player:Player|undefined- 互动该方块的玩家。