Interface PointedData

Entity pointed data, which is used in Player.getPointed.

interface PointedData {
    block: Tile;
    entity: number;
    pos: BlockPosition;
    vec: Vector;
}

Properties

Properties

block: Tile

Pointed block data, if player doesn't look at the block, air block is returned.

entity: number

Pointed entity, if no entity's pointed, returns -1.

Pointed block position.

vec: Vector

Look vector.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.