@minecraft/server-gametest 1.0.0-beta.1.20.10-preview.24 → 1.0.0-beta.1.20.10-stable

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 +39 -42
  2. 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.10-preview.24"
20
+ * "version": "1.0.0-internal.1.20.10-stable"
21
21
  * }
22
22
  * ```
23
23
  *
@@ -1162,22 +1162,21 @@ export class Test {
1162
1162
  * @throws This function can throw errors.
1163
1163
  * @example simpleMobTest.ts
1164
1164
  * ```typescript
1165
- * gt.register("StarterTests", "simpleMobTest", (test: gt.Test) => {
1166
- * const attackerId = "fox";
1167
- * const victimId = "chicken";
1165
+ * gt.register("StarterTests", "simpleMobTest", (test: gt.Test) => {
1166
+ * const attackerId = "fox";
1167
+ * const victimId = "chicken";
1168
1168
  *
1169
- * test.spawn(attackerId, { x: 5, y: 2, z: 5 });
1170
- * test.spawn(victimId, { x: 2, y: 2, z: 2 });
1169
+ * test.spawn(attackerId, { x: 5, y: 2, z: 5 });
1170
+ * test.spawn(victimId, { x: 2, y: 2, z: 2 });
1171
1171
  *
1172
- * test.assertEntityPresentInArea(victimId, true);
1173
- *
1174
- * test.succeedWhen(() => {
1175
- * test.assertEntityPresentInArea(victimId, false);
1176
- * });
1177
- * })
1178
- * .maxTicks(400)
1179
- * .structureName("gametests:mediumglass");
1172
+ * test.assertEntityPresentInArea(victimId, true);
1180
1173
  *
1174
+ * test.succeedWhen(() => {
1175
+ * test.assertEntityPresentInArea(victimId, false);
1176
+ * });
1177
+ * })
1178
+ * .maxTicks(400)
1179
+ * .structureName("gametests:mediumglass");
1181
1180
  * ```
1182
1181
  */
1183
1182
  assertEntityPresentInArea(entityTypeIdentifier: string, isPresent?: boolean): void;
@@ -1644,21 +1643,21 @@ export class Test {
1644
1643
  * @throws This function can throw errors.
1645
1644
  * @example simpleMobTest.ts
1646
1645
  * ```typescript
1647
- * gt.register("StarterTests", "simpleMobTest", (test: gt.Test) => {
1648
- * const attackerId = "fox";
1649
- * const victimId = "chicken";
1646
+ * gt.register("StarterTests", "simpleMobTest", (test: gt.Test) => {
1647
+ * const attackerId = "fox";
1648
+ * const victimId = "chicken";
1650
1649
  *
1651
- * test.spawn(attackerId, { x: 5, y: 2, z: 5 });
1652
- * test.spawn(victimId, { x: 2, y: 2, z: 2 });
1650
+ * test.spawn(attackerId, { x: 5, y: 2, z: 5 });
1651
+ * test.spawn(victimId, { x: 2, y: 2, z: 2 });
1653
1652
  *
1654
- * test.assertEntityPresentInArea(victimId, true);
1653
+ * test.assertEntityPresentInArea(victimId, true);
1655
1654
  *
1656
- * test.succeedWhen(() => {
1657
- * test.assertEntityPresentInArea(victimId, false);
1658
- * });
1659
- * })
1660
- * .maxTicks(400)
1661
- * .structureName("gametests:mediumglass");
1655
+ * test.succeedWhen(() => {
1656
+ * test.assertEntityPresentInArea(victimId, false);
1657
+ * });
1658
+ * })
1659
+ * .maxTicks(400)
1660
+ * .structureName("gametests:mediumglass");
1662
1661
  * ```
1663
1662
  * @example spawnAdultPig.js
1664
1663
  * ```typescript
@@ -1701,12 +1700,11 @@ export class Test {
1701
1700
  * @throws This function can throw errors.
1702
1701
  * @example spawnEmeralds.js
1703
1702
  * ```typescript
1704
- * const oneEmerald = new ItemStack(MinecraftItemTypes.emerald, 1, 0);
1705
- * const fiveEmeralds = new ItemStack(MinecraftItemTypes.emerald, 5, 0);
1703
+ * const oneEmerald = new ItemStack(MinecraftItemTypes.Emerald, 1, 0);
1704
+ * const fiveEmeralds = new ItemStack(MinecraftItemTypes.Emerald, 5, 0);
1706
1705
  *
1707
1706
  * test.spawnItem(oneEmerald, { x: 3.5, y: 3, z: 1.5 });
1708
1707
  * test.spawnItem(fiveEmeralds, { x: 1.5, y: 3, z: 1.5 });
1709
- *
1710
1708
  * ```
1711
1709
  */
1712
1710
  spawnItem(itemStack: minecraftserver.ItemStack, location: minecraftserver.Vector3): minecraftserver.Entity;
@@ -1860,22 +1858,21 @@ export class Test {
1860
1858
  * @throws This function can throw errors.
1861
1859
  * @example simpleMobTest.ts
1862
1860
  * ```typescript
1863
- * gt.register("StarterTests", "simpleMobTest", (test: gt.Test) => {
1864
- * const attackerId = "fox";
1865
- * const victimId = "chicken";
1861
+ * gt.register("StarterTests", "simpleMobTest", (test: gt.Test) => {
1862
+ * const attackerId = "fox";
1863
+ * const victimId = "chicken";
1866
1864
  *
1867
- * test.spawn(attackerId, { x: 5, y: 2, z: 5 });
1868
- * test.spawn(victimId, { x: 2, y: 2, z: 2 });
1869
- *
1870
- * test.assertEntityPresentInArea(victimId, true);
1865
+ * test.spawn(attackerId, { x: 5, y: 2, z: 5 });
1866
+ * test.spawn(victimId, { x: 2, y: 2, z: 2 });
1871
1867
  *
1872
- * test.succeedWhen(() => {
1873
- * test.assertEntityPresentInArea(victimId, false);
1874
- * });
1875
- * })
1876
- * .maxTicks(400)
1877
- * .structureName("gametests:mediumglass");
1868
+ * test.assertEntityPresentInArea(victimId, true);
1878
1869
  *
1870
+ * test.succeedWhen(() => {
1871
+ * test.assertEntityPresentInArea(victimId, false);
1872
+ * });
1873
+ * })
1874
+ * .maxTicks(400)
1875
+ * .structureName("gametests:mediumglass");
1879
1876
  * ```
1880
1877
  */
1881
1878
  succeedWhen(callback: () => void): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-gametest",
3
- "version": "1.0.0-beta.1.20.10-preview.24",
3
+ "version": "1.0.0-beta.1.20.10-stable",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "dependencies": {
16
- "@minecraft/server": "^1.4.0-beta.1.20.10-preview.24"
16
+ "@minecraft/server": "^1.4.0-beta.1.20.10-stable"
17
17
  },
18
18
  "license": "MIT"
19
19
  }