@minecraft/server-gametest 1.0.0-beta.11940b24 → 1.0.0-beta.preview.1.19.50.21
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 -28
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```json
|
|
17
17
|
* {
|
|
18
18
|
* "module_name": "@minecraft/server-gametest",
|
|
19
|
-
* "version": "1.0.0-internal.
|
|
19
|
+
* "version": "1.0.0-internal.preview.1.19.50.21"
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -337,7 +337,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
337
337
|
* Current location of the player.
|
|
338
338
|
* @throws This property can throw when used.
|
|
339
339
|
*/
|
|
340
|
-
readonly location: minecraftserver.
|
|
340
|
+
readonly location: minecraftserver.Vector3;
|
|
341
341
|
/**
|
|
342
342
|
* Name of the player.
|
|
343
343
|
* @throws This property can throw when used.
|
|
@@ -739,25 +739,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
739
739
|
* @throws This function can throw errors.
|
|
740
740
|
*/
|
|
741
741
|
rotateBody(angleInDegrees: number): void;
|
|
742
|
-
/**
|
|
743
|
-
* @remarks
|
|
744
|
-
* Runs a particular command from the context of this simulated
|
|
745
|
-
* player.
|
|
746
|
-
* @param commandString
|
|
747
|
-
* Command to run. Note that command strings should not start
|
|
748
|
-
* with slash.
|
|
749
|
-
* @returns
|
|
750
|
-
* For commands that return data, returns a JSON structure with
|
|
751
|
-
* command response values.
|
|
752
|
-
* @throws This function can throw errors.
|
|
753
|
-
* @example commands.js
|
|
754
|
-
* ```typescript
|
|
755
|
-
* player.runCommand("say You got a new high score!");
|
|
756
|
-
* player.runCommand("scoreboard players set @s score 10");
|
|
757
|
-
*
|
|
758
|
-
* ```
|
|
759
|
-
*/
|
|
760
|
-
runCommand(commandString: string): any;
|
|
761
742
|
/**
|
|
762
743
|
* @remarks
|
|
763
744
|
* Runs a particular command asynchronously from the context of
|
|
@@ -827,7 +808,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
827
808
|
* X/Y/Z components of the velocity.
|
|
828
809
|
* @throws This function can throw errors.
|
|
829
810
|
*/
|
|
830
|
-
setVelocity(velocity: minecraftserver.
|
|
811
|
+
setVelocity(velocity: minecraftserver.Vector3): void;
|
|
831
812
|
/**
|
|
832
813
|
* @remarks
|
|
833
814
|
* Sets the item cooldown time for a particular cooldown
|
|
@@ -880,7 +861,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
880
861
|
* @throws This function can throw errors.
|
|
881
862
|
*/
|
|
882
863
|
teleport(
|
|
883
|
-
location: minecraftserver.
|
|
864
|
+
location: minecraftserver.Vector3,
|
|
884
865
|
dimension: minecraftserver.Dimension,
|
|
885
866
|
xRotation: number,
|
|
886
867
|
yRotation: number,
|
|
@@ -900,9 +881,9 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
900
881
|
* @throws This function can throw errors.
|
|
901
882
|
*/
|
|
902
883
|
teleportFacing(
|
|
903
|
-
location: minecraftserver.
|
|
884
|
+
location: minecraftserver.Vector3,
|
|
904
885
|
dimension: minecraftserver.Dimension,
|
|
905
|
-
facingLocation: minecraftserver.
|
|
886
|
+
facingLocation: minecraftserver.Vector3,
|
|
906
887
|
keepVelocity?: boolean,
|
|
907
888
|
): void;
|
|
908
889
|
/**
|
|
@@ -1466,6 +1447,7 @@ export class Test {
|
|
|
1466
1447
|
* @throws This function can throw errors.
|
|
1467
1448
|
*/
|
|
1468
1449
|
killAllEntities(): void;
|
|
1450
|
+
onPlayerJump(mob: minecraftserver.Entity, jumpAmount: number): void;
|
|
1469
1451
|
/**
|
|
1470
1452
|
* @remarks
|
|
1471
1453
|
* Presses a button at a block location.
|
|
@@ -1519,7 +1501,7 @@ export class Test {
|
|
|
1519
1501
|
* A location relative to the GameTest command block.
|
|
1520
1502
|
* @throws This function can throw errors.
|
|
1521
1503
|
*/
|
|
1522
|
-
relativeBlockLocation(worldBlockLocation: minecraftserver.
|
|
1504
|
+
relativeBlockLocation(worldBlockLocation: minecraftserver.Vector3): minecraftserver.BlockLocation;
|
|
1523
1505
|
/**
|
|
1524
1506
|
* @remarks
|
|
1525
1507
|
* From a location, returns a new location with coordinates
|
|
@@ -1534,7 +1516,7 @@ export class Test {
|
|
|
1534
1516
|
* A location relative to the GameTest command block.
|
|
1535
1517
|
* @throws This function can throw errors.
|
|
1536
1518
|
*/
|
|
1537
|
-
relativeLocation(worldLocation: minecraftserver.
|
|
1519
|
+
relativeLocation(worldLocation: minecraftserver.Vector3): minecraftserver.Location;
|
|
1538
1520
|
/**
|
|
1539
1521
|
* @remarks
|
|
1540
1522
|
* Removes a simulated player from the world.
|
|
@@ -2001,7 +1983,7 @@ export class Test {
|
|
|
2001
1983
|
* An absolute location relative to the GameTest command block.
|
|
2002
1984
|
* @throws This function can throw errors.
|
|
2003
1985
|
*/
|
|
2004
|
-
worldLocation(relativeLocation: minecraftserver.
|
|
1986
|
+
worldLocation(relativeLocation: minecraftserver.Vector3): minecraftserver.Location;
|
|
2005
1987
|
protected constructor();
|
|
2006
1988
|
}
|
|
2007
1989
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-gametest",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.preview.1.19.50.21",
|
|
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.1.0-beta.preview.1.19.50.21"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|