@minecraft/server-editor 0.1.0-beta.1.21.80-preview.26 → 0.1.0-beta.1.21.80-preview.28
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 +161 -120
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1126,6 +1126,7 @@ export enum ThemeSettingsColorKey {
|
|
|
1126
1126
|
DropDown3 = 'DropDown3',
|
|
1127
1127
|
ElementBorder = 'ElementBorder',
|
|
1128
1128
|
Error = 'Error',
|
|
1129
|
+
FocusErrorOutline = 'FocusErrorOutline',
|
|
1129
1130
|
FocusOutline = 'FocusOutline',
|
|
1130
1131
|
HeaderBackground = 'HeaderBackground',
|
|
1131
1132
|
HotbarOutline = 'HotbarOutline',
|
|
@@ -1628,8 +1629,6 @@ export class BlockUtilities {
|
|
|
1628
1629
|
* This function can't be called in read-only mode.
|
|
1629
1630
|
*
|
|
1630
1631
|
* @throws This function can throw errors.
|
|
1631
|
-
*
|
|
1632
|
-
* {@link Error}
|
|
1633
1632
|
*/
|
|
1634
1633
|
getContiguousSelection(properties?: ContiguousSelectionProperties): minecraftserver.CompoundBlockVolume;
|
|
1635
1634
|
/**
|
|
@@ -1655,8 +1654,6 @@ export class BlockUtilities {
|
|
|
1655
1654
|
* This function can't be called in read-only mode.
|
|
1656
1655
|
*
|
|
1657
1656
|
* @throws This function can throw errors.
|
|
1658
|
-
*
|
|
1659
|
-
* {@link Error}
|
|
1660
1657
|
*/
|
|
1661
1658
|
getFacePreviewSelection(properties?: QuickExtrudeProperties): minecraftserver.ListBlockVolume;
|
|
1662
1659
|
/**
|
|
@@ -1691,8 +1688,6 @@ export class BlockUtilities {
|
|
|
1691
1688
|
* This function can't be called in read-only mode.
|
|
1692
1689
|
*
|
|
1693
1690
|
* @throws This function can throw errors.
|
|
1694
|
-
*
|
|
1695
|
-
* {@link Error}
|
|
1696
1691
|
*/
|
|
1697
1692
|
trimVolumeToFitContents(
|
|
1698
1693
|
volume: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
|
|
@@ -1737,8 +1732,6 @@ export class BrushShapeManager {
|
|
|
1737
1732
|
* This function can't be called in read-only mode.
|
|
1738
1733
|
*
|
|
1739
1734
|
* @throws This function can throw errors.
|
|
1740
|
-
*
|
|
1741
|
-
* {@link Error}
|
|
1742
1735
|
*/
|
|
1743
1736
|
beginPainting(onComplete: (arg0: PaintCompletionState) => void): void;
|
|
1744
1737
|
/**
|
|
@@ -1752,8 +1745,6 @@ export class BrushShapeManager {
|
|
|
1752
1745
|
* This function can't be called in read-only mode.
|
|
1753
1746
|
*
|
|
1754
1747
|
* @throws This function can throw errors.
|
|
1755
|
-
*
|
|
1756
|
-
* {@link Error}
|
|
1757
1748
|
*/
|
|
1758
1749
|
endPainting(cancelled: boolean): void;
|
|
1759
1750
|
/**
|
|
@@ -1767,8 +1758,6 @@ export class BrushShapeManager {
|
|
|
1767
1758
|
* This function can't be called in read-only mode.
|
|
1768
1759
|
*
|
|
1769
1760
|
* @throws This function can throw errors.
|
|
1770
|
-
*
|
|
1771
|
-
* {@link Error}
|
|
1772
1761
|
*/
|
|
1773
1762
|
setBrushMask(mask: BlockMaskList): void;
|
|
1774
1763
|
/**
|
|
@@ -1812,8 +1801,6 @@ export class BrushShapeManager {
|
|
|
1812
1801
|
* This function can't be called in read-only mode.
|
|
1813
1802
|
*
|
|
1814
1803
|
* @throws This function can throw errors.
|
|
1815
|
-
*
|
|
1816
|
-
* {@link Error}
|
|
1817
1804
|
*/
|
|
1818
1805
|
singlePaint(onComplete: (arg0: PaintCompletionState) => void): void;
|
|
1819
1806
|
/**
|
|
@@ -1879,8 +1866,6 @@ export class ClipboardItem {
|
|
|
1879
1866
|
* This function can't be called in read-only mode.
|
|
1880
1867
|
*
|
|
1881
1868
|
* @throws This function can throw errors.
|
|
1882
|
-
*
|
|
1883
|
-
* {@link Error}
|
|
1884
1869
|
*/
|
|
1885
1870
|
getPredictedWriteVolume(
|
|
1886
1871
|
location: minecraftserver.Vector3,
|
|
@@ -1922,8 +1907,6 @@ export class ClipboardItem {
|
|
|
1922
1907
|
* @returns
|
|
1923
1908
|
* Success or Failure
|
|
1924
1909
|
* @throws This function can throw errors.
|
|
1925
|
-
*
|
|
1926
|
-
* {@link Error}
|
|
1927
1910
|
*/
|
|
1928
1911
|
writeToWorld(location: minecraftserver.Vector3, options?: ClipboardWriteOptions): boolean;
|
|
1929
1912
|
}
|
|
@@ -2113,8 +2096,6 @@ export class Cursor {
|
|
|
2113
2096
|
* This function can't be called in read-only mode.
|
|
2114
2097
|
*
|
|
2115
2098
|
* @throws This function can throw errors.
|
|
2116
|
-
*
|
|
2117
|
-
* {@link Error}
|
|
2118
2099
|
*/
|
|
2119
2100
|
getRay(): CursorRay;
|
|
2120
2101
|
/**
|
|
@@ -2336,8 +2317,6 @@ export class ExportManager {
|
|
|
2336
2317
|
* This function can't be called in read-only mode.
|
|
2337
2318
|
*
|
|
2338
2319
|
* @throws This function can throw errors.
|
|
2339
|
-
*
|
|
2340
|
-
* {@link Error}
|
|
2341
2320
|
*/
|
|
2342
2321
|
getGameVersion(): string;
|
|
2343
2322
|
}
|
|
@@ -2581,8 +2560,6 @@ export class IBlockPaletteItem {
|
|
|
2581
2560
|
* This function can't be called in read-only mode.
|
|
2582
2561
|
*
|
|
2583
2562
|
* @throws This function can throw errors.
|
|
2584
|
-
*
|
|
2585
|
-
* {@link Error}
|
|
2586
2563
|
*/
|
|
2587
2564
|
setBlock(block: minecraftserver.BlockPermutation | minecraftserver.BlockType | string): void;
|
|
2588
2565
|
}
|
|
@@ -2796,8 +2773,6 @@ export class ProbabilityBlockPaletteItem extends IBlockPaletteItem {
|
|
|
2796
2773
|
* This function can't be called in read-only mode.
|
|
2797
2774
|
*
|
|
2798
2775
|
* @throws This function can throw errors.
|
|
2799
|
-
*
|
|
2800
|
-
* {@link Error}
|
|
2801
2776
|
*/
|
|
2802
2777
|
addBlock(block: minecraftserver.BlockPermutation | minecraftserver.BlockType | string, weight: number): void;
|
|
2803
2778
|
getBlocks(): WeightedBlock[];
|
|
@@ -2806,10 +2781,6 @@ export class ProbabilityBlockPaletteItem extends IBlockPaletteItem {
|
|
|
2806
2781
|
* This function can't be called in read-only mode.
|
|
2807
2782
|
*
|
|
2808
2783
|
* @throws This function can throw errors.
|
|
2809
|
-
*
|
|
2810
|
-
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
2811
|
-
*
|
|
2812
|
-
* {@link Error}
|
|
2813
2784
|
*/
|
|
2814
2785
|
removeBlockAt(index: number): void;
|
|
2815
2786
|
}
|
|
@@ -2959,8 +2930,6 @@ export class SelectionContainerVolume extends SelectionContainerBase {
|
|
|
2959
2930
|
get(): RelativeVolumeListBlockVolume;
|
|
2960
2931
|
/**
|
|
2961
2932
|
* @throws This function can throw errors.
|
|
2962
|
-
*
|
|
2963
|
-
* {@link Error}
|
|
2964
2933
|
*/
|
|
2965
2934
|
getBoundingBox(): minecraftserver.BlockBoundingBox;
|
|
2966
2935
|
/**
|
|
@@ -3154,8 +3123,6 @@ export class ThemeSettings {
|
|
|
3154
3123
|
* This function can't be called in read-only mode.
|
|
3155
3124
|
*
|
|
3156
3125
|
* @throws This function can throw errors.
|
|
3157
|
-
*
|
|
3158
|
-
* {@link Error}
|
|
3159
3126
|
*/
|
|
3160
3127
|
addNewTheme(id: string, name?: string, sourceThemeId?: string): void;
|
|
3161
3128
|
canThemeBeModified(id: string): boolean;
|
|
@@ -3164,8 +3131,6 @@ export class ThemeSettings {
|
|
|
3164
3131
|
* This function can't be called in read-only mode.
|
|
3165
3132
|
*
|
|
3166
3133
|
* @throws This function can throw errors.
|
|
3167
|
-
*
|
|
3168
|
-
* {@link Error}
|
|
3169
3134
|
*/
|
|
3170
3135
|
deleteTheme(id: string): void;
|
|
3171
3136
|
getCurrentTheme(): string;
|
|
@@ -3173,8 +3138,6 @@ export class ThemeSettings {
|
|
|
3173
3138
|
getThemeIdList(): string[];
|
|
3174
3139
|
/**
|
|
3175
3140
|
* @throws This function can throw errors.
|
|
3176
|
-
*
|
|
3177
|
-
* {@link Error}
|
|
3178
3141
|
*/
|
|
3179
3142
|
getThemeName(id: string): string;
|
|
3180
3143
|
resolveColorKey(key: ThemeSettingsColorKey): minecraftserver.RGBA;
|
|
@@ -3183,8 +3146,6 @@ export class ThemeSettings {
|
|
|
3183
3146
|
* This function can't be called in read-only mode.
|
|
3184
3147
|
*
|
|
3185
3148
|
* @throws This function can throw errors.
|
|
3186
|
-
*
|
|
3187
|
-
* {@link Error}
|
|
3188
3149
|
*/
|
|
3189
3150
|
setCurrentTheme(id: string): void;
|
|
3190
3151
|
/**
|
|
@@ -3192,8 +3153,6 @@ export class ThemeSettings {
|
|
|
3192
3153
|
* This function can't be called in read-only mode.
|
|
3193
3154
|
*
|
|
3194
3155
|
* @throws This function can throw errors.
|
|
3195
|
-
*
|
|
3196
|
-
* {@link Error}
|
|
3197
3156
|
*/
|
|
3198
3157
|
setThemeName(id: string, name: string): void;
|
|
3199
3158
|
/**
|
|
@@ -3201,8 +3160,6 @@ export class ThemeSettings {
|
|
|
3201
3160
|
* This function can't be called in read-only mode.
|
|
3202
3161
|
*
|
|
3203
3162
|
* @throws This function can throw errors.
|
|
3204
|
-
*
|
|
3205
|
-
* {@link Error}
|
|
3206
3163
|
*/
|
|
3207
3164
|
updateThemeColor(id: string, key: ThemeSettingsColorKey, newColor: minecraftserver.RGBA): void;
|
|
3208
3165
|
}
|
|
@@ -3226,8 +3183,6 @@ export class TransactionManager {
|
|
|
3226
3183
|
* This function can't be called in read-only mode.
|
|
3227
3184
|
*
|
|
3228
3185
|
* @throws This function can throw errors.
|
|
3229
|
-
*
|
|
3230
|
-
* {@link Error}
|
|
3231
3186
|
*/
|
|
3232
3187
|
addEntityOperation(entity: minecraftserver.Entity, type: EntityOperationType): boolean;
|
|
3233
3188
|
/**
|
|
@@ -3551,10 +3506,6 @@ export class Widget {
|
|
|
3551
3506
|
* This function can't be called in read-only mode.
|
|
3552
3507
|
*
|
|
3553
3508
|
* @throws This function can throw errors.
|
|
3554
|
-
*
|
|
3555
|
-
* {@link Error}
|
|
3556
|
-
*
|
|
3557
|
-
* {@link InvalidWidgetError}
|
|
3558
3509
|
*/
|
|
3559
3510
|
addBoundingBox(
|
|
3560
3511
|
componentName: string,
|
|
@@ -3566,10 +3517,6 @@ export class Widget {
|
|
|
3566
3517
|
* This function can't be called in read-only mode.
|
|
3567
3518
|
*
|
|
3568
3519
|
* @throws This function can throw errors.
|
|
3569
|
-
*
|
|
3570
|
-
* {@link Error}
|
|
3571
|
-
*
|
|
3572
|
-
* {@link InvalidWidgetError}
|
|
3573
3520
|
*/
|
|
3574
3521
|
addClipboardComponent(
|
|
3575
3522
|
componentName: string,
|
|
@@ -3581,10 +3528,6 @@ export class Widget {
|
|
|
3581
3528
|
* This function can't be called in read-only mode.
|
|
3582
3529
|
*
|
|
3583
3530
|
* @throws This function can throw errors.
|
|
3584
|
-
*
|
|
3585
|
-
* {@link Error}
|
|
3586
|
-
*
|
|
3587
|
-
* {@link InvalidWidgetError}
|
|
3588
3531
|
*/
|
|
3589
3532
|
addEntityComponent(
|
|
3590
3533
|
componentName: string,
|
|
@@ -3596,10 +3539,6 @@ export class Widget {
|
|
|
3596
3539
|
* This function can't be called in read-only mode.
|
|
3597
3540
|
*
|
|
3598
3541
|
* @throws This function can throw errors.
|
|
3599
|
-
*
|
|
3600
|
-
* {@link Error}
|
|
3601
|
-
*
|
|
3602
|
-
* {@link InvalidWidgetError}
|
|
3603
3542
|
*/
|
|
3604
3543
|
addGizmoComponent(componentName: string, options?: WidgetComponentGizmoOptions): WidgetComponentGizmo;
|
|
3605
3544
|
/**
|
|
@@ -3607,10 +3546,6 @@ export class Widget {
|
|
|
3607
3546
|
* This function can't be called in read-only mode.
|
|
3608
3547
|
*
|
|
3609
3548
|
* @throws This function can throw errors.
|
|
3610
|
-
*
|
|
3611
|
-
* {@link Error}
|
|
3612
|
-
*
|
|
3613
|
-
* {@link InvalidWidgetError}
|
|
3614
3549
|
*/
|
|
3615
3550
|
addGuideComponent(componentName: string, options?: WidgetComponentGuideOptions): WidgetComponentGuide;
|
|
3616
3551
|
/**
|
|
@@ -3618,10 +3553,6 @@ export class Widget {
|
|
|
3618
3553
|
* This function can't be called in read-only mode.
|
|
3619
3554
|
*
|
|
3620
3555
|
* @throws This function can throw errors.
|
|
3621
|
-
*
|
|
3622
|
-
* {@link Error}
|
|
3623
|
-
*
|
|
3624
|
-
* {@link InvalidWidgetError}
|
|
3625
3556
|
*/
|
|
3626
3557
|
addRenderPrimitiveComponent(
|
|
3627
3558
|
componentName: string,
|
|
@@ -3637,10 +3568,6 @@ export class Widget {
|
|
|
3637
3568
|
* This function can't be called in read-only mode.
|
|
3638
3569
|
*
|
|
3639
3570
|
* @throws This function can throw errors.
|
|
3640
|
-
*
|
|
3641
|
-
* {@link Error}
|
|
3642
|
-
*
|
|
3643
|
-
* {@link InvalidWidgetError}
|
|
3644
3571
|
*/
|
|
3645
3572
|
addSplineComponent(componentName: string, options?: WidgetComponentSplineOptions): WidgetComponentSpline;
|
|
3646
3573
|
/**
|
|
@@ -3648,10 +3575,6 @@ export class Widget {
|
|
|
3648
3575
|
* This function can't be called in read-only mode.
|
|
3649
3576
|
*
|
|
3650
3577
|
* @throws This function can throw errors.
|
|
3651
|
-
*
|
|
3652
|
-
* {@link Error}
|
|
3653
|
-
*
|
|
3654
|
-
* {@link InvalidWidgetError}
|
|
3655
3578
|
*/
|
|
3656
3579
|
addTextComponent(componentName: string, label: string, options?: WidgetComponentTextOptions): WidgetComponentText;
|
|
3657
3580
|
/**
|
|
@@ -3659,10 +3582,6 @@ export class Widget {
|
|
|
3659
3582
|
* This function can't be called in read-only mode.
|
|
3660
3583
|
*
|
|
3661
3584
|
* @throws This function can throw errors.
|
|
3662
|
-
*
|
|
3663
|
-
* {@link Error}
|
|
3664
|
-
*
|
|
3665
|
-
* {@link InvalidWidgetError}
|
|
3666
3585
|
*/
|
|
3667
3586
|
addVolumeOutline(
|
|
3668
3587
|
componentName: string,
|
|
@@ -3674,12 +3593,6 @@ export class Widget {
|
|
|
3674
3593
|
* This function can't be called in read-only mode.
|
|
3675
3594
|
*
|
|
3676
3595
|
* @throws This function can throw errors.
|
|
3677
|
-
*
|
|
3678
|
-
* {@link Error}
|
|
3679
|
-
*
|
|
3680
|
-
* {@link InvalidWidgetError}
|
|
3681
|
-
*
|
|
3682
|
-
* {@link InvalidWidgetGroupError}
|
|
3683
3596
|
*/
|
|
3684
3597
|
delete(): void;
|
|
3685
3598
|
/**
|
|
@@ -3687,12 +3600,6 @@ export class Widget {
|
|
|
3687
3600
|
* This function can't be called in read-only mode.
|
|
3688
3601
|
*
|
|
3689
3602
|
* @throws This function can throw errors.
|
|
3690
|
-
*
|
|
3691
|
-
* {@link Error}
|
|
3692
|
-
*
|
|
3693
|
-
* {@link InvalidWidgetComponentError}
|
|
3694
|
-
*
|
|
3695
|
-
* {@link InvalidWidgetError}
|
|
3696
3603
|
*/
|
|
3697
3604
|
deleteComponent(componentOrName: string | WidgetComponentBase): void;
|
|
3698
3605
|
/**
|
|
@@ -3700,10 +3607,6 @@ export class Widget {
|
|
|
3700
3607
|
* This function can't be called in read-only mode.
|
|
3701
3608
|
*
|
|
3702
3609
|
* @throws This function can throw errors.
|
|
3703
|
-
*
|
|
3704
|
-
* {@link Error}
|
|
3705
|
-
*
|
|
3706
|
-
* {@link InvalidWidgetError}
|
|
3707
3610
|
*/
|
|
3708
3611
|
getComponent(componentName: string): WidgetComponentBase;
|
|
3709
3612
|
/**
|
|
@@ -4107,12 +4010,6 @@ export class WidgetComponentSpline extends WidgetComponentBase {
|
|
|
4107
4010
|
* This function can't be called in read-only mode.
|
|
4108
4011
|
*
|
|
4109
4012
|
* @throws This function can throw errors.
|
|
4110
|
-
*
|
|
4111
|
-
* {@link Error}
|
|
4112
|
-
*
|
|
4113
|
-
* {@link InvalidWidgetComponentError}
|
|
4114
|
-
*
|
|
4115
|
-
* {@link InvalidWidgetError}
|
|
4116
4013
|
*/
|
|
4117
4014
|
getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
|
|
4118
4015
|
/**
|
|
@@ -4266,10 +4163,6 @@ export class WidgetGroup {
|
|
|
4266
4163
|
* This function can't be called in read-only mode.
|
|
4267
4164
|
*
|
|
4268
4165
|
* @throws This function can throw errors.
|
|
4269
|
-
*
|
|
4270
|
-
* {@link Error}
|
|
4271
|
-
*
|
|
4272
|
-
* {@link InvalidWidgetGroupError}
|
|
4273
4166
|
*/
|
|
4274
4167
|
createWidget(location: minecraftserver.Vector3, options?: WidgetCreateOptions): Widget;
|
|
4275
4168
|
/**
|
|
@@ -4283,12 +4176,6 @@ export class WidgetGroup {
|
|
|
4283
4176
|
* This function can't be called in read-only mode.
|
|
4284
4177
|
*
|
|
4285
4178
|
* @throws This function can throw errors.
|
|
4286
|
-
*
|
|
4287
|
-
* {@link Error}
|
|
4288
|
-
*
|
|
4289
|
-
* {@link InvalidWidgetError}
|
|
4290
|
-
*
|
|
4291
|
-
* {@link InvalidWidgetGroupError}
|
|
4292
4179
|
*/
|
|
4293
4180
|
deleteWidget(widgetToDelete: Widget): void;
|
|
4294
4181
|
/**
|
|
@@ -4318,8 +4205,6 @@ export class WidgetManager {
|
|
|
4318
4205
|
* This function can't be called in read-only mode.
|
|
4319
4206
|
*
|
|
4320
4207
|
* @throws This function can throw errors.
|
|
4321
|
-
*
|
|
4322
|
-
* {@link Error}
|
|
4323
4208
|
*/
|
|
4324
4209
|
createGroup(options?: WidgetGroupCreateOptions): WidgetGroup;
|
|
4325
4210
|
/**
|
|
@@ -4327,10 +4212,6 @@ export class WidgetManager {
|
|
|
4327
4212
|
* This function can't be called in read-only mode.
|
|
4328
4213
|
*
|
|
4329
4214
|
* @throws This function can throw errors.
|
|
4330
|
-
*
|
|
4331
|
-
* {@link Error}
|
|
4332
|
-
*
|
|
4333
|
-
* {@link InvalidWidgetGroupError}
|
|
4334
4215
|
*/
|
|
4335
4216
|
deleteGroup(groupToDelete: WidgetGroup): void;
|
|
4336
4217
|
}
|
|
@@ -4379,6 +4260,12 @@ export interface BlockMaskList {
|
|
|
4379
4260
|
* Represents a UI session for a given player
|
|
4380
4261
|
*/
|
|
4381
4262
|
export interface BuiltInUIManager {
|
|
4263
|
+
/**
|
|
4264
|
+
* @remarks
|
|
4265
|
+
* Activates tutorial overlay
|
|
4266
|
+
*
|
|
4267
|
+
*/
|
|
4268
|
+
activateTutorial(): void;
|
|
4382
4269
|
/**
|
|
4383
4270
|
* @remarks
|
|
4384
4271
|
* Navigates to the documentation site.
|
|
@@ -5445,6 +5332,20 @@ export declare interface IEventToken {
|
|
|
5445
5332
|
}
|
|
5446
5333
|
|
|
5447
5334
|
export interface IGlobalInputManager {
|
|
5335
|
+
/**
|
|
5336
|
+
* @remarks
|
|
5337
|
+
* Register a key press binding for an action which will be
|
|
5338
|
+
* handled by the specified input context.
|
|
5339
|
+
*
|
|
5340
|
+
* @param inputContextId
|
|
5341
|
+
* Id of the UI context to handle this binding.
|
|
5342
|
+
* @param action
|
|
5343
|
+
* Action to register the binding for.
|
|
5344
|
+
* @param binding
|
|
5345
|
+
* Keyboard binding to invoke action.
|
|
5346
|
+
* @param info
|
|
5347
|
+
* Additional information about key binding.
|
|
5348
|
+
*/
|
|
5448
5349
|
registerKeyBinding(
|
|
5449
5350
|
inputContextId: EditorInputContext,
|
|
5450
5351
|
action: SupportedKeyboardActionTypes,
|
|
@@ -5595,10 +5496,43 @@ export interface IMenu {
|
|
|
5595
5496
|
*
|
|
5596
5497
|
*/
|
|
5597
5498
|
readonly submenu: IMenu[];
|
|
5499
|
+
/**
|
|
5500
|
+
* @remarks
|
|
5501
|
+
* Create a child menu on this menu.
|
|
5502
|
+
*
|
|
5503
|
+
* @param params
|
|
5504
|
+
* The menu creation parameters for the sub item being added
|
|
5505
|
+
* @param action
|
|
5506
|
+
* The action to associate with the menu item. Only a subset of
|
|
5507
|
+
* actions are supported
|
|
5508
|
+
*/
|
|
5598
5509
|
addItem(params: IMenuCreationParams, action?: RegisteredAction<NoArgsAction>): IMenu;
|
|
5510
|
+
/**
|
|
5511
|
+
* @remarks
|
|
5512
|
+
* Destroy the menu and all of its children.
|
|
5513
|
+
*
|
|
5514
|
+
*/
|
|
5599
5515
|
dispose(): void;
|
|
5516
|
+
/**
|
|
5517
|
+
* @remarks
|
|
5518
|
+
* Hide the menu and all of its children.
|
|
5519
|
+
*
|
|
5520
|
+
*/
|
|
5600
5521
|
hide(): void;
|
|
5522
|
+
/**
|
|
5523
|
+
* @remarks
|
|
5524
|
+
* Replaces the current associated menu action with a new
|
|
5525
|
+
* action
|
|
5526
|
+
*
|
|
5527
|
+
* @param action
|
|
5528
|
+
* The registered action to associated with this menu item
|
|
5529
|
+
*/
|
|
5601
5530
|
replaceAction(action: RegisteredAction<NoArgsAction>): void;
|
|
5531
|
+
/**
|
|
5532
|
+
* @remarks
|
|
5533
|
+
* Show the menu and all of its children.
|
|
5534
|
+
*
|
|
5535
|
+
*/
|
|
5602
5536
|
show(): void;
|
|
5603
5537
|
}
|
|
5604
5538
|
|
|
@@ -5734,15 +5668,65 @@ export interface IModalTool {
|
|
|
5734
5668
|
*
|
|
5735
5669
|
*/
|
|
5736
5670
|
onModalToolActivation: EventSink<ModalToolLifecycleEventPayload>;
|
|
5671
|
+
/**
|
|
5672
|
+
* @remarks
|
|
5673
|
+
* Binds a property pane to the tool. When the tool is
|
|
5674
|
+
* selected, the pane's visibility updates. Only one pane can
|
|
5675
|
+
* be bound at a time.
|
|
5676
|
+
*
|
|
5677
|
+
* @param pane
|
|
5678
|
+
* Root pane associated with the modal tool
|
|
5679
|
+
*/
|
|
5737
5680
|
bindPropertyPane(pane: IRootPropertyPane): void;
|
|
5681
|
+
/**
|
|
5682
|
+
* @remarks
|
|
5683
|
+
* Register a key press binding for an action which will be
|
|
5684
|
+
* handled by the tool input context.
|
|
5685
|
+
*
|
|
5686
|
+
* @param action
|
|
5687
|
+
* Action to register the binding for.
|
|
5688
|
+
* @param binding
|
|
5689
|
+
* Keyboard binding to invoke action.
|
|
5690
|
+
* @param info
|
|
5691
|
+
* Additional information about key binding.
|
|
5692
|
+
*/
|
|
5738
5693
|
registerKeyBinding(
|
|
5739
5694
|
action: SupportedKeyboardActionTypes,
|
|
5740
5695
|
binding: KeyBinding,
|
|
5741
5696
|
info?: KeyBindingInfo,
|
|
5742
5697
|
): IRegisteredKeyBinding;
|
|
5698
|
+
/**
|
|
5699
|
+
* @remarks
|
|
5700
|
+
* Register an action to be called when mouse left/middle/right
|
|
5701
|
+
* buttons are pressed or released.
|
|
5702
|
+
*
|
|
5703
|
+
* @param action
|
|
5704
|
+
* Action to register the binding for.
|
|
5705
|
+
*/
|
|
5743
5706
|
registerMouseButtonBinding(action: SupportedMouseActionTypes): void;
|
|
5707
|
+
/**
|
|
5708
|
+
* @remarks
|
|
5709
|
+
* Register an action to be called when mouse is dragged while
|
|
5710
|
+
* left mouse button is down.
|
|
5711
|
+
*
|
|
5712
|
+
* @param action
|
|
5713
|
+
* Action to register the binding for.
|
|
5714
|
+
*/
|
|
5744
5715
|
registerMouseDragBinding(action: SupportedMouseActionTypes): void;
|
|
5716
|
+
/**
|
|
5717
|
+
* @remarks
|
|
5718
|
+
* Register an action to be called when mouse wheel is
|
|
5719
|
+
* scrolled.
|
|
5720
|
+
*
|
|
5721
|
+
* @param action
|
|
5722
|
+
* Action to register the binding for.
|
|
5723
|
+
*/
|
|
5745
5724
|
registerMouseWheelBinding(action: SupportedMouseActionTypes): void;
|
|
5725
|
+
/**
|
|
5726
|
+
* @remarks
|
|
5727
|
+
* Unregister all input binding for this tool.
|
|
5728
|
+
*
|
|
5729
|
+
*/
|
|
5746
5730
|
unregisterInputBindings(): void;
|
|
5747
5731
|
}
|
|
5748
5732
|
|
|
@@ -5753,10 +5737,45 @@ export interface IModalToolContainer {
|
|
|
5753
5737
|
*
|
|
5754
5738
|
*/
|
|
5755
5739
|
readonly currentTools: IModalTool[];
|
|
5740
|
+
/**
|
|
5741
|
+
* @remarks
|
|
5742
|
+
* Create a new tool in the modal tool container represented
|
|
5743
|
+
* via button on the tool rail.
|
|
5744
|
+
*
|
|
5745
|
+
* @param id
|
|
5746
|
+
* Unique identifier for the tool
|
|
5747
|
+
* @param params
|
|
5748
|
+
* Construction parameters for the new tool
|
|
5749
|
+
*/
|
|
5756
5750
|
addTool(id: string, params: ModalToolCreationParameters): IModalTool;
|
|
5751
|
+
/**
|
|
5752
|
+
* @remarks
|
|
5753
|
+
* Activates input bindings for the selected tool by enabling
|
|
5754
|
+
* viewport focus
|
|
5755
|
+
*
|
|
5756
|
+
*/
|
|
5757
5757
|
focusToolInputContext(): void;
|
|
5758
|
+
/**
|
|
5759
|
+
* @remarks
|
|
5760
|
+
* Returns identifier of the selected tool.
|
|
5761
|
+
*
|
|
5762
|
+
*/
|
|
5758
5763
|
getSelectedToolId(): string | undefined;
|
|
5764
|
+
/**
|
|
5765
|
+
* @remarks
|
|
5766
|
+
* Remove an existing tool by id from the tool container
|
|
5767
|
+
*
|
|
5768
|
+
* @param id
|
|
5769
|
+
* Name of the tool to remove.
|
|
5770
|
+
*/
|
|
5759
5771
|
removeTool(id: string): void;
|
|
5772
|
+
/**
|
|
5773
|
+
* @remarks
|
|
5774
|
+
* Selects a tool in the container.
|
|
5775
|
+
*
|
|
5776
|
+
* @param id
|
|
5777
|
+
* Identifier of the tool
|
|
5778
|
+
*/
|
|
5760
5779
|
setSelectedToolId(id: string | undefined): void;
|
|
5761
5780
|
}
|
|
5762
5781
|
|
|
@@ -6926,9 +6945,31 @@ export interface IStatusBarItem {
|
|
|
6926
6945
|
*
|
|
6927
6946
|
*/
|
|
6928
6947
|
readonly id: string;
|
|
6948
|
+
/**
|
|
6949
|
+
* @remarks
|
|
6950
|
+
* Returns display text of the item.
|
|
6951
|
+
*
|
|
6952
|
+
*/
|
|
6929
6953
|
getText(): LocalizedString;
|
|
6954
|
+
/**
|
|
6955
|
+
* @remarks
|
|
6956
|
+
* Hide the Status Bar Item.
|
|
6957
|
+
*
|
|
6958
|
+
*/
|
|
6930
6959
|
hide(): void;
|
|
6960
|
+
/**
|
|
6961
|
+
* @remarks
|
|
6962
|
+
* Updates display text of the item.
|
|
6963
|
+
*
|
|
6964
|
+
* @param text
|
|
6965
|
+
* New display text
|
|
6966
|
+
*/
|
|
6931
6967
|
setText(text: LocalizedString): void;
|
|
6968
|
+
/**
|
|
6969
|
+
* @remarks
|
|
6970
|
+
* Show the Status Bar Item.
|
|
6971
|
+
*
|
|
6972
|
+
*/
|
|
6932
6973
|
show(): void;
|
|
6933
6974
|
}
|
|
6934
6975
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.21.80-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.21.80-preview.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^2.0.0-beta.1.21.80-preview.
|
|
17
|
+
"@minecraft/server": "^2.0.0-beta.1.21.80-preview.28"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|