Interface ItemUseCoordinates

Object used in some callbacks for coordinate set with side information and relative coordinates set.

interface ItemUseCoordinates {
    relative: Vector;
    side: number;
    vec?: Vector;
    x: number;
    y: number;
    z: number;
}

Hierarchy (view full)

Properties

Properties

relative: Vector

Relative coordinates, coordinates of the block to the specified side of current block.

side: number

Side of the block, one of the EBlockSide constants.

vec?: Vector

Exact touch point, absolute point coordinates. Used only in "ItemUse" callback.

x: number
y: number
z: number

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