@minecraft/server-gametest 1.0.0-beta.1.19.80-preview.21 → 1.0.0-beta.1.19.80-preview.23

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 +2 -44
  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.19.80-preview.21"
20
+ * "version": "1.0.0-internal.1.19.80-preview.23"
21
21
  * }
22
22
  * ```
23
23
  *
@@ -99,7 +99,6 @@ export class GameTestSequence {
99
99
  * @remarks
100
100
  * Runs the given callback every tick for the given number of
101
101
  * ticks.
102
- * @param tickCount
103
102
  * @param callback
104
103
  * Callback function to execute.
105
104
  * @returns
@@ -177,12 +176,11 @@ export class RegistrationBuilder {
177
176
  * RegistrationBuilder object where additional configuration
178
177
  * methods can be called.
179
178
  */
180
- batch(batchName: 'night' | 'day'): RegistrationBuilder;
179
+ batch(batchName: string): RegistrationBuilder;
181
180
  /**
182
181
  * @remarks
183
182
  * Sets the maximum number of times a test will try to rerun if
184
183
  * it fails.
185
- * @param attemptCount
186
184
  * @returns
187
185
  * RegistrationBuilder object where additional configuration
188
186
  * methods can be called.
@@ -192,7 +190,6 @@ export class RegistrationBuilder {
192
190
  * @remarks
193
191
  * Sets the maximum number of ticks a test will run for before
194
192
  * timing out and failing.
195
- * @param tickCount
196
193
  * @returns
197
194
  * RegistrationBuilder object where additional configuration
198
195
  * methods can be called.
@@ -226,7 +223,6 @@ export class RegistrationBuilder {
226
223
  * @remarks
227
224
  * Sets the number of successful test runs to be considered
228
225
  * successful.
229
- * @param attemptCount
230
226
  * @returns
231
227
  * RegistrationBuilder object where additional configuration
232
228
  * methods can be called.
@@ -236,14 +232,12 @@ export class RegistrationBuilder {
236
232
  * @remarks
237
233
  * If true, runs the test in all four rotations when run via
238
234
  * /gametest runset.
239
- * @param rotate
240
235
  */
241
236
  rotateTest(rotate: boolean): RegistrationBuilder;
242
237
  /**
243
238
  * @remarks
244
239
  * Sets the number of ticks for a test to wait before executing
245
240
  * when the structure is spawned.
246
- * @param tickCount
247
241
  * @returns
248
242
  * RegistrationBuilder object where additional configuration
249
243
  * methods can be called.
@@ -254,7 +248,6 @@ export class RegistrationBuilder {
254
248
  * Sets the name of the structure for a test to use. "xyz:bar"
255
249
  * will load `/structures/xyz/bar.mcstructure` from the
256
250
  * behavior pack stack.
257
- * @param structureName
258
251
  * @returns
259
252
  * RegistrationBuilder object where additional configuration
260
253
  * methods can be called.
@@ -264,7 +257,6 @@ export class RegistrationBuilder {
264
257
  * @remarks
265
258
  * Adds a tag to a test. You can run all tests with a given tag
266
259
  * with `/gametest runset <tag>`.
267
- * @param tag
268
260
  * @returns
269
261
  * RegistrationBuilder object where additional configuration
270
262
  * methods can be called.
@@ -287,14 +279,11 @@ export class SculkSpreader {
287
279
  * @remarks
288
280
  * Adds a cursor - which is a notional waypoint that the sculk
289
281
  * will spread in the direction of.
290
- * @param offset
291
- * @param charge
292
282
  */
293
283
  addCursorsWithOffset(offset: minecraftserver.Vector3, charge: number): void;
294
284
  /**
295
285
  * @remarks
296
286
  * Retrieves the current position of the specified cursor.
297
- * @param index
298
287
  * @throws This function can throw errors.
299
288
  */
300
289
  getCursorPosition(index: number): minecraftserver.Vector3;
@@ -342,7 +331,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
342
331
  * player was not on cooldown and had a valid target. The
343
332
  * attack can be performed at any distance and does not require
344
333
  * line of sight to the target entity.
345
- * @param entity
346
334
  * @throws This function can throw errors.
347
335
  */
348
336
  attackEntity(entity: minecraftserver.Entity): boolean;
@@ -417,7 +405,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
417
405
  * @remarks
418
406
  * Rotates the simulated player's head/body to look at the
419
407
  * given block location.
420
- * @param blockLocation
421
408
  * @throws This function can throw errors.
422
409
  */
423
410
  lookAtBlock(blockLocation: minecraftserver.Vector3): void;
@@ -425,7 +412,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
425
412
  * @remarks
426
413
  * Rotates the simulated player's head/body to look at the
427
414
  * given entity.
428
- * @param entity
429
415
  * @throws This function can throw errors.
430
416
  */
431
417
  lookAtEntity(entity: minecraftserver.Entity): void;
@@ -433,7 +419,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
433
419
  * @remarks
434
420
  * Rotates the simulated player's head/body to look at the
435
421
  * given location.
436
- * @param location
437
422
  * @throws This function can throw errors.
438
423
  */
439
424
  lookAtLocation(location: minecraftserver.Vector3): void;
@@ -441,9 +426,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
441
426
  * @remarks
442
427
  * Orders the simulated player to walk in the given direction
443
428
  * relative to the GameTest.
444
- * @param westEast
445
- * @param northSouth
446
- * @param speed
447
429
  * @throws This function can throw errors.
448
430
  */
449
431
  move(westEast: number, northSouth: number, speed?: number): void;
@@ -451,9 +433,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
451
433
  * @remarks
452
434
  * Orders the simulated player to walk in the given direction
453
435
  * relative to the player's current rotation.
454
- * @param leftRight
455
- * @param backwardForward
456
- * @param speed
457
436
  * @throws This function can throw errors.
458
437
  */
459
438
  moveRelative(leftRight: number, backwardForward: number, speed?: number): void;
@@ -463,8 +442,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
463
442
  * location in a straight line. If a move or navigation is
464
443
  * already playing, this will override the last
465
444
  * move/navigation.
466
- * @param blockLocation
467
- * @param speed
468
445
  * @throws This function can throw errors.
469
446
  */
470
447
  moveToBlock(blockLocation: minecraftserver.Vector3, speed?: number): void;
@@ -473,8 +450,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
473
450
  * Orders the simulated player to move to the given location in
474
451
  * a straight line. If a move or navigation is already playing,
475
452
  * this will override the last move/navigation.
476
- * @param location
477
- * @param speed
478
453
  * @throws This function can throw errors.
479
454
  */
480
455
  moveToLocation(location: minecraftserver.Vector3, speed?: number): void;
@@ -486,8 +461,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
486
461
  * that if the simulated player gets stuck, that simulated
487
462
  * player will stop. The player must be touching the ground in
488
463
  * order to start navigation.
489
- * @param blockLocation
490
- * @param speed
491
464
  * @throws This function can throw errors.
492
465
  */
493
466
  navigateToBlock(blockLocation: minecraftserver.Vector3, speed?: number): minecraftserver.NavigationResult;
@@ -496,8 +469,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
496
469
  * Will use navigation to follow the selected entity to within
497
470
  * a one block radius. If a move or navigation is already
498
471
  * playing, this will override the last move/navigation.
499
- * @param entity
500
- * @param speed
501
472
  * @throws This function can throw errors.
502
473
  */
503
474
  navigateToEntity(entity: minecraftserver.Entity, speed?: number): minecraftserver.NavigationResult;
@@ -509,8 +480,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
509
480
  * the simulated player gets stuck, that simulated player will
510
481
  * stop. The player must be touching the ground in order to
511
482
  * start navigation.
512
- * @param location
513
- * @param speed
514
483
  * @throws This function can throw errors.
515
484
  */
516
485
  navigateToLocation(location: minecraftserver.Vector3, speed?: number): minecraftserver.NavigationResult;
@@ -536,7 +505,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
536
505
  * @remarks
537
506
  * Causes the simulated player to turn by the provided angle,
538
507
  * relative to the player's current rotation.
539
- * @param angleInDegrees
540
508
  * @throws This function can throw errors.
541
509
  */
542
510
  rotateBody(angleInDegrees: number): void;
@@ -544,7 +512,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
544
512
  * @remarks
545
513
  * Causes the simulated player to turn to face the provided
546
514
  * angle, relative to the GameTest.
547
- * @param angleInDegrees
548
515
  * @throws This function can throw errors.
549
516
  */
550
517
  setBodyRotation(angleInDegrees: number): void;
@@ -665,7 +632,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
665
632
  * These well-known tags can be used to classify different
666
633
  * tests into suites to run.
667
634
  */
668
- // tslint:disable-next-line:no-unnecessary-class
669
635
  export class Tags {
670
636
  protected constructor();
671
637
  /**
@@ -1272,7 +1238,6 @@ export class Test {
1272
1238
  */
1273
1239
  rotateDirection(direction: minecraftserver.Direction): minecraftserver.Direction;
1274
1240
  /**
1275
- * @param vector
1276
1241
  * @throws This function can throw errors.
1277
1242
  */
1278
1243
  rotateVector(vector: minecraftserver.Vector): minecraftserver.Vector;
@@ -1352,7 +1317,6 @@ export class Test {
1352
1317
  * 'minecraft:' is assumed. Note that an optional initial spawn
1353
1318
  * event can be specified between less than/greater than signs
1354
1319
  * (e.g., namespace:entityType<spawnEvent>).
1355
- * @param blockLocation
1356
1320
  * @returns
1357
1321
  * The spawned entity. If the entity cannot be spawned, returns
1358
1322
  * undefined.
@@ -1392,7 +1356,6 @@ export class Test {
1392
1356
  * 'minecraft:' is assumed. Note that an optional initial spawn
1393
1357
  * event can be specified between less than/greater than signs
1394
1358
  * (e.g., namespace:entityType<spawnEvent>).
1395
- * @param location
1396
1359
  * @returns
1397
1360
  * The spawned entity. If the entity cannot be spawned, returns
1398
1361
  * undefined.
@@ -1431,7 +1394,6 @@ export class Test {
1431
1394
  * Location where to spawn the simulated player.
1432
1395
  * @param name
1433
1396
  * Name to give the new simulated player.
1434
- * @param gameMode
1435
1397
  * @throws This function can throw errors.
1436
1398
  */
1437
1399
  spawnSimulatedPlayer(
@@ -1444,7 +1406,6 @@ export class Test {
1444
1406
  * Spawns an entity at a location without any AI behaviors.
1445
1407
  * This method is frequently used in conjunction with methods
1446
1408
  * like .walkTo to create predictable mob actions.
1447
- * @param entityTypeIdentifier
1448
1409
  * @param blockLocation
1449
1410
  * Location where the entity should be spawned.
1450
1411
  * @throws This function can throw errors.
@@ -1455,7 +1416,6 @@ export class Test {
1455
1416
  * Spawns an entity at a location without any AI behaviors.
1456
1417
  * This method is frequently used in conjunction with methods
1457
1418
  * like .walkTo to create predictable mob actions.
1458
- * @param entityTypeIdentifier
1459
1419
  * @param location
1460
1420
  * Location where the entity should be spawned.
1461
1421
  * @throws This function can throw errors.
@@ -1641,13 +1601,11 @@ export class Test {
1641
1601
  * @remarks
1642
1602
  * Triggers a block event from a fixed list of available block
1643
1603
  * events.
1644
- * @param blockLocation
1645
1604
  * @param event
1646
1605
  * Event to trigger. Valid values include minecraft:drip,
1647
1606
  * minecraft:grow_stalagtite, minecraft:grow_stalagmite,
1648
1607
  * minecraft:grow_up, minecraft:grow_down and
1649
1608
  * minecraft:grow_sideways.
1650
- * @param eventParameters
1651
1609
  * @throws This function can throw errors.
1652
1610
  */
1653
1611
  triggerInternalBlockEvent(blockLocation: minecraftserver.Vector3, event: string, eventParameters?: number[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-gametest",
3
- "version": "1.0.0-beta.1.19.80-preview.21",
3
+ "version": "1.0.0-beta.1.19.80-preview.23",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "dependencies": {
16
- "@minecraft/server": "1.2.0-beta.1.19.80-preview.21"
16
+ "@minecraft/server": "1.2.0-beta.1.19.80-preview.23"
17
17
  },
18
18
  "license": "MIT"
19
19
  }