UNPKG

@nxg-org/mineflayer-physics-util

Version:

Provides functionality for more accurate entity and projectile tracking.

25 lines (24 loc) 594 B
import { AABB } from "@nxg-org/mineflayer-util-plugin"; import { Vec3 } from "vec3"; export declare enum PlayerPoses { STANDING = 0, FALL_FLYING = 1, SLEEPING = 2, SWIMMING = 3, SPIN_ATTACK = 4,// dunno SNEAKING = 5, LONG_JUMPING = 6, DYING = 7 } /** * From minecraft's Player.java file. */ type PlayerPoseContext = { [key in PlayerPoses]: { width: number; height: number; }; }; export declare const playerPoseCtx: PlayerPoseContext; export declare function getCollider(entityPose: PlayerPoses, middleBottomPos: Vec3): AABB; export {};