@minecraft/server-gametest 1.0.0-beta.1.19.80-preview.23 → 1.0.0-beta.1.19.80-stable
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/index.d.ts +408 -9
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* ```json
|
|
18
18
|
* {
|
|
19
19
|
* "module_name": "@minecraft/server-gametest",
|
|
20
|
-
* "version": "1.0.0-internal.1.19.80-
|
|
20
|
+
* "version": "1.0.0-internal.1.19.80-stable"
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
@@ -35,6 +35,7 @@ export enum GameTestErrorType {
|
|
|
35
35
|
Unknown = 'Unknown',
|
|
36
36
|
Waiting = 'Waiting',
|
|
37
37
|
}
|
|
38
|
+
|
|
38
39
|
/**
|
|
39
40
|
* Returns information about whether this fence is connected to
|
|
40
41
|
* other fences in several directions.
|
|
@@ -42,26 +43,35 @@ export enum GameTestErrorType {
|
|
|
42
43
|
export class FenceConnectivity {
|
|
43
44
|
protected constructor();
|
|
44
45
|
/**
|
|
46
|
+
* @remarks
|
|
45
47
|
* Represents whether this fence block is connected to another
|
|
46
48
|
* fence to the east (x + 1).
|
|
49
|
+
*
|
|
47
50
|
*/
|
|
48
51
|
readonly east: boolean;
|
|
49
52
|
/**
|
|
53
|
+
* @remarks
|
|
50
54
|
* Represents whether this fence block is connected to another
|
|
51
55
|
* fence to the north (z - 1).
|
|
56
|
+
*
|
|
52
57
|
*/
|
|
53
58
|
readonly north: boolean;
|
|
54
59
|
/**
|
|
60
|
+
* @remarks
|
|
55
61
|
* Represents whether this fence block is connected to another
|
|
56
62
|
* fence to the south (z + 1).
|
|
63
|
+
*
|
|
57
64
|
*/
|
|
58
65
|
readonly south: boolean;
|
|
59
66
|
/**
|
|
67
|
+
* @remarks
|
|
60
68
|
* Represents whether this fence block is connected to another
|
|
61
69
|
* fence to the west (x - 1).
|
|
70
|
+
*
|
|
62
71
|
*/
|
|
63
72
|
readonly west: boolean;
|
|
64
73
|
}
|
|
74
|
+
|
|
65
75
|
/**
|
|
66
76
|
* Executes a set of steps defined via chained .thenXyz
|
|
67
77
|
* methods, sequentially. This facilitates a 'script' of
|
|
@@ -74,6 +84,9 @@ export class GameTestSequence {
|
|
|
74
84
|
* Runs the given callback as a step within a GameTest
|
|
75
85
|
* sequence. Exceptions thrown within the callback will end
|
|
76
86
|
* sequence execution.
|
|
87
|
+
*
|
|
88
|
+
* This function can't be called in read-only mode.
|
|
89
|
+
*
|
|
77
90
|
* @param callback
|
|
78
91
|
* Callback function to execute.
|
|
79
92
|
* @returns
|
|
@@ -86,6 +99,9 @@ export class GameTestSequence {
|
|
|
86
99
|
* After a delay, runs the given callback as a step within a
|
|
87
100
|
* GameTest sequence. Exceptions thrown within the callback
|
|
88
101
|
* will end sequence execution.
|
|
102
|
+
*
|
|
103
|
+
* This function can't be called in read-only mode.
|
|
104
|
+
*
|
|
89
105
|
* @param delayTicks
|
|
90
106
|
* Number of ticks to wait before executing the callback.
|
|
91
107
|
* @param callback
|
|
@@ -99,6 +115,9 @@ export class GameTestSequence {
|
|
|
99
115
|
* @remarks
|
|
100
116
|
* Runs the given callback every tick for the given number of
|
|
101
117
|
* ticks.
|
|
118
|
+
*
|
|
119
|
+
* This function can't be called in read-only mode.
|
|
120
|
+
*
|
|
102
121
|
* @param callback
|
|
103
122
|
* Callback function to execute.
|
|
104
123
|
* @returns
|
|
@@ -110,6 +129,9 @@ export class GameTestSequence {
|
|
|
110
129
|
* @remarks
|
|
111
130
|
* Causes the test to fail if this step in the GameTest
|
|
112
131
|
* sequence is reached.
|
|
132
|
+
*
|
|
133
|
+
* This function can't be called in read-only mode.
|
|
134
|
+
*
|
|
113
135
|
* @param errorMessage
|
|
114
136
|
* Error message summarizing the failure condition.
|
|
115
137
|
*/
|
|
@@ -117,6 +139,9 @@ export class GameTestSequence {
|
|
|
117
139
|
/**
|
|
118
140
|
* @remarks
|
|
119
141
|
* Idles the GameTest sequence for the specified delayTicks.
|
|
142
|
+
*
|
|
143
|
+
* This function can't be called in read-only mode.
|
|
144
|
+
*
|
|
120
145
|
* @param delayTicks
|
|
121
146
|
* Number of ticks to delay for this step in the GameTest
|
|
122
147
|
* sequence.
|
|
@@ -129,6 +154,9 @@ export class GameTestSequence {
|
|
|
129
154
|
* @remarks
|
|
130
155
|
* Marks the GameTest a success if this step is reached in the
|
|
131
156
|
* GameTest sequence.
|
|
157
|
+
*
|
|
158
|
+
* This function can't be called in read-only mode.
|
|
159
|
+
*
|
|
132
160
|
*/
|
|
133
161
|
thenSucceed(): void;
|
|
134
162
|
/**
|
|
@@ -136,6 +164,9 @@ export class GameTestSequence {
|
|
|
136
164
|
* Executes the given callback every tick until it succeeds.
|
|
137
165
|
* Exceptions thrown within the callback will end sequence
|
|
138
166
|
* execution.
|
|
167
|
+
*
|
|
168
|
+
* This function can't be called in read-only mode.
|
|
169
|
+
*
|
|
139
170
|
* @param callback
|
|
140
171
|
* Testing callback function to execute. Typically, this
|
|
141
172
|
* function will have .assertXyz functions within it.
|
|
@@ -149,6 +180,9 @@ export class GameTestSequence {
|
|
|
149
180
|
* After a delay from the previous step, executes the given
|
|
150
181
|
* callback every tick until it succeeds. Exceptions thrown
|
|
151
182
|
* within the callback will end sequence execution.
|
|
183
|
+
*
|
|
184
|
+
* This function can't be called in read-only mode.
|
|
185
|
+
*
|
|
152
186
|
* @param delayTicks
|
|
153
187
|
* Tick (after the previous step in the GameTest sequence) to
|
|
154
188
|
* run the callback at.
|
|
@@ -161,6 +195,7 @@ export class GameTestSequence {
|
|
|
161
195
|
*/
|
|
162
196
|
thenWaitAfter(delayTicks: number, callback: () => void): GameTestSequence;
|
|
163
197
|
}
|
|
198
|
+
|
|
164
199
|
/**
|
|
165
200
|
* A utility class to set GameTest parameters for a test.
|
|
166
201
|
* Methods can be chained together to set multiple properties.
|
|
@@ -170,6 +205,9 @@ export class RegistrationBuilder {
|
|
|
170
205
|
/**
|
|
171
206
|
* @remarks
|
|
172
207
|
* Sets the batch for the test to run in.
|
|
208
|
+
*
|
|
209
|
+
* This function can't be called in read-only mode.
|
|
210
|
+
*
|
|
173
211
|
* @param batchName
|
|
174
212
|
* Name of the batch for the test.
|
|
175
213
|
* @returns
|
|
@@ -181,6 +219,9 @@ export class RegistrationBuilder {
|
|
|
181
219
|
* @remarks
|
|
182
220
|
* Sets the maximum number of times a test will try to rerun if
|
|
183
221
|
* it fails.
|
|
222
|
+
*
|
|
223
|
+
* This function can't be called in read-only mode.
|
|
224
|
+
*
|
|
184
225
|
* @returns
|
|
185
226
|
* RegistrationBuilder object where additional configuration
|
|
186
227
|
* methods can be called.
|
|
@@ -190,6 +231,9 @@ export class RegistrationBuilder {
|
|
|
190
231
|
* @remarks
|
|
191
232
|
* Sets the maximum number of ticks a test will run for before
|
|
192
233
|
* timing out and failing.
|
|
234
|
+
*
|
|
235
|
+
* This function can't be called in read-only mode.
|
|
236
|
+
*
|
|
193
237
|
* @returns
|
|
194
238
|
* RegistrationBuilder object where additional configuration
|
|
195
239
|
* methods can be called.
|
|
@@ -199,6 +243,9 @@ export class RegistrationBuilder {
|
|
|
199
243
|
* @remarks
|
|
200
244
|
* Size around the GameTest, in blocks, that should be reserved
|
|
201
245
|
* for the test when running multiple tests together.
|
|
246
|
+
*
|
|
247
|
+
* This function can't be called in read-only mode.
|
|
248
|
+
*
|
|
202
249
|
* @param paddingBlocks
|
|
203
250
|
* Size, in blocks, around the GameTest where additional
|
|
204
251
|
* GameTests should not be created.
|
|
@@ -211,6 +258,9 @@ export class RegistrationBuilder {
|
|
|
211
258
|
* @remarks
|
|
212
259
|
* Whether this test is required to pass as part of its broader
|
|
213
260
|
* set of tests.
|
|
261
|
+
*
|
|
262
|
+
* This function can't be called in read-only mode.
|
|
263
|
+
*
|
|
214
264
|
* @param isRequired
|
|
215
265
|
* If set to true, the test must pass in order for the entire
|
|
216
266
|
* run of tests to pass.
|
|
@@ -223,6 +273,9 @@ export class RegistrationBuilder {
|
|
|
223
273
|
* @remarks
|
|
224
274
|
* Sets the number of successful test runs to be considered
|
|
225
275
|
* successful.
|
|
276
|
+
*
|
|
277
|
+
* This function can't be called in read-only mode.
|
|
278
|
+
*
|
|
226
279
|
* @returns
|
|
227
280
|
* RegistrationBuilder object where additional configuration
|
|
228
281
|
* methods can be called.
|
|
@@ -232,12 +285,18 @@ export class RegistrationBuilder {
|
|
|
232
285
|
* @remarks
|
|
233
286
|
* If true, runs the test in all four rotations when run via
|
|
234
287
|
* /gametest runset.
|
|
288
|
+
*
|
|
289
|
+
* This function can't be called in read-only mode.
|
|
290
|
+
*
|
|
235
291
|
*/
|
|
236
292
|
rotateTest(rotate: boolean): RegistrationBuilder;
|
|
237
293
|
/**
|
|
238
294
|
* @remarks
|
|
239
295
|
* Sets the number of ticks for a test to wait before executing
|
|
240
296
|
* when the structure is spawned.
|
|
297
|
+
*
|
|
298
|
+
* This function can't be called in read-only mode.
|
|
299
|
+
*
|
|
241
300
|
* @returns
|
|
242
301
|
* RegistrationBuilder object where additional configuration
|
|
243
302
|
* methods can be called.
|
|
@@ -248,6 +307,9 @@ export class RegistrationBuilder {
|
|
|
248
307
|
* Sets the name of the structure for a test to use. "xyz:bar"
|
|
249
308
|
* will load `/structures/xyz/bar.mcstructure` from the
|
|
250
309
|
* behavior pack stack.
|
|
310
|
+
*
|
|
311
|
+
* This function can't be called in read-only mode.
|
|
312
|
+
*
|
|
251
313
|
* @returns
|
|
252
314
|
* RegistrationBuilder object where additional configuration
|
|
253
315
|
* methods can be called.
|
|
@@ -257,12 +319,16 @@ export class RegistrationBuilder {
|
|
|
257
319
|
* @remarks
|
|
258
320
|
* Adds a tag to a test. You can run all tests with a given tag
|
|
259
321
|
* with `/gametest runset <tag>`.
|
|
322
|
+
*
|
|
323
|
+
* This function can't be called in read-only mode.
|
|
324
|
+
*
|
|
260
325
|
* @returns
|
|
261
326
|
* RegistrationBuilder object where additional configuration
|
|
262
327
|
* methods can be called.
|
|
263
328
|
*/
|
|
264
329
|
tag(tag: string): RegistrationBuilder;
|
|
265
330
|
}
|
|
331
|
+
|
|
266
332
|
/**
|
|
267
333
|
* Implements a class that can be used for testing sculk
|
|
268
334
|
* spreading behaviors. This sculk spreader class can drive the
|
|
@@ -271,7 +337,9 @@ export class RegistrationBuilder {
|
|
|
271
337
|
export class SculkSpreader {
|
|
272
338
|
protected constructor();
|
|
273
339
|
/**
|
|
340
|
+
* @remarks
|
|
274
341
|
* Gets the maximum charge of a sculk spreader.
|
|
342
|
+
*
|
|
275
343
|
* @throws This property can throw when used.
|
|
276
344
|
*/
|
|
277
345
|
readonly maxCharge: number;
|
|
@@ -279,27 +347,40 @@ export class SculkSpreader {
|
|
|
279
347
|
* @remarks
|
|
280
348
|
* Adds a cursor - which is a notional waypoint that the sculk
|
|
281
349
|
* will spread in the direction of.
|
|
350
|
+
*
|
|
351
|
+
* This function can't be called in read-only mode.
|
|
352
|
+
*
|
|
282
353
|
*/
|
|
283
354
|
addCursorsWithOffset(offset: minecraftserver.Vector3, charge: number): void;
|
|
284
355
|
/**
|
|
285
356
|
* @remarks
|
|
286
357
|
* Retrieves the current position of the specified cursor.
|
|
358
|
+
*
|
|
359
|
+
* This function can't be called in read-only mode.
|
|
360
|
+
*
|
|
287
361
|
* @throws This function can throw errors.
|
|
288
362
|
*/
|
|
289
363
|
getCursorPosition(index: number): minecraftserver.Vector3;
|
|
290
364
|
/**
|
|
291
365
|
* @remarks
|
|
292
366
|
* Returns a number of overall cursors for this sculk spreader.
|
|
367
|
+
*
|
|
368
|
+
* This function can't be called in read-only mode.
|
|
369
|
+
*
|
|
293
370
|
* @throws This function can throw errors.
|
|
294
371
|
*/
|
|
295
372
|
getNumberOfCursors(): number;
|
|
296
373
|
/**
|
|
297
374
|
* @remarks
|
|
298
375
|
* Gets the total current charge of the sculk spreader.
|
|
376
|
+
*
|
|
377
|
+
* This function can't be called in read-only mode.
|
|
378
|
+
*
|
|
299
379
|
* @throws This function can throw errors.
|
|
300
380
|
*/
|
|
301
381
|
getTotalCharge(): number;
|
|
302
382
|
}
|
|
383
|
+
|
|
303
384
|
/**
|
|
304
385
|
* A simulated player can be used within GameTests to represent
|
|
305
386
|
* how a player moves throughout the world and to support
|
|
@@ -310,10 +391,17 @@ export class SculkSpreader {
|
|
|
310
391
|
export class SimulatedPlayer extends minecraftserver.Player {
|
|
311
392
|
protected constructor();
|
|
312
393
|
/**
|
|
394
|
+
* @remarks
|
|
313
395
|
* Rotation of the head across pitch and yaw angles.
|
|
396
|
+
*
|
|
314
397
|
* @throws This property can throw when used.
|
|
315
398
|
*/
|
|
316
399
|
readonly headRotation: minecraftserver.XYRotation;
|
|
400
|
+
/**
|
|
401
|
+
* @remarks
|
|
402
|
+
* This property can't be edited in read-only mode.
|
|
403
|
+
*
|
|
404
|
+
*/
|
|
317
405
|
isSprinting: boolean;
|
|
318
406
|
/**
|
|
319
407
|
* @remarks
|
|
@@ -321,6 +409,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
321
409
|
* Returns true if the attack was performed - for example, the
|
|
322
410
|
* player was not on cooldown and had a valid target. Target
|
|
323
411
|
* selection is performed by raycasting from the player's head.
|
|
412
|
+
*
|
|
413
|
+
* This function can't be called in read-only mode.
|
|
414
|
+
*
|
|
324
415
|
* @throws This function can throw errors.
|
|
325
416
|
*/
|
|
326
417
|
attack(): boolean;
|
|
@@ -331,6 +422,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
331
422
|
* player was not on cooldown and had a valid target. The
|
|
332
423
|
* attack can be performed at any distance and does not require
|
|
333
424
|
* line of sight to the target entity.
|
|
425
|
+
*
|
|
426
|
+
* This function can't be called in read-only mode.
|
|
427
|
+
*
|
|
334
428
|
* @throws This function can throw errors.
|
|
335
429
|
*/
|
|
336
430
|
attackEntity(entity: minecraftserver.Entity): boolean;
|
|
@@ -340,6 +434,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
340
434
|
* the server player's game mode. The block will be hit until
|
|
341
435
|
* broken, an item is used or stopBreakingBlock is called.
|
|
342
436
|
* Returns true if the block at blockLocation is solid.
|
|
437
|
+
*
|
|
438
|
+
* This function can't be called in read-only mode.
|
|
439
|
+
*
|
|
343
440
|
* @param blockLocation
|
|
344
441
|
* Location of the block to interact with.
|
|
345
442
|
* @param direction
|
|
@@ -351,12 +448,18 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
351
448
|
* @remarks
|
|
352
449
|
* Simulates and performs a disconnection of the simulated
|
|
353
450
|
* player from the world.
|
|
451
|
+
*
|
|
452
|
+
* This function can't be called in read-only mode.
|
|
453
|
+
*
|
|
354
454
|
* @throws This function can throw errors.
|
|
355
455
|
*/
|
|
356
456
|
disconnect(): void;
|
|
357
457
|
/**
|
|
358
458
|
* @remarks
|
|
359
459
|
* Gives the simulated player a particular item stack.
|
|
460
|
+
*
|
|
461
|
+
* This function can't be called in read-only mode.
|
|
462
|
+
*
|
|
360
463
|
* @param itemStack
|
|
361
464
|
* Item to give.
|
|
362
465
|
* @param selectSlot
|
|
@@ -369,6 +472,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
369
472
|
* Performs a raycast from the player’s head and interacts with
|
|
370
473
|
* the first intersected block or entity. Returns true if the
|
|
371
474
|
* interaction was successful. Maximum range is 6 blocks.
|
|
475
|
+
*
|
|
476
|
+
* This function can't be called in read-only mode.
|
|
477
|
+
*
|
|
372
478
|
* @throws This function can throw errors.
|
|
373
479
|
*/
|
|
374
480
|
interact(): boolean;
|
|
@@ -377,6 +483,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
377
483
|
* Causes the simulated player to interact with a block. The
|
|
378
484
|
* block at the specified block location must be solid. Returns
|
|
379
485
|
* true if the interaction was performed.
|
|
486
|
+
*
|
|
487
|
+
* This function can't be called in read-only mode.
|
|
488
|
+
*
|
|
380
489
|
* @param blockLocation
|
|
381
490
|
* Location of the block to interact with.
|
|
382
491
|
* @param direction
|
|
@@ -388,6 +497,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
388
497
|
* @remarks
|
|
389
498
|
* Causes the simulated player to interact with a mob. Returns
|
|
390
499
|
* true if the interaction was performed.
|
|
500
|
+
*
|
|
501
|
+
* This function can't be called in read-only mode.
|
|
502
|
+
*
|
|
391
503
|
* @param entity
|
|
392
504
|
* Entity to interact with.
|
|
393
505
|
* @throws This function can throw errors.
|
|
@@ -396,6 +508,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
396
508
|
/**
|
|
397
509
|
* @remarks
|
|
398
510
|
* Causes the simulated player to jump.
|
|
511
|
+
*
|
|
512
|
+
* This function can't be called in read-only mode.
|
|
513
|
+
*
|
|
399
514
|
* @returns
|
|
400
515
|
* True if a jump was performed.
|
|
401
516
|
* @throws This function can throw errors.
|
|
@@ -405,6 +520,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
405
520
|
* @remarks
|
|
406
521
|
* Rotates the simulated player's head/body to look at the
|
|
407
522
|
* given block location.
|
|
523
|
+
*
|
|
524
|
+
* This function can't be called in read-only mode.
|
|
525
|
+
*
|
|
408
526
|
* @throws This function can throw errors.
|
|
409
527
|
*/
|
|
410
528
|
lookAtBlock(blockLocation: minecraftserver.Vector3): void;
|
|
@@ -412,6 +530,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
412
530
|
* @remarks
|
|
413
531
|
* Rotates the simulated player's head/body to look at the
|
|
414
532
|
* given entity.
|
|
533
|
+
*
|
|
534
|
+
* This function can't be called in read-only mode.
|
|
535
|
+
*
|
|
415
536
|
* @throws This function can throw errors.
|
|
416
537
|
*/
|
|
417
538
|
lookAtEntity(entity: minecraftserver.Entity): void;
|
|
@@ -419,6 +540,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
419
540
|
* @remarks
|
|
420
541
|
* Rotates the simulated player's head/body to look at the
|
|
421
542
|
* given location.
|
|
543
|
+
*
|
|
544
|
+
* This function can't be called in read-only mode.
|
|
545
|
+
*
|
|
422
546
|
* @throws This function can throw errors.
|
|
423
547
|
*/
|
|
424
548
|
lookAtLocation(location: minecraftserver.Vector3): void;
|
|
@@ -426,6 +550,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
426
550
|
* @remarks
|
|
427
551
|
* Orders the simulated player to walk in the given direction
|
|
428
552
|
* relative to the GameTest.
|
|
553
|
+
*
|
|
554
|
+
* This function can't be called in read-only mode.
|
|
555
|
+
*
|
|
429
556
|
* @throws This function can throw errors.
|
|
430
557
|
*/
|
|
431
558
|
move(westEast: number, northSouth: number, speed?: number): void;
|
|
@@ -433,6 +560,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
433
560
|
* @remarks
|
|
434
561
|
* Orders the simulated player to walk in the given direction
|
|
435
562
|
* relative to the player's current rotation.
|
|
563
|
+
*
|
|
564
|
+
* This function can't be called in read-only mode.
|
|
565
|
+
*
|
|
436
566
|
* @throws This function can throw errors.
|
|
437
567
|
*/
|
|
438
568
|
moveRelative(leftRight: number, backwardForward: number, speed?: number): void;
|
|
@@ -442,6 +572,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
442
572
|
* location in a straight line. If a move or navigation is
|
|
443
573
|
* already playing, this will override the last
|
|
444
574
|
* move/navigation.
|
|
575
|
+
*
|
|
576
|
+
* This function can't be called in read-only mode.
|
|
577
|
+
*
|
|
445
578
|
* @throws This function can throw errors.
|
|
446
579
|
*/
|
|
447
580
|
moveToBlock(blockLocation: minecraftserver.Vector3, speed?: number): void;
|
|
@@ -450,6 +583,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
450
583
|
* Orders the simulated player to move to the given location in
|
|
451
584
|
* a straight line. If a move or navigation is already playing,
|
|
452
585
|
* this will override the last move/navigation.
|
|
586
|
+
*
|
|
587
|
+
* This function can't be called in read-only mode.
|
|
588
|
+
*
|
|
453
589
|
* @throws This function can throw errors.
|
|
454
590
|
*/
|
|
455
591
|
moveToLocation(location: minecraftserver.Vector3, speed?: number): void;
|
|
@@ -461,6 +597,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
461
597
|
* that if the simulated player gets stuck, that simulated
|
|
462
598
|
* player will stop. The player must be touching the ground in
|
|
463
599
|
* order to start navigation.
|
|
600
|
+
*
|
|
601
|
+
* This function can't be called in read-only mode.
|
|
602
|
+
*
|
|
464
603
|
* @throws This function can throw errors.
|
|
465
604
|
*/
|
|
466
605
|
navigateToBlock(blockLocation: minecraftserver.Vector3, speed?: number): minecraftserver.NavigationResult;
|
|
@@ -469,6 +608,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
469
608
|
* Will use navigation to follow the selected entity to within
|
|
470
609
|
* a one block radius. If a move or navigation is already
|
|
471
610
|
* playing, this will override the last move/navigation.
|
|
611
|
+
*
|
|
612
|
+
* This function can't be called in read-only mode.
|
|
613
|
+
*
|
|
472
614
|
* @throws This function can throw errors.
|
|
473
615
|
*/
|
|
474
616
|
navigateToEntity(entity: minecraftserver.Entity, speed?: number): minecraftserver.NavigationResult;
|
|
@@ -480,6 +622,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
480
622
|
* the simulated player gets stuck, that simulated player will
|
|
481
623
|
* stop. The player must be touching the ground in order to
|
|
482
624
|
* start navigation.
|
|
625
|
+
*
|
|
626
|
+
* This function can't be called in read-only mode.
|
|
627
|
+
*
|
|
483
628
|
* @throws This function can throw errors.
|
|
484
629
|
*/
|
|
485
630
|
navigateToLocation(location: minecraftserver.Vector3, speed?: number): minecraftserver.NavigationResult;
|
|
@@ -488,6 +633,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
488
633
|
* Use navigation to follow the route provided via the
|
|
489
634
|
* locations parameter. If a move or navigation is already
|
|
490
635
|
* playing, this will override the last move/navigation.
|
|
636
|
+
*
|
|
637
|
+
* This function can't be called in read-only mode.
|
|
638
|
+
*
|
|
491
639
|
* @param locations
|
|
492
640
|
* A list of locations to use for routing.
|
|
493
641
|
* @param speed
|
|
@@ -498,6 +646,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
498
646
|
/**
|
|
499
647
|
* @remarks
|
|
500
648
|
* Respawns the particular simulated player.
|
|
649
|
+
*
|
|
650
|
+
* This function can't be called in read-only mode.
|
|
651
|
+
*
|
|
501
652
|
* @throws This function can throw errors.
|
|
502
653
|
*/
|
|
503
654
|
respawn(): boolean;
|
|
@@ -505,6 +656,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
505
656
|
* @remarks
|
|
506
657
|
* Causes the simulated player to turn by the provided angle,
|
|
507
658
|
* relative to the player's current rotation.
|
|
659
|
+
*
|
|
660
|
+
* This function can't be called in read-only mode.
|
|
661
|
+
*
|
|
508
662
|
* @throws This function can throw errors.
|
|
509
663
|
*/
|
|
510
664
|
rotateBody(angleInDegrees: number): void;
|
|
@@ -512,6 +666,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
512
666
|
* @remarks
|
|
513
667
|
* Causes the simulated player to turn to face the provided
|
|
514
668
|
* angle, relative to the GameTest.
|
|
669
|
+
*
|
|
670
|
+
* This function can't be called in read-only mode.
|
|
671
|
+
*
|
|
515
672
|
* @throws This function can throw errors.
|
|
516
673
|
*/
|
|
517
674
|
setBodyRotation(angleInDegrees: number): void;
|
|
@@ -519,6 +676,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
519
676
|
* @remarks
|
|
520
677
|
* Sets the game mode that the simulated player is operating
|
|
521
678
|
* under.
|
|
679
|
+
*
|
|
680
|
+
* This function can't be called in read-only mode.
|
|
681
|
+
*
|
|
522
682
|
* @param gameMode
|
|
523
683
|
* Game mode to set.
|
|
524
684
|
* @throws This function can throw errors.
|
|
@@ -527,6 +687,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
527
687
|
/**
|
|
528
688
|
* @remarks
|
|
529
689
|
* Sets a particular item for the simulated player.
|
|
690
|
+
*
|
|
691
|
+
* This function can't be called in read-only mode.
|
|
692
|
+
*
|
|
530
693
|
* @param itemStack
|
|
531
694
|
* Item to set.
|
|
532
695
|
* @param slot
|
|
@@ -539,12 +702,18 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
539
702
|
/**
|
|
540
703
|
* @remarks
|
|
541
704
|
* Stops destroying the block that is currently being hit.
|
|
705
|
+
*
|
|
706
|
+
* This function can't be called in read-only mode.
|
|
707
|
+
*
|
|
542
708
|
* @throws This function can throw errors.
|
|
543
709
|
*/
|
|
544
710
|
stopBreakingBlock(): void;
|
|
545
711
|
/**
|
|
546
712
|
* @remarks
|
|
547
713
|
* Stops interacting with entities or blocks.
|
|
714
|
+
*
|
|
715
|
+
* This function can't be called in read-only mode.
|
|
716
|
+
*
|
|
548
717
|
* @throws This function can throw errors.
|
|
549
718
|
*/
|
|
550
719
|
stopInteracting(): void;
|
|
@@ -552,12 +721,18 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
552
721
|
* @remarks
|
|
553
722
|
* Stops moving/walking/following if the simulated player is
|
|
554
723
|
* moving.
|
|
724
|
+
*
|
|
725
|
+
* This function can't be called in read-only mode.
|
|
726
|
+
*
|
|
555
727
|
* @throws This function can throw errors.
|
|
556
728
|
*/
|
|
557
729
|
stopMoving(): void;
|
|
558
730
|
/**
|
|
559
731
|
* @remarks
|
|
560
732
|
* Stops using the currently active item.
|
|
733
|
+
*
|
|
734
|
+
* This function can't be called in read-only mode.
|
|
735
|
+
*
|
|
561
736
|
* @throws This function can throw errors.
|
|
562
737
|
*/
|
|
563
738
|
stopUsingItem(): void;
|
|
@@ -565,6 +740,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
565
740
|
* @remarks
|
|
566
741
|
* Causes the simulated player to use an item. Does not consume
|
|
567
742
|
* the item. Returns false if the item is on cooldown.
|
|
743
|
+
*
|
|
744
|
+
* This function can't be called in read-only mode.
|
|
745
|
+
*
|
|
568
746
|
* @param itemStack
|
|
569
747
|
* Item to use.
|
|
570
748
|
* @throws This function can throw errors.
|
|
@@ -574,6 +752,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
574
752
|
* @remarks
|
|
575
753
|
* Causes the simulated player to hold and use an item in their
|
|
576
754
|
* inventory.
|
|
755
|
+
*
|
|
756
|
+
* This function can't be called in read-only mode.
|
|
757
|
+
*
|
|
577
758
|
* @param slot
|
|
578
759
|
* Index of the inventory slot.
|
|
579
760
|
* @throws This function can throw errors.
|
|
@@ -584,16 +765,15 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
584
765
|
* Causes the simulated player to use an item in their
|
|
585
766
|
* inventory on a block. The block at the specified block
|
|
586
767
|
* location must be solid. Returns true if the item was used.
|
|
768
|
+
*
|
|
769
|
+
* This function can't be called in read-only mode.
|
|
770
|
+
*
|
|
587
771
|
* @param slot
|
|
588
772
|
* Index of the slot to use.
|
|
589
773
|
* @param blockLocation
|
|
590
774
|
* Location to use the item upon.
|
|
591
775
|
* @param direction
|
|
592
776
|
* Direction to place the specified item within.
|
|
593
|
-
* @param faceLocationX
|
|
594
|
-
* Block-face-relative X position where to place the item.
|
|
595
|
-
* @param faceLocationY
|
|
596
|
-
* Block-face-relative Y position where to place the item.
|
|
597
777
|
* @throws This function can throw errors.
|
|
598
778
|
*/
|
|
599
779
|
useItemInSlotOnBlock(
|
|
@@ -608,16 +788,15 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
608
788
|
* Causes the simulated player to use an item on a block. The
|
|
609
789
|
* block at the specified block location must be solid. Returns
|
|
610
790
|
* true if the item was used.
|
|
791
|
+
*
|
|
792
|
+
* This function can't be called in read-only mode.
|
|
793
|
+
*
|
|
611
794
|
* @param itemStack
|
|
612
795
|
* Item to use.
|
|
613
796
|
* @param blockLocation
|
|
614
797
|
* Location to use the item upon.
|
|
615
798
|
* @param direction
|
|
616
799
|
* Direction to place the specified item within.
|
|
617
|
-
* @param faceLocationX
|
|
618
|
-
* Block-face-relative X position where to place the item.
|
|
619
|
-
* @param faceLocationY
|
|
620
|
-
* Block-face-relative Y position where to place the item.
|
|
621
800
|
* @throws This function can throw errors.
|
|
622
801
|
*/
|
|
623
802
|
useItemOnBlock(
|
|
@@ -628,6 +807,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
628
807
|
faceLocationY?: number,
|
|
629
808
|
): boolean;
|
|
630
809
|
}
|
|
810
|
+
|
|
631
811
|
/**
|
|
632
812
|
* These well-known tags can be used to classify different
|
|
633
813
|
* tests into suites to run.
|
|
@@ -635,26 +815,35 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
635
815
|
export class Tags {
|
|
636
816
|
protected constructor();
|
|
637
817
|
/**
|
|
818
|
+
* @remarks
|
|
638
819
|
* Indicates that the tagged test should be a part of all
|
|
639
820
|
* suites.
|
|
821
|
+
*
|
|
640
822
|
*/
|
|
641
823
|
static readonly suiteAll = 'suite:all';
|
|
642
824
|
/**
|
|
825
|
+
* @remarks
|
|
643
826
|
* Indicates that the tagged test should be a part of an
|
|
644
827
|
* internal (debug) test suite.
|
|
828
|
+
*
|
|
645
829
|
*/
|
|
646
830
|
static readonly suiteDebug = 'suite:debug';
|
|
647
831
|
/**
|
|
832
|
+
* @remarks
|
|
648
833
|
* Indicates that the tagged test should be a part of the
|
|
649
834
|
* default test suite.
|
|
835
|
+
*
|
|
650
836
|
*/
|
|
651
837
|
static readonly suiteDefault = 'suite:default';
|
|
652
838
|
/**
|
|
839
|
+
* @remarks
|
|
653
840
|
* Indicates that the tagged test should be a part of a suite
|
|
654
841
|
* of disabled tests.
|
|
842
|
+
*
|
|
655
843
|
*/
|
|
656
844
|
static readonly suiteDisabled = 'suite:disabled';
|
|
657
845
|
}
|
|
846
|
+
|
|
658
847
|
/**
|
|
659
848
|
* Main class for GameTest functions, with helpers and data for
|
|
660
849
|
* manipulating the respective test. Note that all methods of
|
|
@@ -667,6 +856,9 @@ export class Test {
|
|
|
667
856
|
* @remarks
|
|
668
857
|
* Tests that the condition specified in _condition_ is true.
|
|
669
858
|
* If not, an error with the specified _message_ is thrown.
|
|
859
|
+
*
|
|
860
|
+
* This function can't be called in read-only mode.
|
|
861
|
+
*
|
|
670
862
|
* @param condition
|
|
671
863
|
* Expression of the condition to evaluate.
|
|
672
864
|
* @param message
|
|
@@ -679,6 +871,9 @@ export class Test {
|
|
|
679
871
|
* @remarks
|
|
680
872
|
* Tests that a block of the specified type is present at the
|
|
681
873
|
* specified location. If it is not, an exception is thrown.
|
|
874
|
+
*
|
|
875
|
+
* This function can't be called in read-only mode.
|
|
876
|
+
*
|
|
682
877
|
* @param blockType
|
|
683
878
|
* Expected block type.
|
|
684
879
|
* @param blockLocation
|
|
@@ -699,6 +894,9 @@ export class Test {
|
|
|
699
894
|
* Tests that a block has a particular state value at the
|
|
700
895
|
* specified location. If it does not have that state value, an
|
|
701
896
|
* exception is thrown.
|
|
897
|
+
*
|
|
898
|
+
* This function can't be called in read-only mode.
|
|
899
|
+
*
|
|
702
900
|
* @param blockLocation
|
|
703
901
|
* Location of the block to test at.
|
|
704
902
|
* @param callback
|
|
@@ -719,6 +917,9 @@ export class Test {
|
|
|
719
917
|
* Tests that an entity can reach a particular location.
|
|
720
918
|
* Depending on the value of canReach, throws an exception if
|
|
721
919
|
* the condition is not met.
|
|
920
|
+
*
|
|
921
|
+
* This function can't be called in read-only mode.
|
|
922
|
+
*
|
|
722
923
|
* @param mob
|
|
723
924
|
* Entity that you wish to test the location against.
|
|
724
925
|
* @param blockLocation
|
|
@@ -740,6 +941,9 @@ export class Test {
|
|
|
740
941
|
* Tests that a container (e.g., a chest) at the specified
|
|
741
942
|
* location contains a specified of item stack. If not, an
|
|
742
943
|
* error is thrown.
|
|
944
|
+
*
|
|
945
|
+
* This function can't be called in read-only mode.
|
|
946
|
+
*
|
|
743
947
|
* @param itemStack
|
|
744
948
|
* Represents the type of item to check for. The specified
|
|
745
949
|
* container must contain at least 1 item matching the item
|
|
@@ -754,6 +958,9 @@ export class Test {
|
|
|
754
958
|
* @remarks
|
|
755
959
|
* Tests that a container (e.g., a chest) at the specified
|
|
756
960
|
* location is empty. If not, an error is thrown.
|
|
961
|
+
*
|
|
962
|
+
* This function can't be called in read-only mode.
|
|
963
|
+
*
|
|
757
964
|
* @param blockLocation
|
|
758
965
|
* Location of the block with a container (for example, a
|
|
759
966
|
* chest) to test is empty of contents.
|
|
@@ -764,6 +971,9 @@ export class Test {
|
|
|
764
971
|
* @remarks
|
|
765
972
|
* Tests that an entity has a specific piece of armor equipped.
|
|
766
973
|
* If not, an error is thrown.
|
|
974
|
+
*
|
|
975
|
+
* This function can't be called in read-only mode.
|
|
976
|
+
*
|
|
767
977
|
* @param entityTypeIdentifier
|
|
768
978
|
* Identifier of the entity to match (e.g.,
|
|
769
979
|
* 'minecraft:skeleton').
|
|
@@ -797,6 +1007,9 @@ export class Test {
|
|
|
797
1007
|
* @remarks
|
|
798
1008
|
* Tests that an entity has a particular component. If not, an
|
|
799
1009
|
* exception is thrown.
|
|
1010
|
+
*
|
|
1011
|
+
* This function can't be called in read-only mode.
|
|
1012
|
+
*
|
|
800
1013
|
* @param entityTypeIdentifier
|
|
801
1014
|
* Identifier of the specified entity (e.g.,
|
|
802
1015
|
* 'minecraft:skeleton'). If the namespace is not specified,
|
|
@@ -829,6 +1042,9 @@ export class Test {
|
|
|
829
1042
|
* particular entity is present or not present at the specified
|
|
830
1043
|
* location. Depending on the value of isPresent, if the entity
|
|
831
1044
|
* is found or not found, an error is thrown.
|
|
1045
|
+
*
|
|
1046
|
+
* This function can't be called in read-only mode.
|
|
1047
|
+
*
|
|
832
1048
|
* @param entity
|
|
833
1049
|
* Specific entity to test for.
|
|
834
1050
|
* @param blockLocation
|
|
@@ -847,6 +1063,9 @@ export class Test {
|
|
|
847
1063
|
* @remarks
|
|
848
1064
|
* Tests that an entity instance is present within the GameTest
|
|
849
1065
|
* area. If not, an exception is thrown.
|
|
1066
|
+
*
|
|
1067
|
+
* This function can't be called in read-only mode.
|
|
1068
|
+
*
|
|
850
1069
|
* @param entity
|
|
851
1070
|
* Entity instance to test for.
|
|
852
1071
|
* @param isPresent
|
|
@@ -882,6 +1101,9 @@ export class Test {
|
|
|
882
1101
|
* or non-presence of entity of a specified type at a
|
|
883
1102
|
* particular location. If the condition is not met, an
|
|
884
1103
|
* exception is thrown.
|
|
1104
|
+
*
|
|
1105
|
+
* This function can't be called in read-only mode.
|
|
1106
|
+
*
|
|
885
1107
|
* @param entityTypeIdentifier
|
|
886
1108
|
* Type of entity to test for (e.g., 'minecraft:skeleton'). If
|
|
887
1109
|
* an entity namespace is not specified, 'minecraft:' is
|
|
@@ -907,6 +1129,9 @@ export class Test {
|
|
|
907
1129
|
* @remarks
|
|
908
1130
|
* Tests that an entity of a specified type is present within
|
|
909
1131
|
* the GameTest area. If not, an exception is thrown.
|
|
1132
|
+
*
|
|
1133
|
+
* This function can't be called in read-only mode.
|
|
1134
|
+
*
|
|
910
1135
|
* @param entityTypeIdentifier
|
|
911
1136
|
* Type of entity to test for (e.g., 'minecraft:skeleton'). If
|
|
912
1137
|
* an entity namespace is not specified, 'minecraft:' is
|
|
@@ -943,6 +1168,9 @@ export class Test {
|
|
|
943
1168
|
* Tests that an entity (e.g., a skeleton) at the specified
|
|
944
1169
|
* location has a particular piece of data. If not, an error is
|
|
945
1170
|
* thrown.
|
|
1171
|
+
*
|
|
1172
|
+
* This function can't be called in read-only mode.
|
|
1173
|
+
*
|
|
946
1174
|
* @param blockLocation
|
|
947
1175
|
* Location of the entity to look for.
|
|
948
1176
|
* @param entityTypeIdentifier
|
|
@@ -975,6 +1203,9 @@ export class Test {
|
|
|
975
1203
|
* Depending on the value of isTouching, tests that an entity
|
|
976
1204
|
* of a specified type is touching or connected to another
|
|
977
1205
|
* entity. If the condition is not met, an exception is thrown.
|
|
1206
|
+
*
|
|
1207
|
+
* This function can't be called in read-only mode.
|
|
1208
|
+
*
|
|
978
1209
|
* @param entityTypeIdentifier
|
|
979
1210
|
* Type of entity to test for (e.g., 'minecraft:skeleton'). If
|
|
980
1211
|
* an entity namespace is not specified, 'minecraft:' is
|
|
@@ -994,6 +1225,9 @@ export class Test {
|
|
|
994
1225
|
* at a location contains water. If the condition is not met,
|
|
995
1226
|
* an error is thrown. Pure water blocks are not considered to
|
|
996
1227
|
* be waterlogged.
|
|
1228
|
+
*
|
|
1229
|
+
* This function can't be called in read-only mode.
|
|
1230
|
+
*
|
|
997
1231
|
* @param blockLocation
|
|
998
1232
|
* Location of the block to test for.
|
|
999
1233
|
* @param isWaterlogged
|
|
@@ -1006,6 +1240,9 @@ export class Test {
|
|
|
1006
1240
|
* @remarks
|
|
1007
1241
|
* Tests that items of a particular type and count are present
|
|
1008
1242
|
* within an area. If not, an error is thrown.
|
|
1243
|
+
*
|
|
1244
|
+
* This function can't be called in read-only mode.
|
|
1245
|
+
*
|
|
1009
1246
|
* @param itemType
|
|
1010
1247
|
* Type of item to look for.
|
|
1011
1248
|
* @param blockLocation
|
|
@@ -1034,6 +1271,9 @@ export class Test {
|
|
|
1034
1271
|
* particular item entity is present or not at a particular
|
|
1035
1272
|
* location. If the condition is not met, an exception is
|
|
1036
1273
|
* thrown.
|
|
1274
|
+
*
|
|
1275
|
+
* This function can't be called in read-only mode.
|
|
1276
|
+
*
|
|
1037
1277
|
* @param itemType
|
|
1038
1278
|
* Type of item to test for.
|
|
1039
1279
|
* @param blockLocation
|
|
@@ -1056,6 +1296,9 @@ export class Test {
|
|
|
1056
1296
|
* @remarks
|
|
1057
1297
|
* Tests that Redstone power at a particular location matches a
|
|
1058
1298
|
* particular value. If not, an exception is thrown.
|
|
1299
|
+
*
|
|
1300
|
+
* This function can't be called in read-only mode.
|
|
1301
|
+
*
|
|
1059
1302
|
* @param blockLocation
|
|
1060
1303
|
* Location to test.
|
|
1061
1304
|
* @param power
|
|
@@ -1066,6 +1309,9 @@ export class Test {
|
|
|
1066
1309
|
/**
|
|
1067
1310
|
* @remarks
|
|
1068
1311
|
* Destroys a block at a particular location.
|
|
1312
|
+
*
|
|
1313
|
+
* This function can't be called in read-only mode.
|
|
1314
|
+
*
|
|
1069
1315
|
* @param blockLocation
|
|
1070
1316
|
* Location of the block to destroy.
|
|
1071
1317
|
* @param dropResources
|
|
@@ -1076,6 +1322,9 @@ export class Test {
|
|
|
1076
1322
|
/**
|
|
1077
1323
|
* @remarks
|
|
1078
1324
|
* Marks the current test as a failure case.
|
|
1325
|
+
*
|
|
1326
|
+
* This function can't be called in read-only mode.
|
|
1327
|
+
*
|
|
1079
1328
|
* @param errorMessage
|
|
1080
1329
|
* Error message summarizing the failure condition.
|
|
1081
1330
|
* @throws This function can throw errors.
|
|
@@ -1085,6 +1334,9 @@ export class Test {
|
|
|
1085
1334
|
* @remarks
|
|
1086
1335
|
* Runs the given callback. If the callback does not throw an
|
|
1087
1336
|
* exception, the test is marked as a failure.
|
|
1337
|
+
*
|
|
1338
|
+
* This function can't be called in read-only mode.
|
|
1339
|
+
*
|
|
1088
1340
|
* @param callback
|
|
1089
1341
|
* Callback function that runs. If the function runs
|
|
1090
1342
|
* successfully, the test is marked as a failure. Typically,
|
|
@@ -1095,6 +1347,9 @@ export class Test {
|
|
|
1095
1347
|
/**
|
|
1096
1348
|
* @remarks
|
|
1097
1349
|
* Gets a block at the specified block location.
|
|
1350
|
+
*
|
|
1351
|
+
* This function can't be called in read-only mode.
|
|
1352
|
+
*
|
|
1098
1353
|
* @param blockLocation
|
|
1099
1354
|
* Location of the block to retrieve.
|
|
1100
1355
|
* @throws This function can throw errors.
|
|
@@ -1103,6 +1358,9 @@ export class Test {
|
|
|
1103
1358
|
/**
|
|
1104
1359
|
* @remarks
|
|
1105
1360
|
* Gets the dimension of this test.
|
|
1361
|
+
*
|
|
1362
|
+
* This function can't be called in read-only mode.
|
|
1363
|
+
*
|
|
1106
1364
|
* @throws This function can throw errors.
|
|
1107
1365
|
*/
|
|
1108
1366
|
getDimension(): minecraftserver.Dimension;
|
|
@@ -1111,6 +1369,9 @@ export class Test {
|
|
|
1111
1369
|
* If the block at the specified block location is a fence,
|
|
1112
1370
|
* this returns a helper object with details on how a fence is
|
|
1113
1371
|
* connected.
|
|
1372
|
+
*
|
|
1373
|
+
* This function can't be called in read-only mode.
|
|
1374
|
+
*
|
|
1114
1375
|
* @param blockLocation
|
|
1115
1376
|
* Location of the block to retrieve.
|
|
1116
1377
|
* @throws This function can throw errors.
|
|
@@ -1120,6 +1381,9 @@ export class Test {
|
|
|
1120
1381
|
* @remarks
|
|
1121
1382
|
* Retrieves a sculk spreader object that can be used to
|
|
1122
1383
|
* control and manage how sculk grows from a block.
|
|
1384
|
+
*
|
|
1385
|
+
* This function can't be called in read-only mode.
|
|
1386
|
+
*
|
|
1123
1387
|
* @param blockLocation
|
|
1124
1388
|
* Location of the block to retrieve a sculk spreader from.
|
|
1125
1389
|
* @throws This function can throw errors.
|
|
@@ -1130,12 +1394,18 @@ export class Test {
|
|
|
1130
1394
|
* Returns the direction of the current test - see the {@link
|
|
1131
1395
|
* @minecraft/server.Direction} enum for more information on
|
|
1132
1396
|
* potential values (north, east, south, west - values 2-5).
|
|
1397
|
+
*
|
|
1398
|
+
* This function can't be called in read-only mode.
|
|
1399
|
+
*
|
|
1133
1400
|
*/
|
|
1134
1401
|
getTestDirection(): minecraftserver.Direction;
|
|
1135
1402
|
/**
|
|
1136
1403
|
* @remarks
|
|
1137
1404
|
* This asynchronous function will wait for the specified time
|
|
1138
1405
|
* in ticks before continuing execution.
|
|
1406
|
+
*
|
|
1407
|
+
* This function can't be called in read-only mode.
|
|
1408
|
+
*
|
|
1139
1409
|
* @param tickDelay
|
|
1140
1410
|
* Amount of time to wait, in ticks.
|
|
1141
1411
|
*/
|
|
@@ -1143,13 +1413,25 @@ export class Test {
|
|
|
1143
1413
|
/**
|
|
1144
1414
|
* @remarks
|
|
1145
1415
|
* Kills all entities within the GameTest structure.
|
|
1416
|
+
*
|
|
1417
|
+
* This function can't be called in read-only mode.
|
|
1418
|
+
*
|
|
1146
1419
|
* @throws This function can throw errors.
|
|
1147
1420
|
*/
|
|
1148
1421
|
killAllEntities(): void;
|
|
1422
|
+
/**
|
|
1423
|
+
* @remarks
|
|
1424
|
+
* This function can't be called in read-only mode.
|
|
1425
|
+
*
|
|
1426
|
+
* @throws This function can throw errors.
|
|
1427
|
+
*/
|
|
1149
1428
|
onPlayerJump(mob: minecraftserver.Entity, jumpAmount: number): void;
|
|
1150
1429
|
/**
|
|
1151
1430
|
* @remarks
|
|
1152
1431
|
* Presses a button at a block location.
|
|
1432
|
+
*
|
|
1433
|
+
* This function can't be called in read-only mode.
|
|
1434
|
+
*
|
|
1153
1435
|
* @param blockLocation
|
|
1154
1436
|
* Location to push the button at.
|
|
1155
1437
|
* @throws
|
|
@@ -1160,6 +1442,9 @@ export class Test {
|
|
|
1160
1442
|
/**
|
|
1161
1443
|
* @remarks
|
|
1162
1444
|
* Displays the specified message to all players.
|
|
1445
|
+
*
|
|
1446
|
+
* This function can't be called in read-only mode.
|
|
1447
|
+
*
|
|
1163
1448
|
* @param text
|
|
1164
1449
|
* Message to display.
|
|
1165
1450
|
* @throws This function can throw errors.
|
|
@@ -1168,6 +1453,9 @@ export class Test {
|
|
|
1168
1453
|
/**
|
|
1169
1454
|
* @remarks
|
|
1170
1455
|
* Pulls a lever at a block location.
|
|
1456
|
+
*
|
|
1457
|
+
* This function can't be called in read-only mode.
|
|
1458
|
+
*
|
|
1171
1459
|
* @param blockLocation
|
|
1172
1460
|
* Location to pull the lever at.
|
|
1173
1461
|
* @throws
|
|
@@ -1179,6 +1467,9 @@ export class Test {
|
|
|
1179
1467
|
* @remarks
|
|
1180
1468
|
* Sends a Redstone pulse at a particular location by creating
|
|
1181
1469
|
* a temporary Redstone block.
|
|
1470
|
+
*
|
|
1471
|
+
* This function can't be called in read-only mode.
|
|
1472
|
+
*
|
|
1182
1473
|
* @param blockLocation
|
|
1183
1474
|
* Location to pulse Redstone at.
|
|
1184
1475
|
* @param duration
|
|
@@ -1193,6 +1484,9 @@ export class Test {
|
|
|
1193
1484
|
* block. For example, the relative coordinates for the block
|
|
1194
1485
|
* above the structure block are (0, 1, 0). Rotation of the
|
|
1195
1486
|
* GameTest structure is also taken into account.
|
|
1487
|
+
*
|
|
1488
|
+
* This function can't be called in read-only mode.
|
|
1489
|
+
*
|
|
1196
1490
|
* @param worldBlockLocation
|
|
1197
1491
|
* Absolute location in the world to convert to a relative
|
|
1198
1492
|
* location.
|
|
@@ -1208,6 +1502,9 @@ export class Test {
|
|
|
1208
1502
|
* example, the relative coordinates for the block above the
|
|
1209
1503
|
* structure block are (0, 1, 0). Rotation of the GameTest
|
|
1210
1504
|
* structure is also taken into account.
|
|
1505
|
+
*
|
|
1506
|
+
* This function can't be called in read-only mode.
|
|
1507
|
+
*
|
|
1211
1508
|
* @param worldLocation
|
|
1212
1509
|
* Absolute location in the world to convert to a relative
|
|
1213
1510
|
* location.
|
|
@@ -1219,6 +1516,9 @@ export class Test {
|
|
|
1219
1516
|
/**
|
|
1220
1517
|
* @remarks
|
|
1221
1518
|
* Removes a simulated player from the world.
|
|
1519
|
+
*
|
|
1520
|
+
* This function can't be called in read-only mode.
|
|
1521
|
+
*
|
|
1222
1522
|
* @param simulatedPlayer
|
|
1223
1523
|
* Simulated player to remove.
|
|
1224
1524
|
*/
|
|
@@ -1229,6 +1529,9 @@ export class Test {
|
|
|
1229
1529
|
* the current test. Passing in Direction.south will return the
|
|
1230
1530
|
* test direction; Passing in Direction.north will return the
|
|
1231
1531
|
* opposite of the test direction, and so on.
|
|
1532
|
+
*
|
|
1533
|
+
* This function can't be called in read-only mode.
|
|
1534
|
+
*
|
|
1232
1535
|
* @param direction
|
|
1233
1536
|
* Direction to translate into a direction relative to the
|
|
1234
1537
|
* GameTest facing. Passing in Direction.south will return the
|
|
@@ -1238,12 +1541,18 @@ export class Test {
|
|
|
1238
1541
|
*/
|
|
1239
1542
|
rotateDirection(direction: minecraftserver.Direction): minecraftserver.Direction;
|
|
1240
1543
|
/**
|
|
1544
|
+
* @remarks
|
|
1545
|
+
* This function can't be called in read-only mode.
|
|
1546
|
+
*
|
|
1241
1547
|
* @throws This function can throw errors.
|
|
1242
1548
|
*/
|
|
1243
1549
|
rotateVector(vector: minecraftserver.Vector): minecraftserver.Vector;
|
|
1244
1550
|
/**
|
|
1245
1551
|
* @remarks
|
|
1246
1552
|
* Runs a specific callback after a specified delay of ticks
|
|
1553
|
+
*
|
|
1554
|
+
* This function can't be called in read-only mode.
|
|
1555
|
+
*
|
|
1247
1556
|
* @param delayTicks
|
|
1248
1557
|
* Number of ticks to delay before running the specified
|
|
1249
1558
|
* callback.
|
|
@@ -1256,6 +1565,9 @@ export class Test {
|
|
|
1256
1565
|
* @remarks
|
|
1257
1566
|
* Runs the given callback after a delay of _tick_ ticks from
|
|
1258
1567
|
* the start of the GameTest.
|
|
1568
|
+
*
|
|
1569
|
+
* This function can't be called in read-only mode.
|
|
1570
|
+
*
|
|
1259
1571
|
* @param tick
|
|
1260
1572
|
* Tick (after the start of the GameTest) to run the callback
|
|
1261
1573
|
* at.
|
|
@@ -1268,6 +1580,9 @@ export class Test {
|
|
|
1268
1580
|
* @remarks
|
|
1269
1581
|
* Sets a block to a particular configuration (a
|
|
1270
1582
|
* BlockPermutation) at the specified block location.
|
|
1583
|
+
*
|
|
1584
|
+
* This function can't be called in read-only mode.
|
|
1585
|
+
*
|
|
1271
1586
|
* @param blockData
|
|
1272
1587
|
* Permutation that contains the configuration data for a
|
|
1273
1588
|
* block.
|
|
@@ -1280,6 +1595,9 @@ export class Test {
|
|
|
1280
1595
|
* @remarks
|
|
1281
1596
|
* Sets a block to a particular type at the specified block
|
|
1282
1597
|
* location.
|
|
1598
|
+
*
|
|
1599
|
+
* This function can't be called in read-only mode.
|
|
1600
|
+
*
|
|
1283
1601
|
* @param blockType
|
|
1284
1602
|
* Type of block to set.
|
|
1285
1603
|
* @param blockLocation
|
|
@@ -1291,6 +1609,9 @@ export class Test {
|
|
|
1291
1609
|
* @remarks
|
|
1292
1610
|
* For blocks that are fluid containers - like a cauldron -
|
|
1293
1611
|
* changes the type of fluid within that container.
|
|
1612
|
+
*
|
|
1613
|
+
* This function can't be called in read-only mode.
|
|
1614
|
+
*
|
|
1294
1615
|
* @param location
|
|
1295
1616
|
* Location of the fluid container block.
|
|
1296
1617
|
* @param type
|
|
@@ -1302,6 +1623,9 @@ export class Test {
|
|
|
1302
1623
|
/**
|
|
1303
1624
|
* @remarks
|
|
1304
1625
|
* Sets the fuse of an explodable entity.
|
|
1626
|
+
*
|
|
1627
|
+
* This function can't be called in read-only mode.
|
|
1628
|
+
*
|
|
1305
1629
|
* @param entity
|
|
1306
1630
|
* Entity that is explodable.
|
|
1307
1631
|
* @param fuseLength
|
|
@@ -1312,6 +1636,9 @@ export class Test {
|
|
|
1312
1636
|
/**
|
|
1313
1637
|
* @remarks
|
|
1314
1638
|
* Spawns an entity at a location.
|
|
1639
|
+
*
|
|
1640
|
+
* This function can't be called in read-only mode.
|
|
1641
|
+
*
|
|
1315
1642
|
* @param entityTypeIdentifier
|
|
1316
1643
|
* Type of entity to create. If no namespace is provided,
|
|
1317
1644
|
* 'minecraft:' is assumed. Note that an optional initial spawn
|
|
@@ -1351,6 +1678,9 @@ export class Test {
|
|
|
1351
1678
|
/**
|
|
1352
1679
|
* @remarks
|
|
1353
1680
|
* Spawns an entity at a location.
|
|
1681
|
+
*
|
|
1682
|
+
* This function can't be called in read-only mode.
|
|
1683
|
+
*
|
|
1354
1684
|
* @param entityTypeIdentifier
|
|
1355
1685
|
* Type of entity to create. If no namespace is provided,
|
|
1356
1686
|
* 'minecraft:' is assumed. Note that an optional initial spawn
|
|
@@ -1370,6 +1700,9 @@ export class Test {
|
|
|
1370
1700
|
/**
|
|
1371
1701
|
* @remarks
|
|
1372
1702
|
* Spawns an item entity at a specified location.
|
|
1703
|
+
*
|
|
1704
|
+
* This function can't be called in read-only mode.
|
|
1705
|
+
*
|
|
1373
1706
|
* @param itemStack
|
|
1374
1707
|
* ItemStack that describes the item entity to create.
|
|
1375
1708
|
* @param location
|
|
@@ -1390,6 +1723,9 @@ export class Test {
|
|
|
1390
1723
|
/**
|
|
1391
1724
|
* @remarks
|
|
1392
1725
|
* Creates a new simulated player within the world.
|
|
1726
|
+
*
|
|
1727
|
+
* This function can't be called in read-only mode.
|
|
1728
|
+
*
|
|
1393
1729
|
* @param blockLocation
|
|
1394
1730
|
* Location where to spawn the simulated player.
|
|
1395
1731
|
* @param name
|
|
@@ -1406,6 +1742,9 @@ export class Test {
|
|
|
1406
1742
|
* Spawns an entity at a location without any AI behaviors.
|
|
1407
1743
|
* This method is frequently used in conjunction with methods
|
|
1408
1744
|
* like .walkTo to create predictable mob actions.
|
|
1745
|
+
*
|
|
1746
|
+
* This function can't be called in read-only mode.
|
|
1747
|
+
*
|
|
1409
1748
|
* @param blockLocation
|
|
1410
1749
|
* Location where the entity should be spawned.
|
|
1411
1750
|
* @throws This function can throw errors.
|
|
@@ -1416,6 +1755,9 @@ export class Test {
|
|
|
1416
1755
|
* Spawns an entity at a location without any AI behaviors.
|
|
1417
1756
|
* This method is frequently used in conjunction with methods
|
|
1418
1757
|
* like .walkTo to create predictable mob actions.
|
|
1758
|
+
*
|
|
1759
|
+
* This function can't be called in read-only mode.
|
|
1760
|
+
*
|
|
1419
1761
|
* @param location
|
|
1420
1762
|
* Location where the entity should be spawned.
|
|
1421
1763
|
* @throws This function can throw errors.
|
|
@@ -1428,6 +1770,9 @@ export class Test {
|
|
|
1428
1770
|
* @remarks
|
|
1429
1771
|
* Tests that a particular item entity is present at a
|
|
1430
1772
|
* particular location. If not, an exception is thrown.
|
|
1773
|
+
*
|
|
1774
|
+
* This function can't be called in read-only mode.
|
|
1775
|
+
*
|
|
1431
1776
|
* @param blockLocation
|
|
1432
1777
|
* BlockLocation containing a multiface block.
|
|
1433
1778
|
* @param fromFace
|
|
@@ -1451,6 +1796,9 @@ export class Test {
|
|
|
1451
1796
|
* @remarks
|
|
1452
1797
|
* Creates a new GameTestSequence - A set of steps that play
|
|
1453
1798
|
* out sequentially within a GameTest.
|
|
1799
|
+
*
|
|
1800
|
+
* This function can't be called in read-only mode.
|
|
1801
|
+
*
|
|
1454
1802
|
* @returns
|
|
1455
1803
|
* A new GameTestSequence with chaining methods that facilitate
|
|
1456
1804
|
* creating a set of steps.
|
|
@@ -1459,6 +1807,9 @@ export class Test {
|
|
|
1459
1807
|
/**
|
|
1460
1808
|
* @remarks
|
|
1461
1809
|
* Marks the current test as a success case.
|
|
1810
|
+
*
|
|
1811
|
+
* This function can't be called in read-only mode.
|
|
1812
|
+
*
|
|
1462
1813
|
* @throws This function can throw errors.
|
|
1463
1814
|
*/
|
|
1464
1815
|
succeed(): void;
|
|
@@ -1466,6 +1817,9 @@ export class Test {
|
|
|
1466
1817
|
* @remarks
|
|
1467
1818
|
* Runs the given callback. If the callback does not throw an
|
|
1468
1819
|
* exception, the test is marked as a success.
|
|
1820
|
+
*
|
|
1821
|
+
* This function can't be called in read-only mode.
|
|
1822
|
+
*
|
|
1469
1823
|
* @param callback
|
|
1470
1824
|
* Callback function that runs. If the function runs
|
|
1471
1825
|
* successfully, the test is marked as a success. Typically,
|
|
@@ -1476,6 +1830,9 @@ export class Test {
|
|
|
1476
1830
|
/**
|
|
1477
1831
|
* @remarks
|
|
1478
1832
|
* Marks the test as a success at the specified tick.
|
|
1833
|
+
*
|
|
1834
|
+
* This function can't be called in read-only mode.
|
|
1835
|
+
*
|
|
1479
1836
|
* @param tick
|
|
1480
1837
|
* Tick after the start of the GameTest to mark the test as
|
|
1481
1838
|
* successful.
|
|
@@ -1487,6 +1844,9 @@ export class Test {
|
|
|
1487
1844
|
* Runs the given callback at _tick_ ticks after the start of
|
|
1488
1845
|
* the test. If the callback does not throw an exception, the
|
|
1489
1846
|
* test is marked as a failure.
|
|
1847
|
+
*
|
|
1848
|
+
* This function can't be called in read-only mode.
|
|
1849
|
+
*
|
|
1490
1850
|
* @param tick
|
|
1491
1851
|
* Tick after the start of the GameTest to run the testing
|
|
1492
1852
|
* callback at.
|
|
@@ -1502,6 +1862,9 @@ export class Test {
|
|
|
1502
1862
|
* successfully executes, the test is marked as a success.
|
|
1503
1863
|
* Specifically, the test will succeed when the callback does
|
|
1504
1864
|
* not throw an exception.
|
|
1865
|
+
*
|
|
1866
|
+
* This function can't be called in read-only mode.
|
|
1867
|
+
*
|
|
1505
1868
|
* @param callback
|
|
1506
1869
|
* Testing callback function that runs. If the function runs
|
|
1507
1870
|
* successfully, the test is marked as a success.
|
|
@@ -1534,6 +1897,9 @@ export class Test {
|
|
|
1534
1897
|
* presence of a block of a particular type on every tick. When
|
|
1535
1898
|
* the specified block of a type is found or not found
|
|
1536
1899
|
* (depending on isPresent), the test is marked as a success.
|
|
1900
|
+
*
|
|
1901
|
+
* This function can't be called in read-only mode.
|
|
1902
|
+
*
|
|
1537
1903
|
* @param blockType
|
|
1538
1904
|
* Type of block to test for.
|
|
1539
1905
|
* @param blockLocation
|
|
@@ -1554,6 +1920,9 @@ export class Test {
|
|
|
1554
1920
|
* Tests for the presence of a component on every tick.
|
|
1555
1921
|
* Depending on the value of hasComponent, when the specified
|
|
1556
1922
|
* component is found, the test is marked as a success.
|
|
1923
|
+
*
|
|
1924
|
+
* This function can't be called in read-only mode.
|
|
1925
|
+
*
|
|
1557
1926
|
* @param entityTypeIdentifier
|
|
1558
1927
|
* Type of entity to look for. If no namespace is specified,
|
|
1559
1928
|
* 'minecraft:' is assumed.
|
|
@@ -1580,6 +1949,9 @@ export class Test {
|
|
|
1580
1949
|
* of an entity on every tick. When an entity of the specified
|
|
1581
1950
|
* type is found or not found (depending on isPresent), the
|
|
1582
1951
|
* test is marked as a success.
|
|
1952
|
+
*
|
|
1953
|
+
* This function can't be called in read-only mode.
|
|
1954
|
+
*
|
|
1583
1955
|
* @param entityTypeIdentifier
|
|
1584
1956
|
* Type of entity to test for (e.g., 'minecraft:skeleton'). If
|
|
1585
1957
|
* an entity namespace is not specified, 'minecraft:' is
|
|
@@ -1601,6 +1973,9 @@ export class Test {
|
|
|
1601
1973
|
* @remarks
|
|
1602
1974
|
* Triggers a block event from a fixed list of available block
|
|
1603
1975
|
* events.
|
|
1976
|
+
*
|
|
1977
|
+
* This function can't be called in read-only mode.
|
|
1978
|
+
*
|
|
1604
1979
|
* @param event
|
|
1605
1980
|
* Event to trigger. Valid values include minecraft:drip,
|
|
1606
1981
|
* minecraft:grow_stalagtite, minecraft:grow_stalagmite,
|
|
@@ -1615,6 +1990,9 @@ export class Test {
|
|
|
1615
1990
|
* specified callback successfully completes. until can be used
|
|
1616
1991
|
* in conjunction with .assert functions to evaluate that a
|
|
1617
1992
|
* condition is true.
|
|
1993
|
+
*
|
|
1994
|
+
* This function can't be called in read-only mode.
|
|
1995
|
+
*
|
|
1618
1996
|
* @param callback
|
|
1619
1997
|
* Function with code to evaluate.
|
|
1620
1998
|
*/
|
|
@@ -1625,6 +2003,9 @@ export class Test {
|
|
|
1625
2003
|
* in conjunction with methods like .spawnWithoutBehaviors to
|
|
1626
2004
|
* have more predictable mob behaviors. Mobs will stop
|
|
1627
2005
|
* navigation as soon as they intersect the target location.
|
|
2006
|
+
*
|
|
2007
|
+
* This function can't be called in read-only mode.
|
|
2008
|
+
*
|
|
1628
2009
|
* @param mob
|
|
1629
2010
|
* Mob entity to give orders to.
|
|
1630
2011
|
* @param blockLocation
|
|
@@ -1640,6 +2021,9 @@ export class Test {
|
|
|
1640
2021
|
* in conjunction with methods like .spawnWithoutBehaviors to
|
|
1641
2022
|
* have more predictable mob behaviors. Mobs will stop
|
|
1642
2023
|
* navigation as soon as they intersect the target location.
|
|
2024
|
+
*
|
|
2025
|
+
* This function can't be called in read-only mode.
|
|
2026
|
+
*
|
|
1643
2027
|
* @param mob
|
|
1644
2028
|
* Mob entity to give orders to.
|
|
1645
2029
|
* @param location
|
|
@@ -1655,6 +2039,9 @@ export class Test {
|
|
|
1655
2039
|
* GameTest structure block, returns a new BlockLocation with
|
|
1656
2040
|
* coordinates relative to world. Rotation of the GameTest
|
|
1657
2041
|
* structure is also taken into account.
|
|
2042
|
+
*
|
|
2043
|
+
* This function can't be called in read-only mode.
|
|
2044
|
+
*
|
|
1658
2045
|
* @param relativeBlockLocation
|
|
1659
2046
|
* Location relative to the GameTest command block.
|
|
1660
2047
|
* @returns
|
|
@@ -1668,6 +2055,9 @@ export class Test {
|
|
|
1668
2055
|
* structure block, returns a new location with coordinates
|
|
1669
2056
|
* relative to world. Rotation of the GameTest structure is
|
|
1670
2057
|
* also taken into account.
|
|
2058
|
+
*
|
|
2059
|
+
* This function can't be called in read-only mode.
|
|
2060
|
+
*
|
|
1671
2061
|
* @param relativeLocation
|
|
1672
2062
|
* Location relative to the GameTest command block.
|
|
1673
2063
|
* @returns
|
|
@@ -1676,22 +2066,28 @@ export class Test {
|
|
|
1676
2066
|
*/
|
|
1677
2067
|
worldLocation(relativeLocation: minecraftserver.Vector3): minecraftserver.Vector3;
|
|
1678
2068
|
}
|
|
2069
|
+
|
|
1679
2070
|
export interface GameTestErrorContext {
|
|
1680
2071
|
absolutePosition: minecraftserver.Vector3;
|
|
1681
2072
|
relativePosition: minecraftserver.Vector3;
|
|
1682
2073
|
tickCount: number;
|
|
1683
2074
|
}
|
|
2075
|
+
|
|
1684
2076
|
export class GameTestError extends Error {
|
|
1685
2077
|
protected constructor();
|
|
1686
2078
|
context?: GameTestErrorContext;
|
|
1687
2079
|
messageParameters: string[];
|
|
1688
2080
|
type: GameTestErrorType;
|
|
1689
2081
|
}
|
|
2082
|
+
|
|
1690
2083
|
/**
|
|
1691
2084
|
* @remarks
|
|
1692
2085
|
* Registers a new GameTest function. This GameTest will become
|
|
1693
2086
|
* available in Minecraft via /gametest run
|
|
1694
2087
|
* [testClassName]:[testName].
|
|
2088
|
+
*
|
|
2089
|
+
* This function can't be called in read-only mode.
|
|
2090
|
+
*
|
|
1695
2091
|
* @param testClassName
|
|
1696
2092
|
* Name of the class of tests this test should be a part of.
|
|
1697
2093
|
* @param testName
|
|
@@ -1739,6 +2135,9 @@ export function register(
|
|
|
1739
2135
|
* Registers a new GameTest function that is designed for
|
|
1740
2136
|
* asynchronous execution. This GameTest will become available
|
|
1741
2137
|
* in Minecraft via /gametest run [testClassName]:[testName].
|
|
2138
|
+
*
|
|
2139
|
+
* This function can't be called in read-only mode.
|
|
2140
|
+
*
|
|
1742
2141
|
* @param testClassName
|
|
1743
2142
|
* Name of the class of tests this test should be a part of.
|
|
1744
2143
|
* @param testName
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-gametest",
|
|
3
|
-
"version": "1.0.0-beta.1.19.80-
|
|
3
|
+
"version": "1.0.0-beta.1.19.80-stable",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/server": "1.2.0-beta.1.19.80-
|
|
16
|
+
"@minecraft/server": "1.2.0-beta.1.19.80-stable"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|