@minecraft/server-gametest 1.0.0-beta.1.26.2-stable → 1.0.0-beta.1.26.20-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/README.md +8 -8
- package/index.d.ts +10 -4
- 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
|
@@ -754,6 +754,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
754
754
|
*
|
|
755
755
|
* @param speed
|
|
756
756
|
* Defaults to: 1
|
|
757
|
+
* Bounds: [0, 1]
|
|
757
758
|
* @throws This function can throw errors.
|
|
758
759
|
*/
|
|
759
760
|
move(westEast: number, northSouth: number, speed?: number): void;
|
|
@@ -766,6 +767,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
766
767
|
*
|
|
767
768
|
* @param speed
|
|
768
769
|
* Defaults to: 1
|
|
770
|
+
* Bounds: [0, 1]
|
|
769
771
|
* @throws This function can throw errors.
|
|
770
772
|
*/
|
|
771
773
|
moveRelative(leftRight: number, backwardForward: number, speed?: number): void;
|
|
@@ -811,6 +813,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
811
813
|
*
|
|
812
814
|
* @param speed
|
|
813
815
|
* Defaults to: 1
|
|
816
|
+
* Bounds: [0, 1]
|
|
814
817
|
* @throws This function can throw errors.
|
|
815
818
|
*
|
|
816
819
|
* {@link GameTestError}
|
|
@@ -828,6 +831,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
828
831
|
*
|
|
829
832
|
* @param speed
|
|
830
833
|
* Defaults to: 1
|
|
834
|
+
* Bounds: [0, 1]
|
|
831
835
|
* @throws This function can throw errors.
|
|
832
836
|
*
|
|
833
837
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
@@ -848,6 +852,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
848
852
|
*
|
|
849
853
|
* @param speed
|
|
850
854
|
* Defaults to: 1
|
|
855
|
+
* Bounds: [0, 1]
|
|
851
856
|
* @throws This function can throw errors.
|
|
852
857
|
*
|
|
853
858
|
* {@link GameTestError}
|
|
@@ -868,6 +873,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
868
873
|
* @param speed
|
|
869
874
|
* Net speed to use for doing the navigation.
|
|
870
875
|
* Defaults to: 1
|
|
876
|
+
* Bounds: [0, 1]
|
|
871
877
|
* @throws This function can throw errors.
|
|
872
878
|
*
|
|
873
879
|
* {@link GameTestError}
|
|
@@ -2713,7 +2719,7 @@ export class GameTestCompletedError extends Error {
|
|
|
2713
2719
|
* This property can be read in early-execution mode.
|
|
2714
2720
|
*
|
|
2715
2721
|
*/
|
|
2716
|
-
reason: GameTestCompletedErrorReason;
|
|
2722
|
+
readonly reason: GameTestCompletedErrorReason;
|
|
2717
2723
|
}
|
|
2718
2724
|
|
|
2719
2725
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -2724,19 +2730,19 @@ export class GameTestError extends Error {
|
|
|
2724
2730
|
* This property can be read in early-execution mode.
|
|
2725
2731
|
*
|
|
2726
2732
|
*/
|
|
2727
|
-
context?: GameTestErrorContext;
|
|
2733
|
+
readonly context?: GameTestErrorContext;
|
|
2728
2734
|
/**
|
|
2729
2735
|
* @remarks
|
|
2730
2736
|
* This property can be read in early-execution mode.
|
|
2731
2737
|
*
|
|
2732
2738
|
*/
|
|
2733
|
-
messageParameters: string[];
|
|
2739
|
+
readonly messageParameters: string[];
|
|
2734
2740
|
/**
|
|
2735
2741
|
* @remarks
|
|
2736
2742
|
* This property can be read in early-execution mode.
|
|
2737
2743
|
*
|
|
2738
2744
|
*/
|
|
2739
|
-
type: GameTestErrorType;
|
|
2745
|
+
readonly type: GameTestErrorType;
|
|
2740
2746
|
}
|
|
2741
2747
|
|
|
2742
2748
|
/**
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@minecraft/server-gametest",
|
|
3
|
-
"version": "1.0.0-beta.1.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.
|
|
18
|
-
},
|
|
19
|
-
"license": "MIT"
|
|
1
|
+
{
|
|
2
|
+
"name": "@minecraft/server-gametest",
|
|
3
|
+
"version": "1.0.0-beta.1.26.20-preview.20",
|
|
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.8.0-beta.1.26.20-preview.20"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT"
|
|
20
20
|
}
|