UNPKG

@nxg-org/mineflayer-util-plugin

Version:

mineflayer utils for NextGEN mineflayer plugins.

23 lines (22 loc) 600 B
import { Bot } from "mineflayer"; import { Block } from "prismarine-block"; import { Vec3 } from "vec3"; import { Intersection } from "./iterators"; type Iteration = { x: number; y: number; z: number; face: number; }; type BlockAndIterations = { block: Block | null; iterations: Iteration[]; intersect?: Intersection; }; export declare class InterceptFunctions { private bot; constructor(bot: Bot); check(from: Vec3, to: Vec3): BlockAndIterations; raycast(from: Vec3, direction: Vec3, range: number): BlockAndIterations; } export {};