-
Notifications
You must be signed in to change notification settings - Fork 0
/
gobal.d.ts
93 lines (88 loc) · 2.8 KB
/
gobal.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import * as Server from "./node_modules/@minecraft/server/index";
import * as Ui from "./node_modules/@minecraft/server-ui/index";
declare module "@minecraft/server" {
interface Player {
threwTridentAt: number;
lastExplosionTime: number;
blockData: any[];
blacklistMsgWarn: number;
lastTouchWater: number;
lastItemUsed: number;
lastTouchGround: number;
lastOpTry: number;
lastGliding: number;
lastBlockPlace: number;
lastTeleportTime: number;
lastSpeedSkipCheck: number;
lastVelLog: number;
lastGlidingFire: number;
lastClip: number;
lastApplyDamage: number;
backClip: number;
lastSafePos: Vector3;
beforeClip: number;
lastBreakSolid: number;
verifyTimer: number;
verifyClickSpeed: number;
verifying: boolean;
notVerified: boolean;
tryVerify: number;
verified: boolean;
lastSelectSlot: number;
lastTouchBlock: number;
lastTouchBlockId: string;
spawnTime: number;
lastXZLogged: number;
lastVelocity: number;
lastVelObject: Vector3;
lastLocObject: Vector3;
pingTick: number;
perfectMove: number;
lastTouchEntity: number;
lastNonGlidingPoint: Vector3;
isSpawning: boolean;
// Nah
optag: (tag:"op") => string;
}
interface World {
antiBotEnabled: boolean;
sendMsg: (...arg: (string | RawText)[]) => void;
}
}
declare global {
var console: Console;
interface Console {
log: (...arg: any) => void;
error: (...arg: any) => void;
warn: (...arg: any) => void;
}
interface String {
latinise: () => string;
latinize: () => string;
isLatin: () => boolean;
}
// For the unstable thingyinterface WritableStream<T> {
interface WritableStream<T> {
write(chunk: T): void;
close(): void;
abort(reason?: any): void;
}
interface ReadableStream<T> {
read(): T | null;
cancel(reason?: any): void;
}
interface Transformer<T, U> {
start(controller: TransformStreamDefaultController<T, U>): void;
transform(chunk: T, controller: TransformStreamDefaultController<T, U>): void;
flush(controller: TransformStreamDefaultController<T, U>): void;
}
interface TransformStream<T, U> {
writable: WritableStream<T>;
readable: ReadableStream<U>;
}
interface TransformStreamDefaultController<T, U> {
enqueue(chunk: T): void;
terminate(): void;
error(reason?: any): void;
}
}