@minecraft/server-gametest 1.0.0-beta.1.20.60-preview.21 → 1.0.0-beta.1.20.60-preview.23
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 +10 -4
- 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.60-preview.
|
|
20
|
+
* "version": "1.0.0-internal.1.20.60-preview.23"
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
@@ -203,6 +203,12 @@ export class GameTestSequence {
|
|
|
203
203
|
thenWaitAfter(delayTicks: number, callback: () => void): GameTestSequence;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
export class NavigationResult {
|
|
207
|
+
private constructor();
|
|
208
|
+
readonly isFullPath: boolean;
|
|
209
|
+
getPath(): minecraftserver.Vector3[];
|
|
210
|
+
}
|
|
211
|
+
|
|
206
212
|
/**
|
|
207
213
|
* A utility class to set GameTest parameters for a test.
|
|
208
214
|
* Methods can be chained together to set multiple properties.
|
|
@@ -657,7 +663,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
657
663
|
*
|
|
658
664
|
* @throws This function can throw errors.
|
|
659
665
|
*/
|
|
660
|
-
navigateToBlock(blockLocation: minecraftserver.Vector3, speed?: number):
|
|
666
|
+
navigateToBlock(blockLocation: minecraftserver.Vector3, speed?: number): NavigationResult;
|
|
661
667
|
/**
|
|
662
668
|
* @remarks
|
|
663
669
|
* Will use navigation to follow the selected entity to within
|
|
@@ -668,7 +674,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
668
674
|
*
|
|
669
675
|
* @throws This function can throw errors.
|
|
670
676
|
*/
|
|
671
|
-
navigateToEntity(entity: minecraftserver.Entity, speed?: number):
|
|
677
|
+
navigateToEntity(entity: minecraftserver.Entity, speed?: number): NavigationResult;
|
|
672
678
|
/**
|
|
673
679
|
* @remarks
|
|
674
680
|
* Orders the simulated player to move to a specific location
|
|
@@ -682,7 +688,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
682
688
|
*
|
|
683
689
|
* @throws This function can throw errors.
|
|
684
690
|
*/
|
|
685
|
-
navigateToLocation(location: minecraftserver.Vector3, speed?: number):
|
|
691
|
+
navigateToLocation(location: minecraftserver.Vector3, speed?: number): NavigationResult;
|
|
686
692
|
/**
|
|
687
693
|
* @remarks
|
|
688
694
|
* Use navigation to follow the route provided via the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-gametest",
|
|
3
|
-
"version": "1.0.0-beta.1.20.60-preview.
|
|
3
|
+
"version": "1.0.0-beta.1.20.60-preview.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^1.
|
|
17
|
+
"@minecraft/server": "^1.8.0-rc.1.20.60-preview.23"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|