接口 BlockHitInformation实验性

Contains more information for events where a block is hit.

interface BlockHitInformation {
    block: Block;
    face: Direction;
    faceLocation: Vector3;
}

属性

block: Block

Block that was hit.

face: Direction

Face of the block that was hit.

faceLocation: Vector3

Location relative to the bottom north-west corner of the block.