UNPKG

@nxg-org/mineflayer-util-plugin

Version:

mineflayer utils for NextGEN mineflayer plugins.

25 lines (24 loc) 753 B
import type { Block } from "prismarine-block"; import type { Vec3 } from "vec3"; import { AABB } from "../calcs/aabb"; export declare namespace AABBUtils { function getBlockAABB(block: Block, height?: number): AABB; function getBlockPosAABB(block: Vec3, height?: number): AABB; function getEntityAABB(entity: { type: string; position: Vec3; height: number; width?: number; }): AABB; function getPlayerAABB(entity: { position: Vec3; height?: number; width?: number; }): AABB; function getPlayerAABBRaw(position: Vec3, height?: number): AABB; function getEntityAABBRaw(entity: { position: Vec3; height: number; width?: number; }): AABB; }