@minecraft/server-gametest 1.0.0-beta.preview.1.19.50.20 → 1.0.0-beta.release.1.19.40

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 +8 -8
  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.preview.1.19.50.20"
19
+ * "version": "1.0.0-internal.release.1.19.40"
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.IVec3;
340
+ readonly location: minecraftserver.Location;
341
341
  /**
342
342
  * Name of the player.
343
343
  * @throws This property can throw when used.
@@ -739,12 +739,12 @@ export class SimulatedPlayer extends minecraftserver.Player {
739
739
  * @throws This function can throw errors.
740
740
  */
741
741
  rotateBody(angleInDegrees: number): void;
742
+ runCommand(commandString: string): any;
742
743
  /**
743
744
  * @remarks
744
745
  * Runs a particular command asynchronously from the context of
745
- * this entity. Where possible, running a command
746
- * asynchronously is recommended, especially for long running
747
- * operations.
746
+ * this entity. Note that there is a maximum queue of 128
747
+ * asynchronous commands that can be run in a given tick.
748
748
  * @param commandString
749
749
  * Command to run. Note that command strings should not start
750
750
  * with slash.
@@ -1500,7 +1500,7 @@ export class Test {
1500
1500
  * A location relative to the GameTest command block.
1501
1501
  * @throws This function can throw errors.
1502
1502
  */
1503
- relativeBlockLocation(worldBlockLocation: minecraftserver.IVec3): minecraftserver.BlockLocation;
1503
+ relativeBlockLocation(worldBlockLocation: minecraftserver.BlockLocation): minecraftserver.BlockLocation;
1504
1504
  /**
1505
1505
  * @remarks
1506
1506
  * From a location, returns a new location with coordinates
@@ -1515,7 +1515,7 @@ export class Test {
1515
1515
  * A location relative to the GameTest command block.
1516
1516
  * @throws This function can throw errors.
1517
1517
  */
1518
- relativeLocation(worldLocation: minecraftserver.IVec3): minecraftserver.Location;
1518
+ relativeLocation(worldLocation: minecraftserver.Location): minecraftserver.Location;
1519
1519
  /**
1520
1520
  * @remarks
1521
1521
  * Removes a simulated player from the world.
@@ -1982,7 +1982,7 @@ export class Test {
1982
1982
  * An absolute location relative to the GameTest command block.
1983
1983
  * @throws This function can throw errors.
1984
1984
  */
1985
- worldLocation(relativeLocation: minecraftserver.IVec3): minecraftserver.Location;
1985
+ worldLocation(relativeLocation: minecraftserver.Location): minecraftserver.Location;
1986
1986
  protected constructor();
1987
1987
  }
1988
1988
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-gametest",
3
- "version": "1.0.0-beta.preview.1.19.50.20",
3
+ "version": "1.0.0-beta.release.1.19.40",
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.preview.1.19.50.20"
16
+ "@minecraft/server": "1.0.0-beta.release.1.19.40"
17
17
  },
18
18
  "license": "MIT"
19
19
  }