@nxg-org/mineflayer-tracker
Version:
Provides functionality for more accurate entity and projectile tracking.
22 lines (21 loc) • 1.17 kB
TypeScript
import { AABB } from "@nxg-org/mineflayer-util-plugin";
import md from "minecraft-data";
import { Entity } from "prismarine-entity";
export declare function makeSupportFeature(mcData: md.IndexedData): (feature: string) => boolean;
export declare function hash(x0: number, y0: number, z0: number, x1: number, y1: number, z1: number): string;
export declare function hashAABB(aabb: AABB): string;
export declare function isEntityUsingItem(entity: Entity): boolean;
export declare function whichHandIsEntityUsing(entity: Entity): "hand" | "off-hand";
export declare function whichHandIsEntityUsingBoolean(entity: Entity): boolean;
export declare function getStatusEffectNamesForVersion(supportFeature: ReturnType<typeof makeSupportFeature>): {
jumpBoostEffectName: string;
speedEffectName: string;
slownessEffectName: string;
dolphinsGraceEffectName: string;
slowFallingEffectName: string;
levitationEffectName: string;
};
export declare function getEnchantmentNamesForVersion(supportFeature: ReturnType<typeof makeSupportFeature>): {
depthStriderEnchantmentName: string;
};
export declare function getBetweenRectangle(src: AABB, dest: AABB): AABB;