@minecraft/server-gametest 1.0.0-beta.1.20.40-preview.23 → 1.0.0-beta.1.20.40-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 +26 -1
- package/package.json +3 -3
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.40-
|
|
20
|
+
* "version": "1.0.0-internal.1.20.40-stable"
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
@@ -404,6 +404,8 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
404
404
|
readonly headRotation: minecraftserver.Vector2;
|
|
405
405
|
/**
|
|
406
406
|
* @remarks
|
|
407
|
+
* Returns whether the simulated player is sprinting.
|
|
408
|
+
*
|
|
407
409
|
* This property can't be edited in read-only mode.
|
|
408
410
|
*
|
|
409
411
|
*/
|
|
@@ -477,6 +479,10 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
477
479
|
dropSelectedItem(): boolean;
|
|
478
480
|
/**
|
|
479
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
|
+
*
|
|
480
486
|
* This function can't be called in read-only mode.
|
|
481
487
|
*
|
|
482
488
|
* @throws This function can throw errors.
|
|
@@ -497,8 +503,16 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
497
503
|
giveItem(itemStack: minecraftserver.ItemStack, selectSlot?: boolean): boolean;
|
|
498
504
|
/**
|
|
499
505
|
* @remarks
|
|
506
|
+
* Causes the simulated player to start gliding. Elytra must be
|
|
507
|
+
* equipped and the player must be in the air.
|
|
508
|
+
*
|
|
500
509
|
* This function can't be called in read-only mode.
|
|
501
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.
|
|
502
516
|
* @throws This function can throw errors.
|
|
503
517
|
*/
|
|
504
518
|
glide(): boolean;
|
|
@@ -745,6 +759,8 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
745
759
|
stopBreakingBlock(): void;
|
|
746
760
|
/**
|
|
747
761
|
* @remarks
|
|
762
|
+
* Causes the simulated player to stop flying.
|
|
763
|
+
*
|
|
748
764
|
* This function can't be called in read-only mode.
|
|
749
765
|
*
|
|
750
766
|
* @throws This function can throw errors.
|
|
@@ -752,6 +768,8 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
752
768
|
stopFlying(): void;
|
|
753
769
|
/**
|
|
754
770
|
* @remarks
|
|
771
|
+
* Causes the simulated player to stop gliding.
|
|
772
|
+
*
|
|
755
773
|
* This function can't be called in read-only mode.
|
|
756
774
|
*
|
|
757
775
|
* @throws This function can throw errors.
|
|
@@ -778,6 +796,8 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
778
796
|
stopMoving(): void;
|
|
779
797
|
/**
|
|
780
798
|
* @remarks
|
|
799
|
+
* Causes the simulated player to stop swimming.
|
|
800
|
+
*
|
|
781
801
|
* This function can't be called in read-only mode.
|
|
782
802
|
*
|
|
783
803
|
* @throws This function can throw errors.
|
|
@@ -789,11 +809,16 @@ export class SimulatedPlayer extends minecraftserver.Player {
|
|
|
789
809
|
*
|
|
790
810
|
* This function can't be called in read-only mode.
|
|
791
811
|
*
|
|
812
|
+
* @returns
|
|
813
|
+
* Returns the item that was in use. Undefined if no item was
|
|
814
|
+
* in use.
|
|
792
815
|
* @throws This function can throw errors.
|
|
793
816
|
*/
|
|
794
817
|
stopUsingItem(): void;
|
|
795
818
|
/**
|
|
796
819
|
* @remarks
|
|
820
|
+
* Causes the simulated player to start swimming.
|
|
821
|
+
*
|
|
797
822
|
* This function can't be called in read-only mode.
|
|
798
823
|
*
|
|
799
824
|
* @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-
|
|
3
|
+
"version": "1.0.0-beta.1.20.40-stable",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/common": "^1.0.0
|
|
17
|
-
"@minecraft/server": "^1.7.0-beta.1.20.40-
|
|
16
|
+
"@minecraft/common": "^1.0.0",
|
|
17
|
+
"@minecraft/server": "^1.7.0-beta.1.20.40-stable"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|