@minecraft/server-gametest 1.0.0-beta.preview.1.19.60.22 → 1.0.0-beta.release.1.19.50

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 +25 -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.60.22"
19
+ * "version": "1.0.0-internal.release.1.19.50"
20
20
  * }
21
21
  * ```
22
22
  *
@@ -334,7 +334,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
334
334
  * True if the player is currently using a sneaking movement.
335
335
  */
336
336
  isSneaking: boolean;
337
- isSprinting: boolean;
338
337
  /**
339
338
  * Current location of the player.
340
339
  * @throws This property can throw when used.
@@ -385,7 +384,11 @@ export class SimulatedPlayer extends minecraftserver.Player {
385
384
  * @throws This property can throw when used.
386
385
  */
387
386
  readonly velocity: minecraftserver.Vector;
388
- readonly viewDirection: minecraftserver.Vector3;
387
+ /**
388
+ * Vector of the current view of the player.
389
+ * @throws This property can throw when used.
390
+ */
391
+ readonly viewVector: minecraftserver.Vector;
389
392
  /**
390
393
  * @remarks
391
394
  * Adds an effect, like poison, to the entity.
@@ -446,8 +449,15 @@ export class SimulatedPlayer extends minecraftserver.Player {
446
449
  * @throws This function can throw errors.
447
450
  */
448
451
  breakBlock(blockLocation: minecraftserver.BlockLocation, direction?: minecraftserver.Direction): boolean;
449
- disconnect(): void;
450
- getBlockFromViewDirection(options?: minecraftserver.BlockRaycastOptions): minecraftserver.Block;
452
+ /**
453
+ * @remarks
454
+ * Gets the first block that intersects with the vector of the
455
+ * view of this entity.
456
+ * @param options
457
+ * Additional options for processing this raycast query.
458
+ * @throws This function can throw errors.
459
+ */
460
+ getBlockFromViewVector(options?: minecraftserver.BlockRaycastOptions): minecraftserver.Block;
451
461
  /**
452
462
  * @remarks
453
463
  * Gets a component (that represents additional capabilities)
@@ -486,7 +496,15 @@ export class SimulatedPlayer extends minecraftserver.Player {
486
496
  * @throws This function can throw errors.
487
497
  */
488
498
  getEffect(effectType: minecraftserver.EffectType): minecraftserver.Effect;
489
- getEntitiesFromViewDirection(options?: minecraftserver.EntityRaycastOptions): minecraftserver.Entity[];
499
+ /**
500
+ * @remarks
501
+ * Gets the first entity that intersects with the vector of the
502
+ * view of this entity.
503
+ * @param options
504
+ * Additional options for processing this raycast query.
505
+ * @throws This function can throw errors.
506
+ */
507
+ getEntitiesFromViewVector(options?: minecraftserver.EntityRaycastOptions): minecraftserver.Entity[];
490
508
  /**
491
509
  * @remarks
492
510
  * Gets the current item cooldown time for a particular
@@ -715,7 +733,6 @@ export class SimulatedPlayer extends minecraftserver.Player {
715
733
  * @throws This function can throw errors.
716
734
  */
717
735
  removeTag(tag: string): boolean;
718
- respawn(): boolean;
719
736
  /**
720
737
  * @remarks
721
738
  * Causes the simulated player to turn by the provided angle,
@@ -878,7 +895,7 @@ export class SimulatedPlayer extends minecraftserver.Player {
878
895
  * @param message
879
896
  * @throws This function can throw errors.
880
897
  */
881
- tell(message: minecraftserver.RawMessage | string): void;
898
+ tell(message: minecraftserver.IRawMessage | string): void;
882
899
  /**
883
900
  * @remarks
884
901
  * Triggers an entity type event. For every entity, a number of
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.60.22",
3
+ "version": "1.0.0-beta.release.1.19.50",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "dependencies": {
16
- "@minecraft/server": "1.1.0-beta.preview.1.19.60.22"
16
+ "@minecraft/server": "1.1.0-beta.release.1.19.50"
17
17
  },
18
18
  "license": "MIT"
19
19
  }