-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathindex.d.ts
38 lines (33 loc) · 955 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import {Bot} from "mineflayer";
export function mineflayer(bot: Bot, settings: {
viewDistance?: number;
firstPerson?: boolean;
port?: number;
prefix?: string;
});
export function standalone(options: {
version: versions;
world: (x: number, y: number, z: number) => 0 | 1;
center?: Vec3;
viewDistance?: number;
port?: number;
prefix?: string;
});
export function headless(bot: Bot, settings: {
viewDistance?: number;
output?: string;
frames?: number;
width?: number;
height?: number;
logFFMPEG?: boolean;
jpegOption: any;
});
export const viewer: {
Viewer: any;
WorldView: any;
MapControls: any;
Entitiy: any;
getBufferFromStream: (stream: any) => Promise<Buffer>;
};
export const supportedVersions: versions[];
export type versions = '1.8.8' | '1.9.4' | '1.10.2' | '1.11.2' | '1.12.2' | '1.13.2' | '1.14.4' | '1.15.2' | '1.16.1' | '1.16.4' | '1.17.1' | '1.18.1';