@minecraft/server-gametest 1.0.0-beta.11940b24 → 1.0.0-beta.preview.1.19.50.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.
Files changed (2) hide show
  1. package/index.d.ts +5 -24
  2. 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.11940b24"
19
+ * "version": "1.0.0-internal.preview.1.19.50.20"
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.Location;
340
+ readonly location: minecraftserver.IVec3;
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
@@ -1519,7 +1500,7 @@ export class Test {
1519
1500
  * A location relative to the GameTest command block.
1520
1501
  * @throws This function can throw errors.
1521
1502
  */
1522
- relativeBlockLocation(worldBlockLocation: minecraftserver.BlockLocation): minecraftserver.BlockLocation;
1503
+ relativeBlockLocation(worldBlockLocation: minecraftserver.IVec3): minecraftserver.BlockLocation;
1523
1504
  /**
1524
1505
  * @remarks
1525
1506
  * From a location, returns a new location with coordinates
@@ -1534,7 +1515,7 @@ export class Test {
1534
1515
  * A location relative to the GameTest command block.
1535
1516
  * @throws This function can throw errors.
1536
1517
  */
1537
- relativeLocation(worldLocation: minecraftserver.Location): minecraftserver.Location;
1518
+ relativeLocation(worldLocation: minecraftserver.IVec3): minecraftserver.Location;
1538
1519
  /**
1539
1520
  * @remarks
1540
1521
  * Removes a simulated player from the world.
@@ -2001,7 +1982,7 @@ export class Test {
2001
1982
  * An absolute location relative to the GameTest command block.
2002
1983
  * @throws This function can throw errors.
2003
1984
  */
2004
- worldLocation(relativeLocation: minecraftserver.Location): minecraftserver.Location;
1985
+ worldLocation(relativeLocation: minecraftserver.IVec3): minecraftserver.Location;
2005
1986
  protected constructor();
2006
1987
  }
2007
1988
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-gametest",
3
- "version": "1.0.0-beta.11940b24",
3
+ "version": "1.0.0-beta.preview.1.19.50.20",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "dependencies": {
16
- "@minecraft/server": "1.0.0-beta.11940b24"
16
+ "@minecraft/server": "1.0.0-beta.preview.1.19.50.20"
17
17
  },
18
18
  "license": "MIT"
19
19
  }