@minecraft/server-gametest 1.0.0-beta.1.20.0-preview.25 → 1.0.0-beta.1.20.0-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.
- package/index.d.ts +12 -10
- 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-
|
|
20
|
+
* "version": "1.0.0-internal.1.20.0-stable"
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
@@ -41,7 +41,7 @@ export enum GameTestErrorType {
|
|
|
41
41
|
* other fences in several directions.
|
|
42
42
|
*/
|
|
43
43
|
export class FenceConnectivity {
|
|
44
|
-
|
|
44
|
+
private constructor();
|
|
45
45
|
/**
|
|
46
46
|
* @remarks
|
|
47
47
|
* Represents whether this fence block is connected to another
|
|
@@ -78,7 +78,7 @@ export class FenceConnectivity {
|
|
|
78
78
|
* GameTest setup methods and assertions over time.
|
|
79
79
|
*/
|
|
80
80
|
export class GameTestSequence {
|
|
81
|
-
|
|
81
|
+
private constructor();
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
84
|
* Runs the given callback as a step within a GameTest
|
|
@@ -201,7 +201,7 @@ export class GameTestSequence {
|
|
|
201
201
|
* Methods can be chained together to set multiple properties.
|
|
202
202
|
*/
|
|
203
203
|
export class RegistrationBuilder {
|
|
204
|
-
|
|
204
|
+
private constructor();
|
|
205
205
|
/**
|
|
206
206
|
* @remarks
|
|
207
207
|
* Sets the batch for the test to run in.
|
|
@@ -335,7 +335,7 @@ export class RegistrationBuilder {
|
|
|
335
335
|
* growth of sculk around a particular block.
|
|
336
336
|
*/
|
|
337
337
|
export class SculkSpreader {
|
|
338
|
-
|
|
338
|
+
private constructor();
|
|
339
339
|
/**
|
|
340
340
|
* @remarks
|
|
341
341
|
* Gets the maximum charge of a sculk spreader.
|
|
@@ -388,8 +388,9 @@ export class SculkSpreader {
|
|
|
388
388
|
* player. This type derives much of its structure and methods
|
|
389
389
|
* from the {@link @minecraft/server.Player} type.
|
|
390
390
|
*/
|
|
391
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
391
392
|
export class SimulatedPlayer extends minecraftserver.Player {
|
|
392
|
-
|
|
393
|
+
private constructor();
|
|
393
394
|
/**
|
|
394
395
|
* @remarks
|
|
395
396
|
* Rotation of the head across pitch and yaw angles.
|
|
@@ -817,7 +818,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
817
818
|
* tests into suites to run.
|
|
818
819
|
*/
|
|
819
820
|
export class Tags {
|
|
820
|
-
|
|
821
|
+
private constructor();
|
|
821
822
|
/**
|
|
822
823
|
* @remarks
|
|
823
824
|
* Indicates that the tagged test should be a part of all
|
|
@@ -855,7 +856,7 @@ export class Tags {
|
|
|
855
856
|
* the GameTest structure block.
|
|
856
857
|
*/
|
|
857
858
|
export class Test {
|
|
858
|
-
|
|
859
|
+
private constructor();
|
|
859
860
|
/**
|
|
860
861
|
* @remarks
|
|
861
862
|
* Tests that the condition specified in _condition_ is true.
|
|
@@ -1161,7 +1162,7 @@ export class Test {
|
|
|
1161
1162
|
* test.assertEntityState(
|
|
1162
1163
|
* villagerPos,
|
|
1163
1164
|
* "minecraft:villager_v2",
|
|
1164
|
-
* (entity) => entity.getEffect(MinecraftEffectTypes.
|
|
1165
|
+
* (entity) => entity.getEffect(MinecraftEffectTypes.Regeneration).duration > 120
|
|
1165
1166
|
* ); // At least 6 seconds remaining in the villagers' effect
|
|
1166
1167
|
* ```
|
|
1167
1168
|
*/
|
|
@@ -2014,8 +2015,9 @@ export interface GameTestErrorContext {
|
|
|
2014
2015
|
tickCount: number;
|
|
2015
2016
|
}
|
|
2016
2017
|
|
|
2018
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2017
2019
|
export class GameTestError extends Error {
|
|
2018
|
-
|
|
2020
|
+
private constructor();
|
|
2019
2021
|
context?: GameTestErrorContext;
|
|
2020
2022
|
messageParameters: string[];
|
|
2021
2023
|
type: GameTestErrorType;
|
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-
|
|
3
|
+
"version": "1.0.0-beta.1.20.0-stable",
|
|
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-
|
|
16
|
+
"@minecraft/server": "1.3.0-beta.1.20.0-stable"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|