@minecraft/server 2.0.0-beta.1.21.70-preview.22 → 2.0.0-beta.1.21.70-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.
- package/index.d.ts +0 -60
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1677,7 +1677,6 @@ export enum InputButton {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
|
|
1679
1679
|
/**
|
|
1680
|
-
* @rc
|
|
1681
1680
|
* Describes the type of input of a device.
|
|
1682
1681
|
*/
|
|
1683
1682
|
export enum InputMode {
|
|
@@ -1729,7 +1728,6 @@ export enum InputPermissionCategory {
|
|
|
1729
1728
|
*/
|
|
1730
1729
|
Movement = 2,
|
|
1731
1730
|
/**
|
|
1732
|
-
* @rc
|
|
1733
1731
|
* @remarks
|
|
1734
1732
|
* Player input for moving laterally in the world. This would
|
|
1735
1733
|
* be WASD on a keyboard or the movement joystick on gamepad or
|
|
@@ -1738,7 +1736,6 @@ export enum InputPermissionCategory {
|
|
|
1738
1736
|
*/
|
|
1739
1737
|
LateralMovement = 4,
|
|
1740
1738
|
/**
|
|
1741
|
-
* @rc
|
|
1742
1739
|
* @remarks
|
|
1743
1740
|
* Player input relating to sneak. This also affects flying
|
|
1744
1741
|
* down.
|
|
@@ -1746,7 +1743,6 @@ export enum InputPermissionCategory {
|
|
|
1746
1743
|
*/
|
|
1747
1744
|
Sneak = 5,
|
|
1748
1745
|
/**
|
|
1749
|
-
* @rc
|
|
1750
1746
|
* @remarks
|
|
1751
1747
|
* Player input relating to jumping. This also affects flying
|
|
1752
1748
|
* up.
|
|
@@ -1754,14 +1750,12 @@ export enum InputPermissionCategory {
|
|
|
1754
1750
|
*/
|
|
1755
1751
|
Jump = 6,
|
|
1756
1752
|
/**
|
|
1757
|
-
* @rc
|
|
1758
1753
|
* @remarks
|
|
1759
1754
|
* Player input relating to mounting vehicles.
|
|
1760
1755
|
*
|
|
1761
1756
|
*/
|
|
1762
1757
|
Mount = 7,
|
|
1763
1758
|
/**
|
|
1764
|
-
* @rc
|
|
1765
1759
|
* @remarks
|
|
1766
1760
|
* Player input relating to dismounting. When disabled, the
|
|
1767
1761
|
* player can still dismount vehicles by other means, for
|
|
@@ -1771,28 +1765,24 @@ export enum InputPermissionCategory {
|
|
|
1771
1765
|
*/
|
|
1772
1766
|
Dismount = 8,
|
|
1773
1767
|
/**
|
|
1774
|
-
* @rc
|
|
1775
1768
|
* @remarks
|
|
1776
1769
|
* Player input relating to moving the player forward.
|
|
1777
1770
|
*
|
|
1778
1771
|
*/
|
|
1779
1772
|
MoveForward = 9,
|
|
1780
1773
|
/**
|
|
1781
|
-
* @rc
|
|
1782
1774
|
* @remarks
|
|
1783
1775
|
* Player input relating to moving the player backward.
|
|
1784
1776
|
*
|
|
1785
1777
|
*/
|
|
1786
1778
|
MoveBackward = 10,
|
|
1787
1779
|
/**
|
|
1788
|
-
* @rc
|
|
1789
1780
|
* @remarks
|
|
1790
1781
|
* Player input relating to moving the player left.
|
|
1791
1782
|
*
|
|
1792
1783
|
*/
|
|
1793
1784
|
MoveLeft = 11,
|
|
1794
1785
|
/**
|
|
1795
|
-
* @rc
|
|
1796
1786
|
* @remarks
|
|
1797
1787
|
* Player input relating to moving the player right.
|
|
1798
1788
|
*
|
|
@@ -1805,9 +1795,6 @@ export enum InputPermissionCategory {
|
|
|
1805
1795
|
* function ItemStack.getComponent.
|
|
1806
1796
|
*/
|
|
1807
1797
|
export enum ItemComponentTypes {
|
|
1808
|
-
/**
|
|
1809
|
-
* @rc
|
|
1810
|
-
*/
|
|
1811
1798
|
Compostable = 'minecraft:compostable',
|
|
1812
1799
|
/**
|
|
1813
1800
|
* @remarks
|
|
@@ -2639,10 +2626,6 @@ export type ItemComponentTypeMap = {
|
|
|
2639
2626
|
* @beta
|
|
2640
2627
|
* Handle to an aim-assist category that exists in the
|
|
2641
2628
|
* world.aimAssist registry.
|
|
2642
|
-
*
|
|
2643
|
-
* Required Experiments:
|
|
2644
|
-
* - Camera Aim Assist
|
|
2645
|
-
*
|
|
2646
2629
|
*/
|
|
2647
2630
|
export class AimAssistCategory {
|
|
2648
2631
|
private constructor();
|
|
@@ -2702,10 +2685,6 @@ export class AimAssistCategory {
|
|
|
2702
2685
|
* @beta
|
|
2703
2686
|
* Settings used with AimAssistRegistry.addCategory for
|
|
2704
2687
|
* creation of the AimAssistCategory.
|
|
2705
|
-
*
|
|
2706
|
-
* Required Experiments:
|
|
2707
|
-
* - Camera Aim Assist
|
|
2708
|
-
*
|
|
2709
2688
|
*/
|
|
2710
2689
|
export class AimAssistCategorySettings {
|
|
2711
2690
|
/**
|
|
@@ -2786,10 +2765,6 @@ export class AimAssistCategorySettings {
|
|
|
2786
2765
|
* @beta
|
|
2787
2766
|
* Handle to an aim-assist preset that exists in the
|
|
2788
2767
|
* world.aimAssist registry.
|
|
2789
|
-
*
|
|
2790
|
-
* Required Experiments:
|
|
2791
|
-
* - Camera Aim Assist
|
|
2792
|
-
*
|
|
2793
2768
|
*/
|
|
2794
2769
|
export class AimAssistPreset {
|
|
2795
2770
|
private constructor();
|
|
@@ -2859,10 +2834,6 @@ export class AimAssistPreset {
|
|
|
2859
2834
|
* @beta
|
|
2860
2835
|
* Settings used with AimAssistRegistry.addPreset for creation
|
|
2861
2836
|
* of the AimAssistPreset.
|
|
2862
|
-
*
|
|
2863
|
-
* Required Experiments:
|
|
2864
|
-
* - Camera Aim Assist
|
|
2865
|
-
*
|
|
2866
2837
|
*/
|
|
2867
2838
|
export class AimAssistPresetSettings {
|
|
2868
2839
|
/**
|
|
@@ -2961,10 +2932,6 @@ export class AimAssistPresetSettings {
|
|
|
2961
2932
|
* @beta
|
|
2962
2933
|
* A container for APIs related to the world's aim-assist
|
|
2963
2934
|
* settings.
|
|
2964
|
-
*
|
|
2965
|
-
* Required Experiments:
|
|
2966
|
-
* - Camera Aim Assist
|
|
2967
|
-
*
|
|
2968
2935
|
*/
|
|
2969
2936
|
export class AimAssistRegistry {
|
|
2970
2937
|
private constructor();
|
|
@@ -3163,7 +3130,6 @@ export class Block {
|
|
|
3163
3130
|
*/
|
|
3164
3131
|
readonly isValid: boolean;
|
|
3165
3132
|
/**
|
|
3166
|
-
* @rc
|
|
3167
3133
|
* @remarks
|
|
3168
3134
|
* Returns or sets whether this block has water on it.
|
|
3169
3135
|
*
|
|
@@ -3598,7 +3564,6 @@ export class Block {
|
|
|
3598
3564
|
*/
|
|
3599
3565
|
setType(blockType: BlockType | string): void;
|
|
3600
3566
|
/**
|
|
3601
|
-
* @rc
|
|
3602
3567
|
* @remarks
|
|
3603
3568
|
* Sets whether this block has a water logged state - for
|
|
3604
3569
|
* example, whether stairs are submerged within water.
|
|
@@ -11553,7 +11518,6 @@ export class GameRules {
|
|
|
11553
11518
|
}
|
|
11554
11519
|
|
|
11555
11520
|
/**
|
|
11556
|
-
* @rc
|
|
11557
11521
|
* Contains the input information for a client instance.
|
|
11558
11522
|
*/
|
|
11559
11523
|
export class InputInfo {
|
|
@@ -11888,7 +11852,6 @@ export class ItemComponentUseOnEvent extends ItemUseOnEvent {
|
|
|
11888
11852
|
}
|
|
11889
11853
|
|
|
11890
11854
|
/**
|
|
11891
|
-
* @rc
|
|
11892
11855
|
* When present, the item can be composted in the composter
|
|
11893
11856
|
* block if the composting chance is in the range [1 - 100].
|
|
11894
11857
|
*/
|
|
@@ -13793,7 +13756,6 @@ export class Player extends Entity {
|
|
|
13793
13756
|
*/
|
|
13794
13757
|
readonly graphicsMode: GraphicsMode;
|
|
13795
13758
|
/**
|
|
13796
|
-
* @rc
|
|
13797
13759
|
* @remarks
|
|
13798
13760
|
* Contains the player's input information.
|
|
13799
13761
|
*
|
|
@@ -13927,10 +13889,6 @@ export class Player extends Entity {
|
|
|
13927
13889
|
* @remarks
|
|
13928
13890
|
* The player's aim-assist settings.
|
|
13929
13891
|
*
|
|
13930
|
-
*
|
|
13931
|
-
* Required Experiments:
|
|
13932
|
-
* - Camera Aim Assist
|
|
13933
|
-
*
|
|
13934
13892
|
*/
|
|
13935
13893
|
getAimAssist(): PlayerAimAssist;
|
|
13936
13894
|
/**
|
|
@@ -14264,10 +14222,6 @@ export class Player extends Entity {
|
|
|
14264
14222
|
/**
|
|
14265
14223
|
* @beta
|
|
14266
14224
|
* A container for APIs related to player aim-assist.
|
|
14267
|
-
*
|
|
14268
|
-
* Required Experiments:
|
|
14269
|
-
* - Camera Aim Assist
|
|
14270
|
-
*
|
|
14271
14225
|
*/
|
|
14272
14226
|
export class PlayerAimAssist {
|
|
14273
14227
|
private constructor();
|
|
@@ -14738,7 +14692,6 @@ export class PlayerGameModeChangeBeforeEventSignal {
|
|
|
14738
14692
|
}
|
|
14739
14693
|
|
|
14740
14694
|
/**
|
|
14741
|
-
* @rc
|
|
14742
14695
|
* Event data for when a player input mode changes.
|
|
14743
14696
|
*/
|
|
14744
14697
|
export class PlayerInputModeChangeAfterEvent {
|
|
@@ -14764,7 +14717,6 @@ export class PlayerInputModeChangeAfterEvent {
|
|
|
14764
14717
|
}
|
|
14765
14718
|
|
|
14766
14719
|
/**
|
|
14767
|
-
* @rc
|
|
14768
14720
|
* Manages callbacks that are connected to player input mode.
|
|
14769
14721
|
*/
|
|
14770
14722
|
export class PlayerInputModeChangeAfterEventSignal {
|
|
@@ -14859,7 +14811,6 @@ export class PlayerInputPermissionCategoryChangeAfterEventSignal {
|
|
|
14859
14811
|
export class PlayerInputPermissions {
|
|
14860
14812
|
private constructor();
|
|
14861
14813
|
/**
|
|
14862
|
-
* @rc
|
|
14863
14814
|
* @remarks
|
|
14864
14815
|
* Returns true if an input permission is enabled.
|
|
14865
14816
|
*
|
|
@@ -14871,7 +14822,6 @@ export class PlayerInputPermissions {
|
|
|
14871
14822
|
*/
|
|
14872
14823
|
isPermissionCategoryEnabled(permissionCategory: InputPermissionCategory): boolean;
|
|
14873
14824
|
/**
|
|
14874
|
-
* @rc
|
|
14875
14825
|
* @remarks
|
|
14876
14826
|
* Enable or disable an input permission. When enabled the
|
|
14877
14827
|
* input will work, when disabled will not work.
|
|
@@ -17749,10 +17699,6 @@ export class World {
|
|
|
17749
17699
|
* The aim-assist presets and categories that can be used in
|
|
17750
17700
|
* the world.
|
|
17751
17701
|
*
|
|
17752
|
-
*
|
|
17753
|
-
* Required Experiments:
|
|
17754
|
-
* - Camera Aim Assist
|
|
17755
|
-
*
|
|
17756
17702
|
*/
|
|
17757
17703
|
getAimAssist(): AimAssistRegistry;
|
|
17758
17704
|
/**
|
|
@@ -18364,7 +18310,6 @@ export class WorldAfterEvents {
|
|
|
18364
18310
|
readonly playerEmote: PlayerEmoteAfterEventSignal;
|
|
18365
18311
|
readonly playerGameModeChange: PlayerGameModeChangeAfterEventSignal;
|
|
18366
18312
|
/**
|
|
18367
|
-
* @rc
|
|
18368
18313
|
* @remarks
|
|
18369
18314
|
* This event fires when a player's {@link InputMode} changes.
|
|
18370
18315
|
*
|
|
@@ -20061,10 +20006,6 @@ export interface PlayAnimationOptions {
|
|
|
20061
20006
|
/**
|
|
20062
20007
|
* @beta
|
|
20063
20008
|
* Settings relating to a player's aim-assist targeting.
|
|
20064
|
-
*
|
|
20065
|
-
* Required Experiments:
|
|
20066
|
-
* - Camera Aim Assist
|
|
20067
|
-
*
|
|
20068
20009
|
*/
|
|
20069
20010
|
export interface PlayerAimAssistSettings {
|
|
20070
20011
|
/**
|
|
@@ -20773,7 +20714,6 @@ export class InvalidContainerSlotError extends Error {
|
|
|
20773
20714
|
}
|
|
20774
20715
|
|
|
20775
20716
|
/**
|
|
20776
|
-
* @rc
|
|
20777
20717
|
* The error called when an entity is invalid. This can occur
|
|
20778
20718
|
* when accessing components on a removed entity.
|
|
20779
20719
|
*/
|