@minecraft/server-gametest 1.0.0-beta.1.20.0-preview.21 → 1.0.0-beta.1.20.0-preview.22

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 +11 -1
  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.0-preview.21"
20
+ * "version": "1.0.0-internal.1.20.0-preview.22"
21
21
  * }
22
22
  * ```
23
23
  *
@@ -35,6 +35,7 @@ export enum GameTestErrorType {
35
35
  Unknown = 'Unknown',
36
36
  Waiting = 'Waiting',
37
37
  }
38
+
38
39
  /**
39
40
  * Returns information about whether this fence is connected to
40
41
  * other fences in several directions.
@@ -70,6 +71,7 @@ export class FenceConnectivity {
70
71
  */
71
72
  readonly west: boolean;
72
73
  }
74
+
73
75
  /**
74
76
  * Executes a set of steps defined via chained .thenXyz
75
77
  * methods, sequentially. This facilitates a 'script' of
@@ -193,6 +195,7 @@ export class GameTestSequence {
193
195
  */
194
196
  thenWaitAfter(delayTicks: number, callback: () => void): GameTestSequence;
195
197
  }
198
+
196
199
  /**
197
200
  * A utility class to set GameTest parameters for a test.
198
201
  * Methods can be chained together to set multiple properties.
@@ -325,6 +328,7 @@ export class RegistrationBuilder {
325
328
  */
326
329
  tag(tag: string): RegistrationBuilder;
327
330
  }
331
+
328
332
  /**
329
333
  * Implements a class that can be used for testing sculk
330
334
  * spreading behaviors. This sculk spreader class can drive the
@@ -376,6 +380,7 @@ export class SculkSpreader {
376
380
  */
377
381
  getTotalCharge(): number;
378
382
  }
383
+
379
384
  /**
380
385
  * A simulated player can be used within GameTests to represent
381
386
  * how a player moves throughout the world and to support
@@ -806,6 +811,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
806
811
  faceLocation?: minecraftserver.Vector3,
807
812
  ): boolean;
808
813
  }
814
+
809
815
  /**
810
816
  * These well-known tags can be used to classify different
811
817
  * tests into suites to run.
@@ -841,6 +847,7 @@ export class Tags {
841
847
  */
842
848
  static readonly suiteDisabled = 'suite:disabled';
843
849
  }
850
+
844
851
  /**
845
852
  * Main class for GameTest functions, with helpers and data for
846
853
  * manipulating the respective test. Note that all methods of
@@ -2013,17 +2020,20 @@ export class Test {
2013
2020
  */
2014
2021
  worldLocation(relativeLocation: minecraftserver.Vector3): minecraftserver.Vector3;
2015
2022
  }
2023
+
2016
2024
  export interface GameTestErrorContext {
2017
2025
  absolutePosition: minecraftserver.Vector3;
2018
2026
  relativePosition: minecraftserver.Vector3;
2019
2027
  tickCount: number;
2020
2028
  }
2029
+
2021
2030
  export class GameTestError extends Error {
2022
2031
  protected constructor();
2023
2032
  context?: GameTestErrorContext;
2024
2033
  messageParameters: string[];
2025
2034
  type: GameTestErrorType;
2026
2035
  }
2036
+
2027
2037
  /**
2028
2038
  * @remarks
2029
2039
  * Registers a new GameTest function. This GameTest will become
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-gametest",
3
- "version": "1.0.0-beta.1.20.0-preview.21",
3
+ "version": "1.0.0-beta.1.20.0-preview.22",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "dependencies": {
16
- "@minecraft/server": "1.3.0-beta.1.20.0-preview.21"
16
+ "@minecraft/server": "1.3.0-beta.1.20.0-preview.22"
17
17
  },
18
18
  "license": "MIT"
19
19
  }