@minecraft/server-gametest 1.0.0-beta.1.26.0-preview.24 → 1.0.0-beta.1.26.0-preview.26
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/README.md +8 -8
- package/index.d.ts +117 -117
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# `@minecraft/server-gametest`
|
|
2
|
-
|
|
3
|
-
The @minecraft/server-gametest module provides scriptable APIs for scaffolding and testing content experiences in Minecraft.
|
|
4
|
-
|
|
5
|
-
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
6
|
-
|
|
7
|
-
See full documentation for this module here:
|
|
8
|
-
|
|
1
|
+
# `@minecraft/server-gametest`
|
|
2
|
+
|
|
3
|
+
The @minecraft/server-gametest module provides scriptable APIs for scaffolding and testing content experiences in Minecraft.
|
|
4
|
+
|
|
5
|
+
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
6
|
+
|
|
7
|
+
See full documentation for this module here:
|
|
8
|
+
|
|
9
9
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server-gametest/minecraft-server-gametest
|
package/index.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ export class GameTestSequence {
|
|
|
130
130
|
* sequence. Exceptions thrown within the callback will end
|
|
131
131
|
* sequence execution.
|
|
132
132
|
*
|
|
133
|
-
* This function can't be called in
|
|
133
|
+
* This function can't be called in restricted-execution mode.
|
|
134
134
|
*
|
|
135
135
|
* @param callback
|
|
136
136
|
* Callback function to execute.
|
|
@@ -145,7 +145,7 @@ export class GameTestSequence {
|
|
|
145
145
|
* GameTest sequence. Exceptions thrown within the callback
|
|
146
146
|
* will end sequence execution.
|
|
147
147
|
*
|
|
148
|
-
* This function can't be called in
|
|
148
|
+
* This function can't be called in restricted-execution mode.
|
|
149
149
|
*
|
|
150
150
|
* @param delayTicks
|
|
151
151
|
* Number of ticks to wait before executing the callback.
|
|
@@ -161,7 +161,7 @@ export class GameTestSequence {
|
|
|
161
161
|
* Runs the given callback every tick for the given number of
|
|
162
162
|
* ticks.
|
|
163
163
|
*
|
|
164
|
-
* This function can't be called in
|
|
164
|
+
* This function can't be called in restricted-execution mode.
|
|
165
165
|
*
|
|
166
166
|
* @param callback
|
|
167
167
|
* Callback function to execute.
|
|
@@ -175,7 +175,7 @@ export class GameTestSequence {
|
|
|
175
175
|
* Causes the test to fail if this step in the GameTest
|
|
176
176
|
* sequence is reached.
|
|
177
177
|
*
|
|
178
|
-
* This function can't be called in
|
|
178
|
+
* This function can't be called in restricted-execution mode.
|
|
179
179
|
*
|
|
180
180
|
* @param errorMessage
|
|
181
181
|
* Error message summarizing the failure condition.
|
|
@@ -185,7 +185,7 @@ export class GameTestSequence {
|
|
|
185
185
|
* @remarks
|
|
186
186
|
* Idles the GameTest sequence for the specified delayTicks.
|
|
187
187
|
*
|
|
188
|
-
* This function can't be called in
|
|
188
|
+
* This function can't be called in restricted-execution mode.
|
|
189
189
|
*
|
|
190
190
|
* @param delayTicks
|
|
191
191
|
* Number of ticks to delay for this step in the GameTest
|
|
@@ -200,7 +200,7 @@ export class GameTestSequence {
|
|
|
200
200
|
* Marks the GameTest a success if this step is reached in the
|
|
201
201
|
* GameTest sequence.
|
|
202
202
|
*
|
|
203
|
-
* This function can't be called in
|
|
203
|
+
* This function can't be called in restricted-execution mode.
|
|
204
204
|
*
|
|
205
205
|
*/
|
|
206
206
|
thenSucceed(): void;
|
|
@@ -210,7 +210,7 @@ export class GameTestSequence {
|
|
|
210
210
|
* Exceptions thrown within the callback will end sequence
|
|
211
211
|
* execution.
|
|
212
212
|
*
|
|
213
|
-
* This function can't be called in
|
|
213
|
+
* This function can't be called in restricted-execution mode.
|
|
214
214
|
*
|
|
215
215
|
* @param callback
|
|
216
216
|
* Testing callback function to execute. Typically, this
|
|
@@ -226,7 +226,7 @@ export class GameTestSequence {
|
|
|
226
226
|
* callback every tick until it succeeds. Exceptions thrown
|
|
227
227
|
* within the callback will end sequence execution.
|
|
228
228
|
*
|
|
229
|
-
* This function can't be called in
|
|
229
|
+
* This function can't be called in restricted-execution mode.
|
|
230
230
|
*
|
|
231
231
|
* @param delayTicks
|
|
232
232
|
* Tick (after the previous step in the GameTest sequence) to
|
|
@@ -257,7 +257,7 @@ export class RegistrationBuilder {
|
|
|
257
257
|
* @remarks
|
|
258
258
|
* Sets the batch for the test to run in.
|
|
259
259
|
*
|
|
260
|
-
* This function can't be called in
|
|
260
|
+
* This function can't be called in restricted-execution mode.
|
|
261
261
|
*
|
|
262
262
|
* This function can be called in early-execution mode.
|
|
263
263
|
*
|
|
@@ -273,7 +273,7 @@ export class RegistrationBuilder {
|
|
|
273
273
|
* Sets the maximum number of times a test will try to rerun if
|
|
274
274
|
* it fails.
|
|
275
275
|
*
|
|
276
|
-
* This function can't be called in
|
|
276
|
+
* This function can't be called in restricted-execution mode.
|
|
277
277
|
*
|
|
278
278
|
* This function can be called in early-execution mode.
|
|
279
279
|
*
|
|
@@ -287,7 +287,7 @@ export class RegistrationBuilder {
|
|
|
287
287
|
* Sets the maximum number of ticks a test will run for before
|
|
288
288
|
* timing out and failing.
|
|
289
289
|
*
|
|
290
|
-
* This function can't be called in
|
|
290
|
+
* This function can't be called in restricted-execution mode.
|
|
291
291
|
*
|
|
292
292
|
* This function can be called in early-execution mode.
|
|
293
293
|
*
|
|
@@ -301,7 +301,7 @@ export class RegistrationBuilder {
|
|
|
301
301
|
* Size around the GameTest, in blocks, that should be reserved
|
|
302
302
|
* for the test when running multiple tests together.
|
|
303
303
|
*
|
|
304
|
-
* This function can't be called in
|
|
304
|
+
* This function can't be called in restricted-execution mode.
|
|
305
305
|
*
|
|
306
306
|
* This function can be called in early-execution mode.
|
|
307
307
|
*
|
|
@@ -318,7 +318,7 @@ export class RegistrationBuilder {
|
|
|
318
318
|
* Whether this test is required to pass as part of its broader
|
|
319
319
|
* set of tests.
|
|
320
320
|
*
|
|
321
|
-
* This function can't be called in
|
|
321
|
+
* This function can't be called in restricted-execution mode.
|
|
322
322
|
*
|
|
323
323
|
* This function can be called in early-execution mode.
|
|
324
324
|
*
|
|
@@ -335,7 +335,7 @@ export class RegistrationBuilder {
|
|
|
335
335
|
* Sets the number of successful test runs to be considered
|
|
336
336
|
* successful.
|
|
337
337
|
*
|
|
338
|
-
* This function can't be called in
|
|
338
|
+
* This function can't be called in restricted-execution mode.
|
|
339
339
|
*
|
|
340
340
|
* This function can be called in early-execution mode.
|
|
341
341
|
*
|
|
@@ -349,7 +349,7 @@ export class RegistrationBuilder {
|
|
|
349
349
|
* If true, runs the test in all four rotations when run via
|
|
350
350
|
* /gametest runset.
|
|
351
351
|
*
|
|
352
|
-
* This function can't be called in
|
|
352
|
+
* This function can't be called in restricted-execution mode.
|
|
353
353
|
*
|
|
354
354
|
* This function can be called in early-execution mode.
|
|
355
355
|
*
|
|
@@ -360,7 +360,7 @@ export class RegistrationBuilder {
|
|
|
360
360
|
* Sets the number of ticks for a test to wait before executing
|
|
361
361
|
* when the structure is spawned.
|
|
362
362
|
*
|
|
363
|
-
* This function can't be called in
|
|
363
|
+
* This function can't be called in restricted-execution mode.
|
|
364
364
|
*
|
|
365
365
|
* This function can be called in early-execution mode.
|
|
366
366
|
*
|
|
@@ -377,7 +377,7 @@ export class RegistrationBuilder {
|
|
|
377
377
|
* ground. If the dimension is not specified, it will run in
|
|
378
378
|
* the dimension the command was run from.
|
|
379
379
|
*
|
|
380
|
-
* This function can't be called in
|
|
380
|
+
* This function can't be called in restricted-execution mode.
|
|
381
381
|
*
|
|
382
382
|
* This function can be called in early-execution mode.
|
|
383
383
|
*
|
|
@@ -400,7 +400,7 @@ export class RegistrationBuilder {
|
|
|
400
400
|
* will load `/structures/xyz/bar.mcstructure` from the
|
|
401
401
|
* behavior pack stack.
|
|
402
402
|
*
|
|
403
|
-
* This function can't be called in
|
|
403
|
+
* This function can't be called in restricted-execution mode.
|
|
404
404
|
*
|
|
405
405
|
* This function can be called in early-execution mode.
|
|
406
406
|
*
|
|
@@ -429,7 +429,7 @@ export class RegistrationBuilder {
|
|
|
429
429
|
* Adds a tag to a test. You can run all tests with a given tag
|
|
430
430
|
* with `/gametest runset <tag>`.
|
|
431
431
|
*
|
|
432
|
-
* This function can't be called in
|
|
432
|
+
* This function can't be called in restricted-execution mode.
|
|
433
433
|
*
|
|
434
434
|
* This function can be called in early-execution mode.
|
|
435
435
|
*
|
|
@@ -474,7 +474,7 @@ export class SculkSpreader {
|
|
|
474
474
|
* Adds a cursor - which is a notional waypoint that the sculk
|
|
475
475
|
* will spread in the direction of.
|
|
476
476
|
*
|
|
477
|
-
* This function can't be called in
|
|
477
|
+
* This function can't be called in restricted-execution mode.
|
|
478
478
|
*
|
|
479
479
|
*/
|
|
480
480
|
addCursorsWithOffset(offset: minecraftserver.Vector3, charge: number): void;
|
|
@@ -482,7 +482,7 @@ export class SculkSpreader {
|
|
|
482
482
|
* @remarks
|
|
483
483
|
* Retrieves the current position of the specified cursor.
|
|
484
484
|
*
|
|
485
|
-
* This function can't be called in
|
|
485
|
+
* This function can't be called in restricted-execution mode.
|
|
486
486
|
*
|
|
487
487
|
* @throws This function can throw errors.
|
|
488
488
|
*/
|
|
@@ -491,7 +491,7 @@ export class SculkSpreader {
|
|
|
491
491
|
* @remarks
|
|
492
492
|
* Returns a number of overall cursors for this sculk spreader.
|
|
493
493
|
*
|
|
494
|
-
* This function can't be called in
|
|
494
|
+
* This function can't be called in restricted-execution mode.
|
|
495
495
|
*
|
|
496
496
|
* @throws This function can throw errors.
|
|
497
497
|
*/
|
|
@@ -500,7 +500,7 @@ export class SculkSpreader {
|
|
|
500
500
|
* @remarks
|
|
501
501
|
* Gets the total current charge of the sculk spreader.
|
|
502
502
|
*
|
|
503
|
-
* This function can't be called in
|
|
503
|
+
* This function can't be called in restricted-execution mode.
|
|
504
504
|
*
|
|
505
505
|
* @throws This function can throw errors.
|
|
506
506
|
*/
|
|
@@ -531,7 +531,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
531
531
|
* @remarks
|
|
532
532
|
* Returns whether the simulated player is sprinting.
|
|
533
533
|
*
|
|
534
|
-
* This property can't be edited in
|
|
534
|
+
* This property can't be edited in restricted-execution mode.
|
|
535
535
|
*
|
|
536
536
|
*/
|
|
537
537
|
isSprinting: boolean;
|
|
@@ -542,7 +542,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
542
542
|
* player was not on cooldown and had a valid target. Target
|
|
543
543
|
* selection is performed by raycasting from the player's head.
|
|
544
544
|
*
|
|
545
|
-
* This function can't be called in
|
|
545
|
+
* This function can't be called in restricted-execution mode.
|
|
546
546
|
*
|
|
547
547
|
* @throws This function can throw errors.
|
|
548
548
|
*/
|
|
@@ -555,7 +555,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
555
555
|
* attack can be performed at any distance and does not require
|
|
556
556
|
* line of sight to the target entity.
|
|
557
557
|
*
|
|
558
|
-
* This function can't be called in
|
|
558
|
+
* This function can't be called in restricted-execution mode.
|
|
559
559
|
*
|
|
560
560
|
* @throws This function can throw errors.
|
|
561
561
|
*/
|
|
@@ -567,7 +567,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
567
567
|
* broken, an item is used or stopBreakingBlock is called.
|
|
568
568
|
* Returns true if the block at blockLocation is solid.
|
|
569
569
|
*
|
|
570
|
-
* This function can't be called in
|
|
570
|
+
* This function can't be called in restricted-execution mode.
|
|
571
571
|
*
|
|
572
572
|
* @param blockLocation
|
|
573
573
|
* Location of the block to interact with.
|
|
@@ -583,7 +583,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
583
583
|
breakBlock(blockLocation: minecraftserver.Vector3, direction?: minecraftserver.Direction): boolean;
|
|
584
584
|
/**
|
|
585
585
|
* @remarks
|
|
586
|
-
* This function can't be called in
|
|
586
|
+
* This function can't be called in restricted-execution mode.
|
|
587
587
|
*
|
|
588
588
|
* @throws This function can throw errors.
|
|
589
589
|
*/
|
|
@@ -593,7 +593,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
593
593
|
* Simulates and performs a disconnection of the simulated
|
|
594
594
|
* player from the world.
|
|
595
595
|
*
|
|
596
|
-
* This function can't be called in
|
|
596
|
+
* This function can't be called in restricted-execution mode.
|
|
597
597
|
*
|
|
598
598
|
* @throws This function can throw errors.
|
|
599
599
|
*/
|
|
@@ -602,7 +602,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
602
602
|
* @remarks
|
|
603
603
|
* Drops the simulated player's selected item
|
|
604
604
|
*
|
|
605
|
-
* This function can't be called in
|
|
605
|
+
* This function can't be called in restricted-execution mode.
|
|
606
606
|
*
|
|
607
607
|
* @throws This function can throw errors.
|
|
608
608
|
*/
|
|
@@ -613,7 +613,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
613
613
|
* were flying in creative mode. For flying with Elytra, see
|
|
614
614
|
* function glide.
|
|
615
615
|
*
|
|
616
|
-
* This function can't be called in
|
|
616
|
+
* This function can't be called in restricted-execution mode.
|
|
617
617
|
*
|
|
618
618
|
* @throws This function can throw errors.
|
|
619
619
|
*/
|
|
@@ -622,7 +622,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
622
622
|
* @remarks
|
|
623
623
|
* Gives the simulated player a particular item stack.
|
|
624
624
|
*
|
|
625
|
-
* This function can't be called in
|
|
625
|
+
* This function can't be called in restricted-execution mode.
|
|
626
626
|
*
|
|
627
627
|
* @param itemStack
|
|
628
628
|
* Item to give.
|
|
@@ -637,7 +637,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
637
637
|
* Causes the simulated player to start gliding. Elytra must be
|
|
638
638
|
* equipped and the player must be in the air.
|
|
639
639
|
*
|
|
640
|
-
* This function can't be called in
|
|
640
|
+
* This function can't be called in restricted-execution mode.
|
|
641
641
|
*
|
|
642
642
|
* @returns
|
|
643
643
|
* Returns true if the simulated player begins to glide.
|
|
@@ -653,7 +653,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
653
653
|
* the first intersected block or entity. Returns true if the
|
|
654
654
|
* interaction was successful. Maximum range is 6 blocks.
|
|
655
655
|
*
|
|
656
|
-
* This function can't be called in
|
|
656
|
+
* This function can't be called in restricted-execution mode.
|
|
657
657
|
*
|
|
658
658
|
* @throws This function can throw errors.
|
|
659
659
|
*/
|
|
@@ -664,7 +664,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
664
664
|
* block at the specified block location must be solid. Returns
|
|
665
665
|
* true if the interaction was performed.
|
|
666
666
|
*
|
|
667
|
-
* This function can't be called in
|
|
667
|
+
* This function can't be called in restricted-execution mode.
|
|
668
668
|
*
|
|
669
669
|
* @param blockLocation
|
|
670
670
|
* Location of the block to interact with.
|
|
@@ -683,7 +683,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
683
683
|
* Causes the simulated player to interact with a mob. Returns
|
|
684
684
|
* true if the interaction was performed.
|
|
685
685
|
*
|
|
686
|
-
* This function can't be called in
|
|
686
|
+
* This function can't be called in restricted-execution mode.
|
|
687
687
|
*
|
|
688
688
|
* @param entity
|
|
689
689
|
* Entity to interact with.
|
|
@@ -698,7 +698,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
698
698
|
* @remarks
|
|
699
699
|
* Causes the simulated player to jump.
|
|
700
700
|
*
|
|
701
|
-
* This function can't be called in
|
|
701
|
+
* This function can't be called in restricted-execution mode.
|
|
702
702
|
*
|
|
703
703
|
* @returns
|
|
704
704
|
* True if a jump was performed.
|
|
@@ -710,7 +710,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
710
710
|
* Rotates the simulated player's head/body to look at the
|
|
711
711
|
* given block location.
|
|
712
712
|
*
|
|
713
|
-
* This function can't be called in
|
|
713
|
+
* This function can't be called in restricted-execution mode.
|
|
714
714
|
*
|
|
715
715
|
* @param duration
|
|
716
716
|
* Defaults to: 2
|
|
@@ -726,7 +726,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
726
726
|
* Rotates the simulated player's head/body to look at the
|
|
727
727
|
* given entity.
|
|
728
728
|
*
|
|
729
|
-
* This function can't be called in
|
|
729
|
+
* This function can't be called in restricted-execution mode.
|
|
730
730
|
*
|
|
731
731
|
* @param duration
|
|
732
732
|
* Defaults to: 2
|
|
@@ -738,7 +738,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
738
738
|
* Rotates the simulated player's head/body to look at the
|
|
739
739
|
* given location.
|
|
740
740
|
*
|
|
741
|
-
* This function can't be called in
|
|
741
|
+
* This function can't be called in restricted-execution mode.
|
|
742
742
|
*
|
|
743
743
|
* @param duration
|
|
744
744
|
* Defaults to: 2
|
|
@@ -750,7 +750,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
750
750
|
* Orders the simulated player to walk in the given direction
|
|
751
751
|
* relative to the GameTest.
|
|
752
752
|
*
|
|
753
|
-
* This function can't be called in
|
|
753
|
+
* This function can't be called in restricted-execution mode.
|
|
754
754
|
*
|
|
755
755
|
* @param speed
|
|
756
756
|
* Defaults to: 1
|
|
@@ -762,7 +762,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
762
762
|
* Orders the simulated player to walk in the given direction
|
|
763
763
|
* relative to the player's current rotation.
|
|
764
764
|
*
|
|
765
|
-
* This function can't be called in
|
|
765
|
+
* This function can't be called in restricted-execution mode.
|
|
766
766
|
*
|
|
767
767
|
* @param speed
|
|
768
768
|
* Defaults to: 1
|
|
@@ -776,7 +776,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
776
776
|
* already playing, this will override the last
|
|
777
777
|
* move/navigation.
|
|
778
778
|
*
|
|
779
|
-
* This function can't be called in
|
|
779
|
+
* This function can't be called in restricted-execution mode.
|
|
780
780
|
*
|
|
781
781
|
* @throws This function can throw errors.
|
|
782
782
|
*/
|
|
@@ -787,7 +787,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
787
787
|
* a straight line. If a move or navigation is already playing,
|
|
788
788
|
* this will override the last move/navigation.
|
|
789
789
|
*
|
|
790
|
-
* This function can't be called in
|
|
790
|
+
* This function can't be called in restricted-execution mode.
|
|
791
791
|
*
|
|
792
792
|
* @throws This function can throw errors.
|
|
793
793
|
*
|
|
@@ -807,7 +807,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
807
807
|
* player will stop. The player must be touching the ground in
|
|
808
808
|
* order to start navigation.
|
|
809
809
|
*
|
|
810
|
-
* This function can't be called in
|
|
810
|
+
* This function can't be called in restricted-execution mode.
|
|
811
811
|
*
|
|
812
812
|
* @param speed
|
|
813
813
|
* Defaults to: 1
|
|
@@ -824,7 +824,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
824
824
|
* a one block radius. If a move or navigation is already
|
|
825
825
|
* playing, this will override the last move/navigation.
|
|
826
826
|
*
|
|
827
|
-
* This function can't be called in
|
|
827
|
+
* This function can't be called in restricted-execution mode.
|
|
828
828
|
*
|
|
829
829
|
* @param speed
|
|
830
830
|
* Defaults to: 1
|
|
@@ -844,7 +844,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
844
844
|
* stop. The player must be touching the ground in order to
|
|
845
845
|
* start navigation.
|
|
846
846
|
*
|
|
847
|
-
* This function can't be called in
|
|
847
|
+
* This function can't be called in restricted-execution mode.
|
|
848
848
|
*
|
|
849
849
|
* @param speed
|
|
850
850
|
* Defaults to: 1
|
|
@@ -861,7 +861,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
861
861
|
* locations parameter. If a move or navigation is already
|
|
862
862
|
* playing, this will override the last move/navigation.
|
|
863
863
|
*
|
|
864
|
-
* This function can't be called in
|
|
864
|
+
* This function can't be called in restricted-execution mode.
|
|
865
865
|
*
|
|
866
866
|
* @param locations
|
|
867
867
|
* A list of locations to use for routing.
|
|
@@ -879,7 +879,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
879
879
|
* @remarks
|
|
880
880
|
* Respawns the particular simulated player.
|
|
881
881
|
*
|
|
882
|
-
* This function can't be called in
|
|
882
|
+
* This function can't be called in restricted-execution mode.
|
|
883
883
|
*
|
|
884
884
|
* @throws This function can throw errors.
|
|
885
885
|
*/
|
|
@@ -889,7 +889,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
889
889
|
* Causes the simulated player to turn by the provided angle,
|
|
890
890
|
* relative to the player's current rotation.
|
|
891
891
|
*
|
|
892
|
-
* This function can't be called in
|
|
892
|
+
* This function can't be called in restricted-execution mode.
|
|
893
893
|
*
|
|
894
894
|
* @throws This function can throw errors.
|
|
895
895
|
*/
|
|
@@ -899,7 +899,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
899
899
|
* Causes the simulated player to turn to face the provided
|
|
900
900
|
* angle, relative to the GameTest.
|
|
901
901
|
*
|
|
902
|
-
* This function can't be called in
|
|
902
|
+
* This function can't be called in restricted-execution mode.
|
|
903
903
|
*
|
|
904
904
|
* @throws This function can throw errors.
|
|
905
905
|
*/
|
|
@@ -908,7 +908,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
908
908
|
* @remarks
|
|
909
909
|
* Sets a particular item for the simulated player.
|
|
910
910
|
*
|
|
911
|
-
* This function can't be called in
|
|
911
|
+
* This function can't be called in restricted-execution mode.
|
|
912
912
|
*
|
|
913
913
|
* @param itemStack
|
|
914
914
|
* Item to set.
|
|
@@ -924,7 +924,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
924
924
|
* @remarks
|
|
925
925
|
* Updates information about the player's skin.
|
|
926
926
|
*
|
|
927
|
-
* This function can't be called in
|
|
927
|
+
* This function can't be called in restricted-execution mode.
|
|
928
928
|
*
|
|
929
929
|
* @param options
|
|
930
930
|
* Options for the skin to set on the player.
|
|
@@ -935,7 +935,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
935
935
|
setSkin(options: PlayerSkinData): void;
|
|
936
936
|
/**
|
|
937
937
|
* @remarks
|
|
938
|
-
* This function can't be called in
|
|
938
|
+
* This function can't be called in restricted-execution mode.
|
|
939
939
|
*
|
|
940
940
|
* @param slot
|
|
941
941
|
* Defaults to: 0
|
|
@@ -946,14 +946,14 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
946
946
|
* @remarks
|
|
947
947
|
* Stops destroying the block that is currently being hit.
|
|
948
948
|
*
|
|
949
|
-
* This function can't be called in
|
|
949
|
+
* This function can't be called in restricted-execution mode.
|
|
950
950
|
*
|
|
951
951
|
* @throws This function can throw errors.
|
|
952
952
|
*/
|
|
953
953
|
stopBreakingBlock(): void;
|
|
954
954
|
/**
|
|
955
955
|
* @remarks
|
|
956
|
-
* This function can't be called in
|
|
956
|
+
* This function can't be called in restricted-execution mode.
|
|
957
957
|
*
|
|
958
958
|
* @throws This function can throw errors.
|
|
959
959
|
*/
|
|
@@ -962,7 +962,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
962
962
|
* @remarks
|
|
963
963
|
* Causes the simulated player to stop flying.
|
|
964
964
|
*
|
|
965
|
-
* This function can't be called in
|
|
965
|
+
* This function can't be called in restricted-execution mode.
|
|
966
966
|
*
|
|
967
967
|
* @throws This function can throw errors.
|
|
968
968
|
*/
|
|
@@ -971,7 +971,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
971
971
|
* @remarks
|
|
972
972
|
* Causes the simulated player to stop gliding.
|
|
973
973
|
*
|
|
974
|
-
* This function can't be called in
|
|
974
|
+
* This function can't be called in restricted-execution mode.
|
|
975
975
|
*
|
|
976
976
|
* @throws This function can throw errors.
|
|
977
977
|
*/
|
|
@@ -980,7 +980,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
980
980
|
* @remarks
|
|
981
981
|
* Stops interacting with entities or blocks.
|
|
982
982
|
*
|
|
983
|
-
* This function can't be called in
|
|
983
|
+
* This function can't be called in restricted-execution mode.
|
|
984
984
|
*
|
|
985
985
|
* @throws This function can throw errors.
|
|
986
986
|
*/
|
|
@@ -990,7 +990,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
990
990
|
* Stops moving/walking/following if the simulated player is
|
|
991
991
|
* moving.
|
|
992
992
|
*
|
|
993
|
-
* This function can't be called in
|
|
993
|
+
* This function can't be called in restricted-execution mode.
|
|
994
994
|
*
|
|
995
995
|
* @throws This function can throw errors.
|
|
996
996
|
*/
|
|
@@ -999,7 +999,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
999
999
|
* @remarks
|
|
1000
1000
|
* Causes the simulated player to stop swimming.
|
|
1001
1001
|
*
|
|
1002
|
-
* This function can't be called in
|
|
1002
|
+
* This function can't be called in restricted-execution mode.
|
|
1003
1003
|
*
|
|
1004
1004
|
* @throws This function can throw errors.
|
|
1005
1005
|
*/
|
|
@@ -1008,7 +1008,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
1008
1008
|
* @remarks
|
|
1009
1009
|
* Stops using the currently active item.
|
|
1010
1010
|
*
|
|
1011
|
-
* This function can't be called in
|
|
1011
|
+
* This function can't be called in restricted-execution mode.
|
|
1012
1012
|
*
|
|
1013
1013
|
* @returns
|
|
1014
1014
|
* Returns the item that was in use. Undefined if no item was
|
|
@@ -1020,7 +1020,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
1020
1020
|
* @remarks
|
|
1021
1021
|
* Causes the simulated player to start swimming.
|
|
1022
1022
|
*
|
|
1023
|
-
* This function can't be called in
|
|
1023
|
+
* This function can't be called in restricted-execution mode.
|
|
1024
1024
|
*
|
|
1025
1025
|
* @throws This function can throw errors.
|
|
1026
1026
|
*/
|
|
@@ -1030,7 +1030,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
1030
1030
|
* Causes the simulated player to use an item. Does not consume
|
|
1031
1031
|
* the item. Returns false if the item is on cooldown.
|
|
1032
1032
|
*
|
|
1033
|
-
* This function can't be called in
|
|
1033
|
+
* This function can't be called in restricted-execution mode.
|
|
1034
1034
|
*
|
|
1035
1035
|
* @param itemStack
|
|
1036
1036
|
* Item to use.
|
|
@@ -1042,7 +1042,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
1042
1042
|
* Causes the simulated player to hold and use an item in their
|
|
1043
1043
|
* inventory.
|
|
1044
1044
|
*
|
|
1045
|
-
* This function can't be called in
|
|
1045
|
+
* This function can't be called in restricted-execution mode.
|
|
1046
1046
|
*
|
|
1047
1047
|
* @param slot
|
|
1048
1048
|
* Index of the inventory slot.
|
|
@@ -1055,7 +1055,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
1055
1055
|
* inventory on a block. The block at the specified block
|
|
1056
1056
|
* location must be solid. Returns true if the item was used.
|
|
1057
1057
|
*
|
|
1058
|
-
* This function can't be called in
|
|
1058
|
+
* This function can't be called in restricted-execution mode.
|
|
1059
1059
|
*
|
|
1060
1060
|
* @param slot
|
|
1061
1061
|
* Index of the slot to use.
|
|
@@ -1086,7 +1086,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
1086
1086
|
* block at the specified block location must be solid. Returns
|
|
1087
1087
|
* true if the item was used.
|
|
1088
1088
|
*
|
|
1089
|
-
* This function can't be called in
|
|
1089
|
+
* This function can't be called in restricted-execution mode.
|
|
1090
1090
|
*
|
|
1091
1091
|
* @param itemStack
|
|
1092
1092
|
* Item to use.
|
|
@@ -1656,7 +1656,7 @@ export class Test {
|
|
|
1656
1656
|
* @remarks
|
|
1657
1657
|
* Destroys a block at a particular location.
|
|
1658
1658
|
*
|
|
1659
|
-
* This function can't be called in
|
|
1659
|
+
* This function can't be called in restricted-execution mode.
|
|
1660
1660
|
*
|
|
1661
1661
|
* @param blockLocation
|
|
1662
1662
|
* Location of the block to destroy.
|
|
@@ -1695,7 +1695,7 @@ export class Test {
|
|
|
1695
1695
|
* @remarks
|
|
1696
1696
|
* Gets a block at the specified block location.
|
|
1697
1697
|
*
|
|
1698
|
-
* This function can't be called in
|
|
1698
|
+
* This function can't be called in restricted-execution mode.
|
|
1699
1699
|
*
|
|
1700
1700
|
* @param blockLocation
|
|
1701
1701
|
* Location of the block to retrieve.
|
|
@@ -1723,7 +1723,7 @@ export class Test {
|
|
|
1723
1723
|
* this returns a helper object with details on how a fence is
|
|
1724
1724
|
* connected.
|
|
1725
1725
|
*
|
|
1726
|
-
* This function can't be called in
|
|
1726
|
+
* This function can't be called in restricted-execution mode.
|
|
1727
1727
|
*
|
|
1728
1728
|
* @param blockLocation
|
|
1729
1729
|
* Location of the block to retrieve.
|
|
@@ -1739,7 +1739,7 @@ export class Test {
|
|
|
1739
1739
|
* Retrieves a sculk spreader object that can be used to
|
|
1740
1740
|
* control and manage how sculk grows from a block.
|
|
1741
1741
|
*
|
|
1742
|
-
* This function can't be called in
|
|
1742
|
+
* This function can't be called in restricted-execution mode.
|
|
1743
1743
|
*
|
|
1744
1744
|
* @param blockLocation
|
|
1745
1745
|
* Location of the block to retrieve a sculk spreader from.
|
|
@@ -1769,7 +1769,7 @@ export class Test {
|
|
|
1769
1769
|
* This asynchronous function will wait for the specified time
|
|
1770
1770
|
* in ticks before continuing execution.
|
|
1771
1771
|
*
|
|
1772
|
-
* This function can't be called in
|
|
1772
|
+
* This function can't be called in restricted-execution mode.
|
|
1773
1773
|
*
|
|
1774
1774
|
* @param tickDelay
|
|
1775
1775
|
* Amount of time to wait, in ticks.
|
|
@@ -1783,7 +1783,7 @@ export class Test {
|
|
|
1783
1783
|
* Returns whether or not the test is currently in the Clean Up
|
|
1784
1784
|
* step after running.
|
|
1785
1785
|
*
|
|
1786
|
-
* This function can't be called in
|
|
1786
|
+
* This function can't be called in restricted-execution mode.
|
|
1787
1787
|
*
|
|
1788
1788
|
*/
|
|
1789
1789
|
isCleaningUp(): boolean;
|
|
@@ -1791,7 +1791,7 @@ export class Test {
|
|
|
1791
1791
|
* @remarks
|
|
1792
1792
|
* Returns whether or not the test has already completed
|
|
1793
1793
|
*
|
|
1794
|
-
* This function can't be called in
|
|
1794
|
+
* This function can't be called in restricted-execution mode.
|
|
1795
1795
|
*
|
|
1796
1796
|
*/
|
|
1797
1797
|
isCompleted(): boolean;
|
|
@@ -1799,7 +1799,7 @@ export class Test {
|
|
|
1799
1799
|
* @remarks
|
|
1800
1800
|
* Kills all entities within the GameTest structure.
|
|
1801
1801
|
*
|
|
1802
|
-
* This function can't be called in
|
|
1802
|
+
* This function can't be called in restricted-execution mode.
|
|
1803
1803
|
*
|
|
1804
1804
|
* @throws This function can throw errors.
|
|
1805
1805
|
*
|
|
@@ -1810,7 +1810,7 @@ export class Test {
|
|
|
1810
1810
|
killAllEntities(): void;
|
|
1811
1811
|
/**
|
|
1812
1812
|
* @remarks
|
|
1813
|
-
* This function can't be called in
|
|
1813
|
+
* This function can't be called in restricted-execution mode.
|
|
1814
1814
|
*
|
|
1815
1815
|
* @throws This function can throw errors.
|
|
1816
1816
|
*
|
|
@@ -1823,7 +1823,7 @@ export class Test {
|
|
|
1823
1823
|
* @remarks
|
|
1824
1824
|
* Presses a button at a block location.
|
|
1825
1825
|
*
|
|
1826
|
-
* This function can't be called in
|
|
1826
|
+
* This function can't be called in restricted-execution mode.
|
|
1827
1827
|
*
|
|
1828
1828
|
* @param blockLocation
|
|
1829
1829
|
* Location to push the button at.
|
|
@@ -1840,7 +1840,7 @@ export class Test {
|
|
|
1840
1840
|
* @remarks
|
|
1841
1841
|
* Displays the specified message to all players.
|
|
1842
1842
|
*
|
|
1843
|
-
* This function can't be called in
|
|
1843
|
+
* This function can't be called in restricted-execution mode.
|
|
1844
1844
|
*
|
|
1845
1845
|
* @param text
|
|
1846
1846
|
* Message to display.
|
|
@@ -1855,7 +1855,7 @@ export class Test {
|
|
|
1855
1855
|
* @remarks
|
|
1856
1856
|
* Pulls a lever at a block location.
|
|
1857
1857
|
*
|
|
1858
|
-
* This function can't be called in
|
|
1858
|
+
* This function can't be called in restricted-execution mode.
|
|
1859
1859
|
*
|
|
1860
1860
|
* @param blockLocation
|
|
1861
1861
|
* Location to pull the lever at.
|
|
@@ -1873,7 +1873,7 @@ export class Test {
|
|
|
1873
1873
|
* Sends a Redstone pulse at a particular location by creating
|
|
1874
1874
|
* a temporary Redstone block.
|
|
1875
1875
|
*
|
|
1876
|
-
* This function can't be called in
|
|
1876
|
+
* This function can't be called in restricted-execution mode.
|
|
1877
1877
|
*
|
|
1878
1878
|
* @param blockLocation
|
|
1879
1879
|
* Location to pulse Redstone at.
|
|
@@ -1914,7 +1914,7 @@ export class Test {
|
|
|
1914
1914
|
* structure block are (0, 1, 0). Rotation of the GameTest
|
|
1915
1915
|
* structure is also taken into account.
|
|
1916
1916
|
*
|
|
1917
|
-
* This function can't be called in
|
|
1917
|
+
* This function can't be called in restricted-execution mode.
|
|
1918
1918
|
*
|
|
1919
1919
|
* @param worldLocation
|
|
1920
1920
|
* Absolute location in the world to convert to a relative
|
|
@@ -1932,7 +1932,7 @@ export class Test {
|
|
|
1932
1932
|
* @remarks
|
|
1933
1933
|
* Removes a simulated player from the world.
|
|
1934
1934
|
*
|
|
1935
|
-
* This function can't be called in
|
|
1935
|
+
* This function can't be called in restricted-execution mode.
|
|
1936
1936
|
*
|
|
1937
1937
|
* @param simulatedPlayer
|
|
1938
1938
|
* Simulated player to remove.
|
|
@@ -1948,7 +1948,7 @@ export class Test {
|
|
|
1948
1948
|
* test direction; Passing in Direction.north will return the
|
|
1949
1949
|
* opposite of the test direction, and so on.
|
|
1950
1950
|
*
|
|
1951
|
-
* This function can't be called in
|
|
1951
|
+
* This function can't be called in restricted-execution mode.
|
|
1952
1952
|
*
|
|
1953
1953
|
* @param direction
|
|
1954
1954
|
* Direction to translate into a direction relative to the
|
|
@@ -1964,7 +1964,7 @@ export class Test {
|
|
|
1964
1964
|
rotateDirection(direction: minecraftserver.Direction): minecraftserver.Direction;
|
|
1965
1965
|
/**
|
|
1966
1966
|
* @remarks
|
|
1967
|
-
* This function can't be called in
|
|
1967
|
+
* This function can't be called in restricted-execution mode.
|
|
1968
1968
|
*
|
|
1969
1969
|
* @throws This function can throw errors.
|
|
1970
1970
|
*
|
|
@@ -1977,7 +1977,7 @@ export class Test {
|
|
|
1977
1977
|
* @remarks
|
|
1978
1978
|
* Runs a specific callback after a specified delay of ticks
|
|
1979
1979
|
*
|
|
1980
|
-
* This function can't be called in
|
|
1980
|
+
* This function can't be called in restricted-execution mode.
|
|
1981
1981
|
*
|
|
1982
1982
|
* @param delayTicks
|
|
1983
1983
|
* Number of ticks to delay before running the specified
|
|
@@ -1992,7 +1992,7 @@ export class Test {
|
|
|
1992
1992
|
* Runs the given callback after a delay of _tick_ ticks from
|
|
1993
1993
|
* the start of the GameTest.
|
|
1994
1994
|
*
|
|
1995
|
-
* This function can't be called in
|
|
1995
|
+
* This function can't be called in restricted-execution mode.
|
|
1996
1996
|
*
|
|
1997
1997
|
* @param tick
|
|
1998
1998
|
* Tick (after the start of the GameTest) to run the callback
|
|
@@ -2007,7 +2007,7 @@ export class Test {
|
|
|
2007
2007
|
* Runs the given callback after the GameTest has completed
|
|
2008
2008
|
* regardless if the test passed, failed, or timed out.
|
|
2009
2009
|
*
|
|
2010
|
-
* This function can't be called in
|
|
2010
|
+
* This function can't be called in restricted-execution mode.
|
|
2011
2011
|
*
|
|
2012
2012
|
* @param callback
|
|
2013
2013
|
* Callback to execute.
|
|
@@ -2023,7 +2023,7 @@ export class Test {
|
|
|
2023
2023
|
* Sets a block to a particular configuration (a
|
|
2024
2024
|
* BlockPermutation) at the specified block location.
|
|
2025
2025
|
*
|
|
2026
|
-
* This function can't be called in
|
|
2026
|
+
* This function can't be called in restricted-execution mode.
|
|
2027
2027
|
*
|
|
2028
2028
|
* @param blockData
|
|
2029
2029
|
* Permutation that contains the configuration data for a
|
|
@@ -2042,7 +2042,7 @@ export class Test {
|
|
|
2042
2042
|
* Sets a block to a particular type at the specified block
|
|
2043
2043
|
* location.
|
|
2044
2044
|
*
|
|
2045
|
-
* This function can't be called in
|
|
2045
|
+
* This function can't be called in restricted-execution mode.
|
|
2046
2046
|
*
|
|
2047
2047
|
* @param blockType
|
|
2048
2048
|
* Type of block to set.
|
|
@@ -2080,7 +2080,7 @@ export class Test {
|
|
|
2080
2080
|
* For blocks that are fluid containers - like a cauldron -
|
|
2081
2081
|
* changes the type of fluid within that container.
|
|
2082
2082
|
*
|
|
2083
|
-
* This function can't be called in
|
|
2083
|
+
* This function can't be called in restricted-execution mode.
|
|
2084
2084
|
*
|
|
2085
2085
|
* @param location
|
|
2086
2086
|
* Location of the fluid container block.
|
|
@@ -2098,7 +2098,7 @@ export class Test {
|
|
|
2098
2098
|
* @remarks
|
|
2099
2099
|
* Sets the fuse of an explodable entity.
|
|
2100
2100
|
*
|
|
2101
|
-
* This function can't be called in
|
|
2101
|
+
* This function can't be called in restricted-execution mode.
|
|
2102
2102
|
*
|
|
2103
2103
|
* @param entity
|
|
2104
2104
|
* Entity that is explodable.
|
|
@@ -2115,7 +2115,7 @@ export class Test {
|
|
|
2115
2115
|
* @remarks
|
|
2116
2116
|
* Spawns an entity at a location.
|
|
2117
2117
|
*
|
|
2118
|
-
* This function can't be called in
|
|
2118
|
+
* This function can't be called in restricted-execution mode.
|
|
2119
2119
|
*
|
|
2120
2120
|
* @param entityTypeIdentifier
|
|
2121
2121
|
* Type of entity to create. If no namespace is provided,
|
|
@@ -2212,7 +2212,7 @@ export class Test {
|
|
|
2212
2212
|
* @remarks
|
|
2213
2213
|
* Spawns an entity at a location.
|
|
2214
2214
|
*
|
|
2215
|
-
* This function can't be called in
|
|
2215
|
+
* This function can't be called in restricted-execution mode.
|
|
2216
2216
|
*
|
|
2217
2217
|
* @param entityTypeIdentifier
|
|
2218
2218
|
* Type of entity to create. If no namespace is provided,
|
|
@@ -2233,7 +2233,7 @@ export class Test {
|
|
|
2233
2233
|
* @remarks
|
|
2234
2234
|
* Spawns an item entity at a specified location.
|
|
2235
2235
|
*
|
|
2236
|
-
* This function can't be called in
|
|
2236
|
+
* This function can't be called in restricted-execution mode.
|
|
2237
2237
|
*
|
|
2238
2238
|
* @param itemStack
|
|
2239
2239
|
* ItemStack that describes the item entity to create.
|
|
@@ -2250,7 +2250,7 @@ export class Test {
|
|
|
2250
2250
|
* @remarks
|
|
2251
2251
|
* Creates a new simulated player within the world.
|
|
2252
2252
|
*
|
|
2253
|
-
* This function can't be called in
|
|
2253
|
+
* This function can't be called in restricted-execution mode.
|
|
2254
2254
|
*
|
|
2255
2255
|
* @param blockLocation
|
|
2256
2256
|
* Location where to spawn the simulated player.
|
|
@@ -2276,7 +2276,7 @@ export class Test {
|
|
|
2276
2276
|
* This method is frequently used in conjunction with methods
|
|
2277
2277
|
* like .walkTo to create predictable mob actions.
|
|
2278
2278
|
*
|
|
2279
|
-
* This function can't be called in
|
|
2279
|
+
* This function can't be called in restricted-execution mode.
|
|
2280
2280
|
*
|
|
2281
2281
|
* @param blockLocation
|
|
2282
2282
|
* Location where the entity should be spawned.
|
|
@@ -2293,7 +2293,7 @@ export class Test {
|
|
|
2293
2293
|
* This method is frequently used in conjunction with methods
|
|
2294
2294
|
* like .walkTo to create predictable mob actions.
|
|
2295
2295
|
*
|
|
2296
|
-
* This function can't be called in
|
|
2296
|
+
* This function can't be called in restricted-execution mode.
|
|
2297
2297
|
*
|
|
2298
2298
|
* @param location
|
|
2299
2299
|
* Location where the entity should be spawned.
|
|
@@ -2312,7 +2312,7 @@ export class Test {
|
|
|
2312
2312
|
* Tests that a particular item entity is present at a
|
|
2313
2313
|
* particular location. If not, an exception is thrown.
|
|
2314
2314
|
*
|
|
2315
|
-
* This function can't be called in
|
|
2315
|
+
* This function can't be called in restricted-execution mode.
|
|
2316
2316
|
*
|
|
2317
2317
|
* @param blockLocation
|
|
2318
2318
|
* BlockLocation containing a multiface block.
|
|
@@ -2337,7 +2337,7 @@ export class Test {
|
|
|
2337
2337
|
* Creates a new GameTestSequence - A set of steps that play
|
|
2338
2338
|
* out sequentially within a GameTest.
|
|
2339
2339
|
*
|
|
2340
|
-
* This function can't be called in
|
|
2340
|
+
* This function can't be called in restricted-execution mode.
|
|
2341
2341
|
*
|
|
2342
2342
|
* @returns
|
|
2343
2343
|
* A new GameTestSequence with chaining methods that facilitate
|
|
@@ -2351,7 +2351,7 @@ export class Test {
|
|
|
2351
2351
|
* @remarks
|
|
2352
2352
|
* Marks the current test as a success case.
|
|
2353
2353
|
*
|
|
2354
|
-
* This function can't be called in
|
|
2354
|
+
* This function can't be called in restricted-execution mode.
|
|
2355
2355
|
*
|
|
2356
2356
|
* @throws This function can throw errors.
|
|
2357
2357
|
*/
|
|
@@ -2361,7 +2361,7 @@ export class Test {
|
|
|
2361
2361
|
* Runs the given callback. If the callback does not throw an
|
|
2362
2362
|
* exception, the test is marked as a success.
|
|
2363
2363
|
*
|
|
2364
|
-
* This function can't be called in
|
|
2364
|
+
* This function can't be called in restricted-execution mode.
|
|
2365
2365
|
*
|
|
2366
2366
|
* @param callback
|
|
2367
2367
|
* Callback function that runs. If the function runs
|
|
@@ -2374,7 +2374,7 @@ export class Test {
|
|
|
2374
2374
|
* @remarks
|
|
2375
2375
|
* Marks the test as a success at the specified tick.
|
|
2376
2376
|
*
|
|
2377
|
-
* This function can't be called in
|
|
2377
|
+
* This function can't be called in restricted-execution mode.
|
|
2378
2378
|
*
|
|
2379
2379
|
* @param tick
|
|
2380
2380
|
* Tick after the start of the GameTest to mark the test as
|
|
@@ -2388,7 +2388,7 @@ export class Test {
|
|
|
2388
2388
|
* the test. If the callback does not throw an exception, the
|
|
2389
2389
|
* test is marked as a failure.
|
|
2390
2390
|
*
|
|
2391
|
-
* This function can't be called in
|
|
2391
|
+
* This function can't be called in restricted-execution mode.
|
|
2392
2392
|
*
|
|
2393
2393
|
* @param tick
|
|
2394
2394
|
* Tick after the start of the GameTest to run the testing
|
|
@@ -2406,7 +2406,7 @@ export class Test {
|
|
|
2406
2406
|
* Specifically, the test will succeed when the callback does
|
|
2407
2407
|
* not throw an exception.
|
|
2408
2408
|
*
|
|
2409
|
-
* This function can't be called in
|
|
2409
|
+
* This function can't be called in restricted-execution mode.
|
|
2410
2410
|
*
|
|
2411
2411
|
* @param callback
|
|
2412
2412
|
* Testing callback function that runs. If the function runs
|
|
@@ -2441,7 +2441,7 @@ export class Test {
|
|
|
2441
2441
|
* the specified block of a type is found or not found
|
|
2442
2442
|
* (depending on isPresent), the test is marked as a success.
|
|
2443
2443
|
*
|
|
2444
|
-
* This function can't be called in
|
|
2444
|
+
* This function can't be called in restricted-execution mode.
|
|
2445
2445
|
*
|
|
2446
2446
|
* @param blockType
|
|
2447
2447
|
* Type of block to test for.
|
|
@@ -2469,7 +2469,7 @@ export class Test {
|
|
|
2469
2469
|
* Depending on the value of hasComponent, when the specified
|
|
2470
2470
|
* component is found, the test is marked as a success.
|
|
2471
2471
|
*
|
|
2472
|
-
* This function can't be called in
|
|
2472
|
+
* This function can't be called in restricted-execution mode.
|
|
2473
2473
|
*
|
|
2474
2474
|
* @param entityTypeIdentifier
|
|
2475
2475
|
* Type of entity to look for. If no namespace is specified,
|
|
@@ -2498,7 +2498,7 @@ export class Test {
|
|
|
2498
2498
|
* type is found or not found (depending on isPresent), the
|
|
2499
2499
|
* test is marked as a success.
|
|
2500
2500
|
*
|
|
2501
|
-
* This function can't be called in
|
|
2501
|
+
* This function can't be called in restricted-execution mode.
|
|
2502
2502
|
*
|
|
2503
2503
|
* @param entityTypeIdentifier
|
|
2504
2504
|
* Type of entity to test for (e.g., 'minecraft:skeleton'). If
|
|
@@ -2558,7 +2558,7 @@ export class Test {
|
|
|
2558
2558
|
* Triggers a block event from a fixed list of available block
|
|
2559
2559
|
* events.
|
|
2560
2560
|
*
|
|
2561
|
-
* This function can't be called in
|
|
2561
|
+
* This function can't be called in restricted-execution mode.
|
|
2562
2562
|
*
|
|
2563
2563
|
* @param event
|
|
2564
2564
|
* Event to trigger. Valid values include minecraft:drip,
|
|
@@ -2581,7 +2581,7 @@ export class Test {
|
|
|
2581
2581
|
* in conjunction with .assert functions to evaluate that a
|
|
2582
2582
|
* condition is true.
|
|
2583
2583
|
*
|
|
2584
|
-
* This function can't be called in
|
|
2584
|
+
* This function can't be called in restricted-execution mode.
|
|
2585
2585
|
*
|
|
2586
2586
|
* @param callback
|
|
2587
2587
|
* Function with code to evaluate.
|
|
@@ -2597,7 +2597,7 @@ export class Test {
|
|
|
2597
2597
|
* have more predictable mob behaviors. Mobs will stop
|
|
2598
2598
|
* navigation as soon as they intersect the target location.
|
|
2599
2599
|
*
|
|
2600
|
-
* This function can't be called in
|
|
2600
|
+
* This function can't be called in restricted-execution mode.
|
|
2601
2601
|
*
|
|
2602
2602
|
* @param mob
|
|
2603
2603
|
* Mob entity to give orders to.
|
|
@@ -2620,7 +2620,7 @@ export class Test {
|
|
|
2620
2620
|
* have more predictable mob behaviors. Mobs will stop
|
|
2621
2621
|
* navigation as soon as they intersect the target location.
|
|
2622
2622
|
*
|
|
2623
|
-
* This function can't be called in
|
|
2623
|
+
* This function can't be called in restricted-execution mode.
|
|
2624
2624
|
*
|
|
2625
2625
|
* @param mob
|
|
2626
2626
|
* Mob entity to give orders to.
|
|
@@ -2743,7 +2743,7 @@ export class GameTestError extends Error {
|
|
|
2743
2743
|
* @remarks
|
|
2744
2744
|
* Returns data about a player's skin.
|
|
2745
2745
|
*
|
|
2746
|
-
* This function can't be called in
|
|
2746
|
+
* This function can't be called in restricted-execution mode.
|
|
2747
2747
|
*
|
|
2748
2748
|
* @param player
|
|
2749
2749
|
* The player who's skin is returned.
|
|
@@ -2760,7 +2760,7 @@ export function getPlayerSkin(player: minecraftserver.Player): PlayerSkinData;
|
|
|
2760
2760
|
* available in Minecraft via /gametest run
|
|
2761
2761
|
* [testClassName]:[testName].
|
|
2762
2762
|
*
|
|
2763
|
-
* This function can't be called in
|
|
2763
|
+
* This function can't be called in restricted-execution mode.
|
|
2764
2764
|
*
|
|
2765
2765
|
* This function can be called in early-execution mode.
|
|
2766
2766
|
*
|
|
@@ -2806,7 +2806,7 @@ export function register(
|
|
|
2806
2806
|
* asynchronous execution. This GameTest will become available
|
|
2807
2807
|
* in Minecraft via /gametest run [testClassName]:[testName].
|
|
2808
2808
|
*
|
|
2809
|
-
* This function can't be called in
|
|
2809
|
+
* This function can't be called in restricted-execution mode.
|
|
2810
2810
|
*
|
|
2811
2811
|
* This function can be called in early-execution mode.
|
|
2812
2812
|
*
|
|
@@ -2852,7 +2852,7 @@ export function registerAsync(
|
|
|
2852
2852
|
* Sets a callback that is called after the batch gets called.
|
|
2853
2853
|
* This will overwrite previously set callbacks for this batch.
|
|
2854
2854
|
*
|
|
2855
|
-
* This function can't be called in
|
|
2855
|
+
* This function can't be called in restricted-execution mode.
|
|
2856
2856
|
*
|
|
2857
2857
|
* This function can be called in early-execution mode.
|
|
2858
2858
|
*
|
|
@@ -2868,7 +2868,7 @@ export function setAfterBatchCallback(batchName: string, batchCallback: () => vo
|
|
|
2868
2868
|
* Sets a callback that is called before the batch gets called.
|
|
2869
2869
|
* This will overwrite previously set callbacks for this batch.
|
|
2870
2870
|
*
|
|
2871
|
-
* This function can't be called in
|
|
2871
|
+
* This function can't be called in restricted-execution mode.
|
|
2872
2872
|
*
|
|
2873
2873
|
* This function can be called in early-execution mode.
|
|
2874
2874
|
*
|
|
@@ -2885,7 +2885,7 @@ export function setBeforeBatchCallback(batchName: string, batchCallback: () => v
|
|
|
2885
2885
|
* specific {@link Test}. You can use {@link
|
|
2886
2886
|
* SimulatedPlayer.remove} to remove the player from the world.
|
|
2887
2887
|
*
|
|
2888
|
-
* This function can't be called in
|
|
2888
|
+
* This function can't be called in restricted-execution mode.
|
|
2889
2889
|
*
|
|
2890
2890
|
* @param location
|
|
2891
2891
|
* The location in which to spawn the player.
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@minecraft/server-gametest",
|
|
3
|
-
"version": "1.0.0-beta.1.26.0-preview.
|
|
4
|
-
"description": "",
|
|
5
|
-
"contributors": [
|
|
6
|
-
{
|
|
7
|
-
"name": "Jake Shirley",
|
|
8
|
-
"email": "jake@xbox.com"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"name": "Mike Ammerlaan",
|
|
12
|
-
"email": "mikeam@microsoft.com"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^1.17.0 || ^2.0.0 || ^2.6.0-beta.1.26.0-preview.
|
|
18
|
-
},
|
|
19
|
-
"license": "MIT"
|
|
1
|
+
{
|
|
2
|
+
"name": "@minecraft/server-gametest",
|
|
3
|
+
"version": "1.0.0-beta.1.26.0-preview.26",
|
|
4
|
+
"description": "",
|
|
5
|
+
"contributors": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Jake Shirley",
|
|
8
|
+
"email": "jake@xbox.com"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Mike Ammerlaan",
|
|
12
|
+
"email": "mikeam@microsoft.com"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@minecraft/common": "^1.0.0",
|
|
17
|
+
"@minecraft/server": "^1.17.0 || ^2.0.0 || ^2.6.0-beta.1.26.0-preview.26"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT"
|
|
20
20
|
}
|