跳转至

BlockComponentPlayerInteractEvent

文档版本:1.21.0.24

BlockComponentPlayerInteractEvent类,扩展自BlockEvent。包含被玩家互动的方块的信息。

属性

face
read-only face: Direction;
faceDirection
该方块参与互动的面。
faceLocation
read-only faceLocation: Vector3 | undefined;
faceLocationVector3|undefined
玩家互动时点击的位置(以该方块底部西北角顶点为坐标原点)。
player
read-only player: Player | undefined;
playerPlayer|undefined
互动该方块的玩家。