@minecraft/server-gametest 1.0.0-beta.1.20.40-preview.22 → 1.0.0-beta.1.20.40-preview.24
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 +24 -1
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -17,11 +17,12 @@
|
|
|
17
17
|
* ```json
|
|
18
18
|
* {
|
|
19
19
|
* "module_name": "@minecraft/server-gametest",
|
|
20
|
-
* "version": "1.0.0-internal.1.20.40-preview.
|
|
20
|
+
* "version": "1.0.0-internal.1.20.40-preview.24"
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
|
+
import * as minecraftcommon from '@minecraft/common';
|
|
25
26
|
import * as minecraftserver from '@minecraft/server';
|
|
26
27
|
export enum GameTestErrorType {
|
|
27
28
|
Assert = 'Assert',
|
|
@@ -403,6 +404,8 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
403
404
|
readonly headRotation: minecraftserver.Vector2;
|
|
404
405
|
/**
|
|
405
406
|
* @remarks
|
|
407
|
+
* Returns whether the simulated player is sprinting.
|
|
408
|
+
*
|
|
406
409
|
* This property can't be edited in read-only mode.
|
|
407
410
|
*
|
|
408
411
|
*/
|
|
@@ -476,6 +479,10 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
476
479
|
dropSelectedItem(): boolean;
|
|
477
480
|
/**
|
|
478
481
|
* @remarks
|
|
482
|
+
* Causes the simulated player to start flying as though they
|
|
483
|
+
* were flying in creative mode. For flying with Elytra, see
|
|
484
|
+
* function glide.
|
|
485
|
+
*
|
|
479
486
|
* This function can't be called in read-only mode.
|
|
480
487
|
*
|
|
481
488
|
* @throws This function can throw errors.
|
|
@@ -496,8 +503,16 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
496
503
|
giveItem(itemStack: minecraftserver.ItemStack, selectSlot?: boolean): boolean;
|
|
497
504
|
/**
|
|
498
505
|
* @remarks
|
|
506
|
+
* Causes the simulated player to start gliding. Elytra must be
|
|
507
|
+
* equipped and the player must be in the air.
|
|
508
|
+
*
|
|
499
509
|
* This function can't be called in read-only mode.
|
|
500
510
|
*
|
|
511
|
+
* @returns
|
|
512
|
+
* Returns true if the simulated player begins to glide.
|
|
513
|
+
* Returns false if the player is already gliding, or the
|
|
514
|
+
* player does not have Elytra equipped, is in water or is on
|
|
515
|
+
* the ground.
|
|
501
516
|
* @throws This function can throw errors.
|
|
502
517
|
*/
|
|
503
518
|
glide(): boolean;
|
|
@@ -744,6 +759,8 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
744
759
|
stopBreakingBlock(): void;
|
|
745
760
|
/**
|
|
746
761
|
* @remarks
|
|
762
|
+
* Causes the simulated player to stop flying.
|
|
763
|
+
*
|
|
747
764
|
* This function can't be called in read-only mode.
|
|
748
765
|
*
|
|
749
766
|
* @throws This function can throw errors.
|
|
@@ -751,6 +768,8 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
751
768
|
stopFlying(): void;
|
|
752
769
|
/**
|
|
753
770
|
* @remarks
|
|
771
|
+
* Causes the simulated player to stop gliding.
|
|
772
|
+
*
|
|
754
773
|
* This function can't be called in read-only mode.
|
|
755
774
|
*
|
|
756
775
|
* @throws This function can throw errors.
|
|
@@ -777,6 +796,8 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
777
796
|
stopMoving(): void;
|
|
778
797
|
/**
|
|
779
798
|
* @remarks
|
|
799
|
+
* Causes the simulated player to stop swimming.
|
|
800
|
+
*
|
|
780
801
|
* This function can't be called in read-only mode.
|
|
781
802
|
*
|
|
782
803
|
* @throws This function can throw errors.
|
|
@@ -793,6 +814,8 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
793
814
|
stopUsingItem(): void;
|
|
794
815
|
/**
|
|
795
816
|
* @remarks
|
|
817
|
+
* Causes the simulated player to start swimming.
|
|
818
|
+
*
|
|
796
819
|
* This function can't be called in read-only mode.
|
|
797
820
|
*
|
|
798
821
|
* @throws This function can throw errors.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-gametest",
|
|
3
|
-
"version": "1.0.0-beta.1.20.40-preview.
|
|
3
|
+
"version": "1.0.0-beta.1.20.40-preview.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/
|
|
16
|
+
"@minecraft/common": "^1.0.0-rc.1.20.40-preview.24",
|
|
17
|
+
"@minecraft/server": "^1.7.0-beta.1.20.40-preview.24"
|
|
17
18
|
},
|
|
18
19
|
"license": "MIT"
|
|
19
20
|
}
|