This repository has been archived by the owner on Jan 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
117 lines (117 loc) · 3.3 KB
/
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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import { obbBlock, obePlayer, obuBoundingBox, obeEntity, obiItemStack, obLocation, obuVector, obeItem, obcCommandSender, obOfflinePlayer } from '../../../dict/classes';
import { ValidEntityType, ValidMaterial } from './minecraft';
declare type HasBoundingBox = obuBoundingBox | SerialBoundingBox | IsPhysical;
declare type HasItemStack = obiItemStack | SerialItemStack | IsPhysical;
declare type HasLocation = obLocation | SerialLocation | IsPhysical;
declare type HasVector = obuVector | SerialVector | HasLocation;
declare type IsContainer = obbBlock | IsEntity | obiItemStack | SerialEntity | SerialItemStack;
declare type IsEntity = obeEntity | obeItem | obePlayer | obOfflinePlayer;
declare type IsPhysical = obbBlock | IsEntity | SerialEntity;
declare type SerialBoundingBox = {
class: 'BoundingBox';
min: SerialVector;
max: SerialVector;
};
declare type SerialEntity = {
class: 'Entity';
location: SerialLocation;
nbt: SerialNBTTagCompound;
type: keyof typeof ValidEntityType;
uuid: string;
};
declare type SerialItemStack = {
amount: number;
class: 'ItemStack';
nbt: SerialNBTTagCompound;
type: keyof typeof ValidMaterial;
};
declare type SerialLocation = {
class: 'Location';
pitch: number;
world: string;
x: number;
y: number;
yaw: number;
z: number;
};
declare type SerialVector = {
class: 'Vector';
x: number;
y: number;
z: number;
};
declare type SerialNBTTagCompound = {
class: 'NBTTagCompound';
value: {
[x: string]: SerialNBTTag;
};
};
declare type SerialNBTTag = {
class: 'NBTTagByte';
value: number;
} | {
class: 'NBTTagByteArray';
value: number[];
} | {
class: 'NBTTagCompound';
value: {
[x: string]: SerialNBTTag;
};
} | {
class: 'NBTTagDouble';
value: number;
} | {
class: 'NBTTagFloat';
value: number;
} | {
class: 'NBTTagInt';
value: number;
} | {
class: 'NBTTagIntArray';
value: number[];
} | {
class: 'NBTTagList';
value: SerialNBTTag[];
} | {
class: 'NBTTagLong';
value: number;
} | {
class: 'NBTTagLongArray';
value: number[];
} | {
class: 'NBTTagShort';
value: number;
} | {
class: 'NBTTagString';
value: string;
};
declare type MantleParse = {
(object: SerialBoundingBox): obuBoundingBox;
(object: SerialEntity): obeEntity;
(object: SerialItemStack): obiItemStack;
(object: SerialLocation): obLocation;
(object: SerialVector): obuVector;
<X>(object: X): X;
};
declare type MantleSerialize = {
(object: obuBoundingBox): SerialBoundingBox;
(object: IsEntity): SerialEntity;
(object: obiItemStack): SerialItemStack;
(object: obLocation): SerialLocation;
(object: obuVector): SerialVector;
<X>(object: X): X;
};
export declare const Main: {
boundingBox(arg1: HasBoundingBox): obuBoundingBox;
data(arg1: IsContainer, arg2?: string): any;
dist(arg1: HasVector, arg2: HasVector, arg3?: boolean): number;
drop(arg1: HasLocation, arg2: HasItemStack, arg3?: boolean): void;
itemStack(arg1: HasItemStack): obiItemStack;
location(arg1: any): obLocation;
parse: MantleParse;
player(arg1: string): obOfflinePlayer;
select(arg1?: string, arg2?: obcCommandSender): obeEntity[];
serialize: MantleSerialize;
vector(arg1: HasVector): obuVector;
};
export {};