bc-minecraft-bedrock-types 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -0
- package/README.md +7 -0
- package/lib/src/General/Boolean.d.ts +11 -0
- package/lib/src/General/Boolean.js +37 -0
- package/lib/src/General/Boolean.js.map +1 -0
- package/lib/src/General/Float.d.ts +11 -0
- package/lib/src/General/Float.js +19 -0
- package/lib/src/General/Float.js.map +1 -0
- package/lib/src/General/Integer.d.ts +9 -0
- package/lib/src/General/Integer.js +17 -0
- package/lib/src/General/Integer.js.map +1 -0
- package/lib/src/General/Json.d.ts +11 -0
- package/lib/src/General/Json.js +26 -0
- package/lib/src/General/Json.js.map +1 -0
- package/lib/src/General/String.d.ts +7 -0
- package/lib/src/General/String.js +20 -0
- package/lib/src/General/String.js.map +1 -0
- package/lib/src/General/include.d.ts +5 -0
- package/lib/src/General/include.js +19 -0
- package/lib/src/General/include.js.map +1 -0
- package/lib/src/Minecraft/Block.d.ts +70 -0
- package/lib/src/Minecraft/Block.js +126 -0
- package/lib/src/Minecraft/Block.js.map +1 -0
- package/lib/src/Minecraft/Coordinate.d.ts +9 -0
- package/lib/src/Minecraft/Coordinate.js +17 -0
- package/lib/src/Minecraft/Coordinate.js.map +1 -0
- package/lib/src/Minecraft/Selector.d.ts +126 -0
- package/lib/src/Minecraft/Selector.js +278 -0
- package/lib/src/Minecraft/Selector.js.map +1 -0
- package/lib/src/Minecraft/Xp.d.ts +16 -0
- package/lib/src/Minecraft/Xp.js +33 -0
- package/lib/src/Minecraft/Xp.js.map +1 -0
- package/lib/src/Minecraft/include.d.ts +4 -0
- package/lib/src/Minecraft/include.js +18 -0
- package/lib/src/Minecraft/include.js.map +1 -0
- package/lib/src/Modes/CameraShake.d.ts +3 -0
- package/lib/src/Modes/CameraShake.js +12 -0
- package/lib/src/Modes/CameraShake.js.map +1 -0
- package/lib/src/Modes/Clone.d.ts +3 -0
- package/lib/src/Modes/Clone.js +16 -0
- package/lib/src/Modes/Clone.js.map +1 -0
- package/lib/src/Modes/Difficulty.d.ts +3 -0
- package/lib/src/Modes/Difficulty.js +22 -0
- package/lib/src/Modes/Difficulty.js.map +1 -0
- package/lib/src/Modes/Fill.d.ts +3 -0
- package/lib/src/Modes/Fill.js +15 -0
- package/lib/src/Modes/Fill.js.map +1 -0
- package/lib/src/Modes/GameMode.d.ts +3 -0
- package/lib/src/Modes/GameMode.js +19 -0
- package/lib/src/Modes/GameMode.js.map +1 -0
- package/lib/src/Modes/LocateFeature.d.ts +3 -0
- package/lib/src/Modes/LocateFeature.js +24 -0
- package/lib/src/Modes/LocateFeature.js.map +1 -0
- package/lib/src/Modes/Mask.d.ts +3 -0
- package/lib/src/Modes/Mask.js +13 -0
- package/lib/src/Modes/Mask.js.map +1 -0
- package/lib/src/Modes/Mirror.d.ts +3 -0
- package/lib/src/Modes/Mirror.js +14 -0
- package/lib/src/Modes/Mirror.js.map +1 -0
- package/lib/src/Modes/ModeCollection.d.ts +44 -0
- package/lib/src/Modes/ModeCollection.js +71 -0
- package/lib/src/Modes/ModeCollection.js.map +1 -0
- package/lib/src/Modes/ModeHandler.d.ts +30 -0
- package/lib/src/Modes/ModeHandler.js +40 -0
- package/lib/src/Modes/ModeHandler.js.map +1 -0
- package/lib/src/Modes/Modes.d.ts +46 -0
- package/lib/src/Modes/Modes.js +72 -0
- package/lib/src/Modes/Modes.js.map +1 -0
- package/lib/src/Modes/MusicRepeat.d.ts +3 -0
- package/lib/src/Modes/MusicRepeat.js +12 -0
- package/lib/src/Modes/MusicRepeat.js.map +1 -0
- package/lib/src/Modes/OldBlock.d.ts +3 -0
- package/lib/src/Modes/OldBlock.js +13 -0
- package/lib/src/Modes/OldBlock.js.map +1 -0
- package/lib/src/Modes/Operation.d.ts +3 -0
- package/lib/src/Modes/Operation.js +19 -0
- package/lib/src/Modes/Operation.js.map +1 -0
- package/lib/src/Modes/Replace.d.ts +3 -0
- package/lib/src/Modes/Replace.js +12 -0
- package/lib/src/Modes/Replace.js.map +1 -0
- package/lib/src/Modes/RideFill.d.ts +3 -0
- package/lib/src/Modes/RideFill.js +12 -0
- package/lib/src/Modes/RideFill.js.map +1 -0
- package/lib/src/Modes/RideRules.d.ts +3 -0
- package/lib/src/Modes/RideRules.js +13 -0
- package/lib/src/Modes/RideRules.js.map +1 -0
- package/lib/src/Modes/Rotation.d.ts +3 -0
- package/lib/src/Modes/Rotation.js +14 -0
- package/lib/src/Modes/Rotation.js.map +1 -0
- package/lib/src/Modes/Save.d.ts +3 -0
- package/lib/src/Modes/Save.js +12 -0
- package/lib/src/Modes/Save.js.map +1 -0
- package/lib/src/Modes/SelectorAttribute.d.ts +3 -0
- package/lib/src/Modes/SelectorAttribute.js +30 -0
- package/lib/src/Modes/SelectorAttribute.js.map +1 -0
- package/lib/src/Modes/SelectorType.d.ts +3 -0
- package/lib/src/Modes/SelectorType.js +18 -0
- package/lib/src/Modes/SelectorType.js.map +1 -0
- package/lib/src/Modes/SlotType.d.ts +18 -0
- package/lib/src/Modes/SlotType.js +22 -0
- package/lib/src/Modes/SlotType.js.map +1 -0
- package/lib/src/Modes/StructureAnimation.d.ts +3 -0
- package/lib/src/Modes/StructureAnimation.js +12 -0
- package/lib/src/Modes/StructureAnimation.js.map +1 -0
- package/lib/src/Modes/TeleportRules.d.ts +3 -0
- package/lib/src/Modes/TeleportRules.js +12 -0
- package/lib/src/Modes/TeleportRules.js.map +1 -0
- package/lib/src/Types/Conditional.d.ts +28 -0
- package/lib/src/Types/Conditional.js +58 -0
- package/lib/src/Types/Conditional.js.map +1 -0
- package/lib/src/Types/Definition.d.ts +42 -0
- package/lib/src/Types/Definition.js +73 -0
- package/lib/src/Types/Definition.js.map +1 -0
- package/lib/src/Types/DocumentLocation.d.ts +36 -0
- package/lib/src/Types/DocumentLocation.js +73 -0
- package/lib/src/Types/DocumentLocation.js.map +1 -0
- package/lib/src/Types/Documentated.d.ts +16 -0
- package/lib/src/Types/Documentated.js +30 -0
- package/lib/src/Types/Documentated.js.map +1 -0
- package/lib/src/Types/Identifiable.d.ts +34 -0
- package/lib/src/Types/Identifiable.js +60 -0
- package/lib/src/Types/Identifiable.js.map +1 -0
- package/lib/src/Types/JsonPath.d.ts +26 -0
- package/lib/src/Types/JsonPath.js +48 -0
- package/lib/src/Types/JsonPath.js.map +1 -0
- package/lib/src/Types/Locatable.d.ts +20 -0
- package/lib/src/Types/Locatable.js +31 -0
- package/lib/src/Types/Locatable.js.map +1 -0
- package/lib/src/Types/Location.d.ts +29 -0
- package/lib/src/Types/Location.js +39 -0
- package/lib/src/Types/Location.js.map +1 -0
- package/lib/src/Types/Position.d.ts +40 -0
- package/lib/src/Types/Position.js +78 -0
- package/lib/src/Types/Position.js.map +1 -0
- package/lib/src/Types/Range.d.ts +31 -0
- package/lib/src/Types/Range.js +40 -0
- package/lib/src/Types/Range.js.map +1 -0
- package/lib/src/Types/include.d.ts +10 -0
- package/lib/src/Types/include.js +24 -0
- package/lib/src/Types/include.js.map +1 -0
- package/lib/src/main.d.ts +4 -0
- package/lib/src/main.js +18 -0
- package/lib/src/main.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectorAttribute = exports.Selector = void 0;
|
|
4
|
+
const Modes_1 = require("../Modes/Modes");
|
|
5
|
+
/**An object that represents a selector*/
|
|
6
|
+
class Selector {
|
|
7
|
+
/**Creates a new instance of a selector
|
|
8
|
+
* @param type The type of the selector such as @a | @e
|
|
9
|
+
* @param offset The offset the selector starts in the document*/
|
|
10
|
+
constructor(type, offset = 0) {
|
|
11
|
+
this.type = type;
|
|
12
|
+
this.offset = offset;
|
|
13
|
+
this.attributes = [];
|
|
14
|
+
this.scores = [];
|
|
15
|
+
}
|
|
16
|
+
/**TODO add documentation
|
|
17
|
+
*
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
toString() {
|
|
21
|
+
const attr = this.attributes.map((x) => x.toString()).join(",");
|
|
22
|
+
const scores = this.scores.map((x) => x.toString()).join(",");
|
|
23
|
+
let out = this.type;
|
|
24
|
+
const hAttr = attr.length > 0;
|
|
25
|
+
const hScores = attr.length > 0;
|
|
26
|
+
if (hAttr || hScores) {
|
|
27
|
+
out += "[";
|
|
28
|
+
if (hAttr)
|
|
29
|
+
out += attr;
|
|
30
|
+
if (hAttr && hScores) {
|
|
31
|
+
out += ",";
|
|
32
|
+
}
|
|
33
|
+
if (hScores)
|
|
34
|
+
out += scores;
|
|
35
|
+
out += "]";
|
|
36
|
+
}
|
|
37
|
+
return out;
|
|
38
|
+
}
|
|
39
|
+
/**TODO add documentation
|
|
40
|
+
*
|
|
41
|
+
* @param parameter
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
contains(parameter) {
|
|
45
|
+
if (parameter === "scores")
|
|
46
|
+
return this.scores.length > 0;
|
|
47
|
+
for (let index = 0; index < this.attributes.length; index++) {
|
|
48
|
+
const element = this.attributes[index];
|
|
49
|
+
if (element.name === parameter)
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
/**TODO add documentation
|
|
55
|
+
*
|
|
56
|
+
* @param parameter
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
count(parameter) {
|
|
60
|
+
if (parameter === "scores")
|
|
61
|
+
return this.scores.length > 0 ? 1 : 0;
|
|
62
|
+
let Out = 0;
|
|
63
|
+
for (let index = 0; index < this.attributes.length; index++) {
|
|
64
|
+
const element = this.attributes[index];
|
|
65
|
+
if (element.name === parameter)
|
|
66
|
+
Out++;
|
|
67
|
+
}
|
|
68
|
+
return Out;
|
|
69
|
+
}
|
|
70
|
+
/**TODO add documentation
|
|
71
|
+
*
|
|
72
|
+
* @param parameter
|
|
73
|
+
* @returns
|
|
74
|
+
*/
|
|
75
|
+
get(parameter) {
|
|
76
|
+
if (parameter === "scores")
|
|
77
|
+
return this.scores;
|
|
78
|
+
return this.attributes.filter((x) => x.name === parameter);
|
|
79
|
+
}
|
|
80
|
+
/**TODO add documentation
|
|
81
|
+
*
|
|
82
|
+
* @param cursor
|
|
83
|
+
* @returns
|
|
84
|
+
*/
|
|
85
|
+
isInScore(cursor) {
|
|
86
|
+
let max = Number.MIN_SAFE_INTEGER;
|
|
87
|
+
let min = Number.MAX_SAFE_INTEGER;
|
|
88
|
+
this.scores.forEach((s) => {
|
|
89
|
+
max = Math.max(max, SelectorAttribute.getEndOffset(s));
|
|
90
|
+
min = Math.min(min, s.offset);
|
|
91
|
+
});
|
|
92
|
+
//scores={ at start
|
|
93
|
+
min -= 7;
|
|
94
|
+
//} at the end
|
|
95
|
+
max += 1;
|
|
96
|
+
if (cursor >= min && cursor <= max)
|
|
97
|
+
return true;
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.Selector = Selector;
|
|
102
|
+
/**TODO add documentation
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
class SelectorAttribute {
|
|
106
|
+
/**TODO add documentation
|
|
107
|
+
*
|
|
108
|
+
* @param name
|
|
109
|
+
* @param value
|
|
110
|
+
* @param offset
|
|
111
|
+
*/
|
|
112
|
+
constructor(name, value, offset = 0) {
|
|
113
|
+
this.name = name;
|
|
114
|
+
this.value = value;
|
|
115
|
+
this.offset = offset;
|
|
116
|
+
}
|
|
117
|
+
/**TODO add documentation
|
|
118
|
+
*
|
|
119
|
+
* @returns
|
|
120
|
+
*/
|
|
121
|
+
toString() {
|
|
122
|
+
return `${this.name}=${this.value}`;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.SelectorAttribute = SelectorAttribute;
|
|
126
|
+
/**TODO add documentation
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
129
|
+
(function (Selector) {
|
|
130
|
+
/**TODO add documentation
|
|
131
|
+
*
|
|
132
|
+
* @param type
|
|
133
|
+
* @returns
|
|
134
|
+
*/
|
|
135
|
+
function isValidType(type) {
|
|
136
|
+
if (typeof type !== "string") {
|
|
137
|
+
type = type.type;
|
|
138
|
+
}
|
|
139
|
+
return Modes_1.Modes.SelectorType.isValue(type);
|
|
140
|
+
}
|
|
141
|
+
Selector.isValidType = isValidType;
|
|
142
|
+
/**TODO add documentation
|
|
143
|
+
*
|
|
144
|
+
* @param text
|
|
145
|
+
* @returns
|
|
146
|
+
*/
|
|
147
|
+
function getType(text) {
|
|
148
|
+
let index = text.indexOf("[");
|
|
149
|
+
if (index < 0)
|
|
150
|
+
index = text.length;
|
|
151
|
+
return text.substring(0, index);
|
|
152
|
+
}
|
|
153
|
+
Selector.getType = getType;
|
|
154
|
+
/**TODO add documentation
|
|
155
|
+
*
|
|
156
|
+
* @param text
|
|
157
|
+
* @param offset
|
|
158
|
+
* @returns
|
|
159
|
+
*/
|
|
160
|
+
function parse(text, offset = 0) {
|
|
161
|
+
const type = getType(text);
|
|
162
|
+
const Out = new Selector(type, offset);
|
|
163
|
+
//remove prefix
|
|
164
|
+
if (type.length >= text.length)
|
|
165
|
+
return Out;
|
|
166
|
+
const data = text.substring(type.length, text.length);
|
|
167
|
+
offset += type.length;
|
|
168
|
+
if (data.startsWith("[") && data.endsWith("]")) {
|
|
169
|
+
SelectorAttribute.parseParameters(data.substring(1, data.length - 1), offset + 1, Out, Out.attributes);
|
|
170
|
+
}
|
|
171
|
+
return Out;
|
|
172
|
+
}
|
|
173
|
+
Selector.parse = parse;
|
|
174
|
+
function isSelector(value, wildcard = false, allowFakePlayers = false) {
|
|
175
|
+
if (value.startsWith("@"))
|
|
176
|
+
return true;
|
|
177
|
+
if (wildcard === true) {
|
|
178
|
+
if (value === "*")
|
|
179
|
+
return true;
|
|
180
|
+
}
|
|
181
|
+
if (allowFakePlayers === true) {
|
|
182
|
+
if (value.startsWith('"') && value.endsWith('"'))
|
|
183
|
+
return true;
|
|
184
|
+
if (value.includes(" ")) {
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
Selector.isSelector = isSelector;
|
|
192
|
+
})(Selector = exports.Selector || (exports.Selector = {}));
|
|
193
|
+
/**TODO add documentation
|
|
194
|
+
*
|
|
195
|
+
*/
|
|
196
|
+
(function (SelectorAttribute) {
|
|
197
|
+
/**TODO add documentation
|
|
198
|
+
*
|
|
199
|
+
* @param text
|
|
200
|
+
* @param offset
|
|
201
|
+
* @param selector
|
|
202
|
+
* @param receiver
|
|
203
|
+
*/
|
|
204
|
+
function parseParameters(text, offset, selector, receiver) {
|
|
205
|
+
let start = 0;
|
|
206
|
+
let level = 0;
|
|
207
|
+
for (let index = 0; index < text.length; index++) {
|
|
208
|
+
const char = text[index];
|
|
209
|
+
switch (char) {
|
|
210
|
+
case "{":
|
|
211
|
+
level++;
|
|
212
|
+
break;
|
|
213
|
+
case "}":
|
|
214
|
+
level--;
|
|
215
|
+
break;
|
|
216
|
+
case ",":
|
|
217
|
+
if (level == 0) {
|
|
218
|
+
SelectorAttribute.parse(text.substring(start, index), offset + start, selector, receiver);
|
|
219
|
+
start = index + 1;
|
|
220
|
+
}
|
|
221
|
+
default:
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (start < text.length) {
|
|
226
|
+
SelectorAttribute.parse(text.substring(start, text.length), offset + start, selector, receiver);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
SelectorAttribute.parseParameters = parseParameters;
|
|
230
|
+
/**TODO add documentation
|
|
231
|
+
*
|
|
232
|
+
* @param text
|
|
233
|
+
* @param offset
|
|
234
|
+
* @param selector
|
|
235
|
+
* @param receiver
|
|
236
|
+
*/
|
|
237
|
+
function parse(text, offset, selector, receiver) {
|
|
238
|
+
let Index = text.indexOf("=");
|
|
239
|
+
if (Index < 0)
|
|
240
|
+
throw new Error("index cannot be lower then 0");
|
|
241
|
+
const name = text.substring(0, Index);
|
|
242
|
+
Index = Index + 1;
|
|
243
|
+
const value = text.substring(Index, text.length);
|
|
244
|
+
if (name === "scores") {
|
|
245
|
+
if (value.startsWith("{") && value.endsWith("}")) {
|
|
246
|
+
parseParameters(value.substring(1, value.length - 1), Index + offset + 1, selector, selector.scores);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
receiver.push(new SelectorAttribute(name, value, offset));
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
SelectorAttribute.parse = parse;
|
|
254
|
+
/**TODO add documentation
|
|
255
|
+
*
|
|
256
|
+
* @param p
|
|
257
|
+
* @param cursor
|
|
258
|
+
* @returns
|
|
259
|
+
*/
|
|
260
|
+
function isCursor(p, cursor) {
|
|
261
|
+
if (p.offset >= cursor) {
|
|
262
|
+
if (cursor <= getEndOffset(p))
|
|
263
|
+
return true;
|
|
264
|
+
}
|
|
265
|
+
return false;
|
|
266
|
+
}
|
|
267
|
+
SelectorAttribute.isCursor = isCursor;
|
|
268
|
+
/**TODO add documentation
|
|
269
|
+
*
|
|
270
|
+
* @param p
|
|
271
|
+
* @returns
|
|
272
|
+
*/
|
|
273
|
+
function getEndOffset(p) {
|
|
274
|
+
return p.name.length + p.value.length + 1 + p.offset;
|
|
275
|
+
}
|
|
276
|
+
SelectorAttribute.getEndOffset = getEndOffset;
|
|
277
|
+
})(SelectorAttribute = exports.SelectorAttribute || (exports.SelectorAttribute = {}));
|
|
278
|
+
//# sourceMappingURL=Selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Selector.js","sourceRoot":"","sources":["../../../src/Minecraft/Selector.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAEvC,yCAAyC;AACzC,MAAa,QAAQ;IAUnB;;qEAEiE;IACjE,YAAY,IAAY,EAAE,SAAiB,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC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,CAAC;IAFe,8BAAY,eAE3B,CAAA;AACH,CAAC,EAtFgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAsFjC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** */
|
|
2
|
+
export declare namespace XP {
|
|
3
|
+
/**The regex pattern that matches a XP value */
|
|
4
|
+
const pattern: RegExp;
|
|
5
|
+
/**Checks if the given text value is a valid xp value
|
|
6
|
+
* @param text The valued to check
|
|
7
|
+
* @returns True or false if the text represents an xp value*/
|
|
8
|
+
function is(text: string): boolean;
|
|
9
|
+
/**Checks if the XP is a value specification
|
|
10
|
+
* @param text The valued to check
|
|
11
|
+
* @returns True or false if the xp is not a level spec*/
|
|
12
|
+
function isLevel(text: string): boolean;
|
|
13
|
+
/**Parses the given xp into a number
|
|
14
|
+
* @param text The text to convert*/
|
|
15
|
+
function parse(text: string): number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XP = void 0;
|
|
4
|
+
/** */
|
|
5
|
+
var XP;
|
|
6
|
+
(function (XP) {
|
|
7
|
+
/**The regex pattern that matches a XP value */
|
|
8
|
+
XP.pattern = /^([\-\d]*|[\-\d]*[Ll])$/;
|
|
9
|
+
/**Checks if the given text value is a valid xp value
|
|
10
|
+
* @param text The valued to check
|
|
11
|
+
* @returns True or false if the text represents an xp value*/
|
|
12
|
+
function is(text) {
|
|
13
|
+
return XP.pattern.test(text);
|
|
14
|
+
}
|
|
15
|
+
XP.is = is;
|
|
16
|
+
/**Checks if the XP is a value specification
|
|
17
|
+
* @param text The valued to check
|
|
18
|
+
* @returns True or false if the xp is not a level spec*/
|
|
19
|
+
function isLevel(text) {
|
|
20
|
+
return text.endsWith("l") || text.endsWith("L");
|
|
21
|
+
}
|
|
22
|
+
XP.isLevel = isLevel;
|
|
23
|
+
/**Parses the given xp into a number
|
|
24
|
+
* @param text The text to convert*/
|
|
25
|
+
function parse(text) {
|
|
26
|
+
if (isLevel(text)) {
|
|
27
|
+
text = text.substring(0, text.length - 1);
|
|
28
|
+
}
|
|
29
|
+
return Number.parseInt(text);
|
|
30
|
+
}
|
|
31
|
+
XP.parse = parse;
|
|
32
|
+
})(XP = exports.XP || (exports.XP = {}));
|
|
33
|
+
//# sourceMappingURL=Xp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Xp.js","sourceRoot":"","sources":["../../../src/Minecraft/Xp.ts"],"names":[],"mappings":";;;AAAA,MAAM;AACN,IAAiB,EAAE,CA2BlB;AA3BD,WAAiB,EAAE;IACjB,+CAA+C;IAClC,UAAO,GAAW,yBAAyB,CAAC;IAEzD;;kEAE8D;IAC9D,SAAgB,EAAE,CAAC,IAAY;QAC7B,OAAO,GAAA,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAFe,KAAE,KAEjB,CAAA;IAED;;6DAEyD;IACzD,SAAgB,OAAO,CAAC,IAAY;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAFe,UAAO,UAEtB,CAAA;IAED;wCACoC;IACpC,SAAgB,KAAK,CAAC,IAAY;QAChC,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE;YACjB,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SAC3C;QAED,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IANe,QAAK,QAMpB,CAAA;AACH,CAAC,EA3BgB,EAAE,GAAF,UAAE,KAAF,UAAE,QA2BlB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Auto generated */
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
6
|
+
}) : (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
o[k2] = m[k];
|
|
9
|
+
}));
|
|
10
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
11
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
__exportStar(require("./Block"), exports);
|
|
15
|
+
__exportStar(require("./Coordinate"), exports);
|
|
16
|
+
__exportStar(require("./Selector"), exports);
|
|
17
|
+
__exportStar(require("./Xp"), exports);
|
|
18
|
+
//# sourceMappingURL=include.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include.js","sourceRoot":"","sources":["../../../src/Minecraft/include.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;AAEpB,0CAAwB;AACxB,+CAA6B;AAC7B,6CAA2B;AAC3B,uCAAqB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CameraShakeMode = void 0;
|
|
4
|
+
/** */
|
|
5
|
+
exports.CameraShakeMode = {
|
|
6
|
+
name: "Camera Shake",
|
|
7
|
+
modes: [
|
|
8
|
+
{ name: "positional", documentation: "Shakes the camera using relatives position" },
|
|
9
|
+
{ name: "rotational", documentation: "Shakes the camera using rotations" },
|
|
10
|
+
],
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=CameraShake.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraShake.js","sourceRoot":"","sources":["../../../src/Modes/CameraShake.ts"],"names":[],"mappings":";;;AAEA,MAAM;AACO,QAAA,eAAe,GAAmB;IAC7C,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,4CAA4C,EAAE;QACnF,EAAE,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,mCAAmC,EAAE;KAC3E;CACF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloneMode = void 0;
|
|
4
|
+
/** */
|
|
5
|
+
exports.CloneMode = {
|
|
6
|
+
name: "Clone",
|
|
7
|
+
modes: [
|
|
8
|
+
{ name: "force", documentation: "Forces the clone even if the source and destination regions overlap." },
|
|
9
|
+
{
|
|
10
|
+
name: "move",
|
|
11
|
+
documentation: "Clone the source region to the destination region, then replace the source region with air. When used in filtered mask mode, only the cloned blocks are replaced with air.",
|
|
12
|
+
},
|
|
13
|
+
{ name: "normal", documentation: "Execute the clone under default operations." },
|
|
14
|
+
],
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Clone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clone.js","sourceRoot":"","sources":["../../../src/Modes/Clone.ts"],"names":[],"mappings":";;;AAEA,MAAM;AACO,QAAA,SAAS,GAAmB;IACvC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,EAAE,sEAAsE,EAAE;QACxG;YACE,IAAI,EAAE,MAAM;YACZ,aAAa,EACX,4KAA4K;SAC/K;QACD,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,6CAA6C,EAAE;KACjF;CACF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DifficultyMode = void 0;
|
|
4
|
+
/** */
|
|
5
|
+
exports.DifficultyMode = {
|
|
6
|
+
name: "Difficulty",
|
|
7
|
+
modes: [
|
|
8
|
+
{ name: "1", documentation: "Easy mode, mobs will attack in this mode. but at a minimum." },
|
|
9
|
+
{ name: "e", documentation: "Easy mode, mobs will attack in this mode. but at a minimum." },
|
|
10
|
+
{ name: "easy", documentation: "Easy mode, mobs will attack in this mode. but at a minimum." },
|
|
11
|
+
{ name: "2", documentation: "The default difficulty mode for minecraft, mobs will attack." },
|
|
12
|
+
{ name: "n", documentation: "The default difficulty mode for minecraft, mobs will attack." },
|
|
13
|
+
{ name: "normal", documentation: "The default difficulty mode for minecraft, mobs will attack." },
|
|
14
|
+
{ name: "3", documentation: "The most difficult mode for minecraft, mobs will attack somewhat harder." },
|
|
15
|
+
{ name: "h", documentation: "The most difficult mode for minecraft, mobs will attack somewhat harder." },
|
|
16
|
+
{ name: "hard", documentation: "The most difficult mode for minecraft, mobs will attack somewhat harder." },
|
|
17
|
+
{ name: "0", documentation: "The relaxed mode, no mobs with attacking behavior can be spawned" },
|
|
18
|
+
{ name: "p", documentation: "The relaxed mode, no mobs with attacking behavior can be spawned" },
|
|
19
|
+
{ name: "peacefull", documentation: "The relaxed mode, no mobs with attacking behavior can be spawned" },
|
|
20
|
+
],
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Difficulty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Difficulty.js","sourceRoot":"","sources":["../../../src/Modes/Difficulty.ts"],"names":[],"mappings":";;;AAEA,MAAM;AACO,QAAA,cAAc,GAAmB;IAC5C,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,6DAA6D,EAAE;QAC3F,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,6DAA6D,EAAE;QAC3F,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,6DAA6D,EAAE;QAE9F,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,8DAA8D,EAAE;QAC5F,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,8DAA8D,EAAE;QAC5F,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,8DAA8D,EAAE;QAEjG,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,0EAA0E,EAAE;QACxG,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,0EAA0E,EAAE;QACxG,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,0EAA0E,EAAE;QAE3G,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,kEAAkE,EAAE;QAChG,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,kEAAkE,EAAE;QAChG,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,kEAAkE,EAAE;KACzG;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FillMode = void 0;
|
|
4
|
+
/** */
|
|
5
|
+
exports.FillMode = {
|
|
6
|
+
name: "Fill",
|
|
7
|
+
modes: [
|
|
8
|
+
{ name: "destroy", documentation: "Destroy the old block, if tile drops is on, they all will drop an item" },
|
|
9
|
+
{ name: "hollow", documentation: "Create a hollow cube" },
|
|
10
|
+
{ name: "keep", documentation: "Keeps the old blocks, replaces only air" },
|
|
11
|
+
{ name: "outline", documentation: "Just sets the outline" },
|
|
12
|
+
{ name: "replace", documentation: "Replaces a specified block with the given block" },
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fill.js","sourceRoot":"","sources":["../../../src/Modes/Fill.ts"],"names":[],"mappings":";;;AAEA,MAAM;AACO,QAAA,QAAQ,GAAmB;IACtC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,wEAAwE,EAAE;QAC5G,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,sBAAsB,EAAE;QACzD,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,yCAAyC,EAAE;QAC1E,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,uBAAuB,EAAE;QAC3D,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,iDAAiD,EAAE;KACtF;CACF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GameMode = void 0;
|
|
4
|
+
/** */
|
|
5
|
+
exports.GameMode = {
|
|
6
|
+
name: "gamemodes",
|
|
7
|
+
modes: [
|
|
8
|
+
{ name: "c", documentation: "The creative gamemode" },
|
|
9
|
+
{ name: "creative", documentation: "The creative gamemode" },
|
|
10
|
+
{ name: "1", documentation: "The creative gamemode" },
|
|
11
|
+
{ name: "a", documentation: "The adventure gamemode" },
|
|
12
|
+
{ name: "adventure", documentation: "The adventure gamemode" },
|
|
13
|
+
{ name: "2", documentation: "The adventure gamemode" },
|
|
14
|
+
{ name: "s", documentation: "The survival gamemode" },
|
|
15
|
+
{ name: "survival", documentation: "The survival gamemode" },
|
|
16
|
+
{ name: "0", documentation: "The survival gamemode" },
|
|
17
|
+
],
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=GameMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameMode.js","sourceRoot":"","sources":["../../../src/Modes/GameMode.ts"],"names":[],"mappings":";;;AAEA,MAAM;AACO,QAAA,QAAQ,GAAmB;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,uBAAuB,EAAE;QACrD,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,uBAAuB,EAAE;QAC5D,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,uBAAuB,EAAE;QACrD,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,wBAAwB,EAAE;QACtD,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,wBAAwB,EAAE;QAC9D,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,wBAAwB,EAAE;QACtD,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,uBAAuB,EAAE;QACrD,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,uBAAuB,EAAE;QAC5D,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,uBAAuB,EAAE;KACtD;CACF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocateFeatureMode = void 0;
|
|
4
|
+
/** */
|
|
5
|
+
exports.LocateFeatureMode = {
|
|
6
|
+
name: "Locate Feature",
|
|
7
|
+
modes: [
|
|
8
|
+
{ name: "bastionremnant", documentation: "A bastion remnant in the nether" },
|
|
9
|
+
{ name: "buriedtreasure", documentation: "A buried chest under ground" },
|
|
10
|
+
{ name: "endcity", documentation: "A end city" },
|
|
11
|
+
{ name: "fortress", documentation: "A nether fortress" },
|
|
12
|
+
{ name: "mansion", documentation: "A woodland mansion" },
|
|
13
|
+
{ name: "mineshaft", documentation: "Mine shafts" },
|
|
14
|
+
{ name: "monument", documentation: "A ocean monument" },
|
|
15
|
+
{ name: "ruins", documentation: "Ocean ruins" },
|
|
16
|
+
{ name: "pillageroutpost", documentation: "Pillager outpost" },
|
|
17
|
+
{ name: "ruinedportal", documentation: "A ruined portal to the nether" },
|
|
18
|
+
{ name: "shipwreck", documentation: "A ocean sunken ship" },
|
|
19
|
+
{ name: "stronghold", documentation: "The stronghold" },
|
|
20
|
+
{ name: "temple", documentation: "Can be a desert pyramid, igloo, jungle pyramid or swamp hut" },
|
|
21
|
+
{ name: "village", documentation: "A default village" },
|
|
22
|
+
],
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=LocateFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocateFeature.js","sourceRoot":"","sources":["../../../src/Modes/LocateFeature.ts"],"names":[],"mappings":";;;AAEA,MAAM;AACO,QAAA,iBAAiB,GAAmB;IAC/C,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,gBAAgB,EAAE,aAAa,EAAE,iCAAiC,EAAE;QAC5E,EAAE,IAAI,EAAE,gBAAgB,EAAE,aAAa,EAAE,6BAA6B,EAAE;QACxE,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE;QAChD,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,mBAAmB,EAAE;QACxD,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,oBAAoB,EAAE;QACxD,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE;QACnD,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,kBAAkB,EAAE;QACvD,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE;QAC/C,EAAE,IAAI,EAAE,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,EAAE;QAC9D,EAAE,IAAI,EAAE,cAAc,EAAE,aAAa,EAAE,+BAA+B,EAAE;QACxE,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE;QAC3D,EAAE,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE;QACvD,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,6DAA6D,EAAE;QAChG,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,mBAAmB,EAAE;KACxD;CACF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaskMode = void 0;
|
|
4
|
+
/** */
|
|
5
|
+
exports.MaskMode = {
|
|
6
|
+
name: "Mask",
|
|
7
|
+
modes: [
|
|
8
|
+
{ name: "filtered", documentation: "Using a filtered setting" },
|
|
9
|
+
{ name: "masked", documentation: "Clones the area using a mask" },
|
|
10
|
+
{ name: "replace", documentation: "Replaces the specified block" },
|
|
11
|
+
],
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=Mask.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mask.js","sourceRoot":"","sources":["../../../src/Modes/Mask.ts"],"names":[],"mappings":";;;AAEA,MAAM;AACO,QAAA,QAAQ,GAAmB;IACtC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,0BAA0B,EAAE;QAC/D,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,8BAA8B,EAAE;QACjE,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,8BAA8B,EAAE;KACnE;CACF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MirrorMode = void 0;
|
|
4
|
+
/** */
|
|
5
|
+
exports.MirrorMode = {
|
|
6
|
+
name: "Mirror",
|
|
7
|
+
modes: [
|
|
8
|
+
{ name: "none", documentation: "Does not mirror the structure" },
|
|
9
|
+
{ name: "x", documentation: "Mirrors the structure using the x - axis as the mirror" },
|
|
10
|
+
{ name: "xz", documentation: "Mirrors the structure using the x - axis and z - axis as the mirror" },
|
|
11
|
+
{ name: "z", documentation: "Mirrors the structure using the z - axis as the mirror" },
|
|
12
|
+
],
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=Mirror.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mirror.js","sourceRoot":"","sources":["../../../src/Modes/Mirror.ts"],"names":[],"mappings":";;;AAEA,MAAM;AACO,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,+BAA+B,EAAE;QAChE,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,wDAAwD,EAAE;QACtF,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,qEAAqE,EAAE;QACpG,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,wDAAwD,EAAE;KACvF;CACF,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** The interface that marks a gamemode*/
|
|
2
|
+
export interface ModeCollection {
|
|
3
|
+
/**The collection of different modes*/
|
|
4
|
+
modes: Mode[];
|
|
5
|
+
/**The name of the collection*/
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
/** The mode interface */
|
|
9
|
+
export interface Mode {
|
|
10
|
+
/**The name of this mode*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**The documentation of this mode*/
|
|
13
|
+
documentation: string;
|
|
14
|
+
/** */
|
|
15
|
+
eduOnly?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** */
|
|
18
|
+
export declare namespace ModeCollection {
|
|
19
|
+
/**Checks if the given object is implements ModeCollection
|
|
20
|
+
* @param value
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
function is(value: any): value is ModeCollection;
|
|
24
|
+
/**TODO add documentation
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
function isValue(Collection: ModeCollection, value: string): boolean;
|
|
28
|
+
/**TODO add documentation
|
|
29
|
+
*
|
|
30
|
+
* @param Collection
|
|
31
|
+
* @param index
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
function get(Collection: ModeCollection, index: string | number): Mode | undefined;
|
|
35
|
+
}
|
|
36
|
+
/** */
|
|
37
|
+
export declare namespace Mode {
|
|
38
|
+
/**TODO add documentation
|
|
39
|
+
*
|
|
40
|
+
* @param value
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
function is(value: any): value is Mode;
|
|
44
|
+
}
|