Interface ProjectileHitTarget

Object containing hit coordinates and information about hit entity/block.

interface ProjectileHitTarget {
    coords: ItemUseCoordinates;
    entity: number;
    x: number;
    y: number;
    z: number;
}

Properties

Properties

Coordinates and side of the hit block or null if an entity was hit.

entity: number

If an entity was hit, entity unique ID, -1 otherwise.

x: number

Exact hit position x.

y: number

Exact hit position y.

z: number

Exact hit position z.

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