@minecraft/server-gametest 1.0.0-beta.1.20.0-preview.25 → 1.0.0-beta.1.20.10-preview.20
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 +44 -2
- 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.20.
|
|
20
|
+
* "version": "1.0.0-internal.1.20.10-preview.20"
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
@@ -454,6 +454,13 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
454
454
|
* @throws This function can throw errors.
|
|
455
455
|
*/
|
|
456
456
|
disconnect(): void;
|
|
457
|
+
/**
|
|
458
|
+
* @remarks
|
|
459
|
+
* This function can't be called in read-only mode.
|
|
460
|
+
*
|
|
461
|
+
* @throws This function can throw errors.
|
|
462
|
+
*/
|
|
463
|
+
fly(): void;
|
|
457
464
|
/**
|
|
458
465
|
* @remarks
|
|
459
466
|
* Gives the simulated player a particular item stack.
|
|
@@ -467,6 +474,13 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
467
474
|
* @throws This function can throw errors.
|
|
468
475
|
*/
|
|
469
476
|
giveItem(itemStack: minecraftserver.ItemStack, selectSlot?: boolean): boolean;
|
|
477
|
+
/**
|
|
478
|
+
* @remarks
|
|
479
|
+
* This function can't be called in read-only mode.
|
|
480
|
+
*
|
|
481
|
+
* @throws This function can throw errors.
|
|
482
|
+
*/
|
|
483
|
+
glide(): boolean;
|
|
470
484
|
/**
|
|
471
485
|
* @remarks
|
|
472
486
|
* Performs a raycast from the player’s head and interacts with
|
|
@@ -708,6 +722,20 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
708
722
|
* @throws This function can throw errors.
|
|
709
723
|
*/
|
|
710
724
|
stopBreakingBlock(): void;
|
|
725
|
+
/**
|
|
726
|
+
* @remarks
|
|
727
|
+
* This function can't be called in read-only mode.
|
|
728
|
+
*
|
|
729
|
+
* @throws This function can throw errors.
|
|
730
|
+
*/
|
|
731
|
+
stopFlying(): void;
|
|
732
|
+
/**
|
|
733
|
+
* @remarks
|
|
734
|
+
* This function can't be called in read-only mode.
|
|
735
|
+
*
|
|
736
|
+
* @throws This function can throw errors.
|
|
737
|
+
*/
|
|
738
|
+
stopGliding(): void;
|
|
711
739
|
/**
|
|
712
740
|
* @remarks
|
|
713
741
|
* Stops interacting with entities or blocks.
|
|
@@ -727,6 +755,13 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
727
755
|
* @throws This function can throw errors.
|
|
728
756
|
*/
|
|
729
757
|
stopMoving(): void;
|
|
758
|
+
/**
|
|
759
|
+
* @remarks
|
|
760
|
+
* This function can't be called in read-only mode.
|
|
761
|
+
*
|
|
762
|
+
* @throws This function can throw errors.
|
|
763
|
+
*/
|
|
764
|
+
stopSwimming(): void;
|
|
730
765
|
/**
|
|
731
766
|
* @remarks
|
|
732
767
|
* Stops using the currently active item.
|
|
@@ -736,6 +771,13 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
736
771
|
* @throws This function can throw errors.
|
|
737
772
|
*/
|
|
738
773
|
stopUsingItem(): void;
|
|
774
|
+
/**
|
|
775
|
+
* @remarks
|
|
776
|
+
* This function can't be called in read-only mode.
|
|
777
|
+
*
|
|
778
|
+
* @throws This function can throw errors.
|
|
779
|
+
*/
|
|
780
|
+
swim(): void;
|
|
739
781
|
/**
|
|
740
782
|
* @remarks
|
|
741
783
|
* Causes the simulated player to use an item. Does not consume
|
|
@@ -1161,7 +1203,7 @@ export class Test {
|
|
|
1161
1203
|
* test.assertEntityState(
|
|
1162
1204
|
* villagerPos,
|
|
1163
1205
|
* "minecraft:villager_v2",
|
|
1164
|
-
* (entity) => entity.getEffect(MinecraftEffectTypes.
|
|
1206
|
+
* (entity) => entity.getEffect(MinecraftEffectTypes.Regeneration).duration > 120
|
|
1165
1207
|
* ); // At least 6 seconds remaining in the villagers' effect
|
|
1166
1208
|
* ```
|
|
1167
1209
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-gametest",
|
|
3
|
-
"version": "1.0.0-beta.1.20.
|
|
3
|
+
"version": "1.0.0-beta.1.20.10-preview.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/server": "1.
|
|
16
|
+
"@minecraft/server": "1.4.0-beta.1.20.10-preview.20"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|