@minecraft/server-editor 0.1.0-beta.1.26.2-stable → 0.1.0-beta.1.26.20-preview.22

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 (3) hide show
  1. package/README.md +6 -6
  2. package/index.d.ts +1789 -228
  3. package/package.json +20 -20
package/index.d.ts CHANGED
@@ -108,6 +108,20 @@ export declare enum ButtonVariant {
108
108
  Destructive = 3,
109
109
  }
110
110
 
111
+ export declare enum CollectionTreeEntryItemType {
112
+ String = 0,
113
+ Number = 1,
114
+ Dropdown = 2,
115
+ }
116
+
117
+ /**
118
+ * Determines how collection tree folders will be sorted
119
+ */
120
+ export declare enum CollectionTreeSortType {
121
+ AtoZ = 0,
122
+ ZtoA = 1,
123
+ }
124
+
111
125
  /**
112
126
  * The possible variants of a color picker.
113
127
  */
@@ -983,6 +997,15 @@ export declare enum ListPaneEntryType {
983
997
  Text = 3,
984
998
  }
985
999
 
1000
+ /**
1001
+ * Determines theming variation for the list slot
1002
+ */
1003
+ export declare enum ListPaneSlotVariant {
1004
+ Primary = 0,
1005
+ Secondary = 1,
1006
+ Muted = 2,
1007
+ }
1008
+
986
1009
  /**
987
1010
  * Determines how list pane slots will be sorted
988
1011
  */
@@ -992,6 +1015,13 @@ export declare enum ListPaneViewSortType {
992
1015
  ZtoA = 2,
993
1016
  }
994
1017
 
1018
+ export declare enum ListViewControlFilterFlags {
1019
+ None = 0,
1020
+ Name = 1,
1021
+ Tag = 2,
1022
+ All = 3,
1023
+ }
1024
+
995
1025
  export enum LogChannel {
996
1026
  /**
997
1027
  * @remarks
@@ -1030,6 +1060,7 @@ export enum MinimapViewType {
1030
1060
  *
1031
1061
  */
1032
1062
  BlockView = 0,
1063
+ CustomBiomeView = 1,
1033
1064
  }
1034
1065
 
1035
1066
  /**
@@ -1153,6 +1184,11 @@ export enum PrimitiveType {
1153
1184
  Line = 2,
1154
1185
  Disc = 4,
1155
1186
  AxialSphere = 5,
1187
+ Cylinder = 7,
1188
+ Pyramid = 8,
1189
+ Ellipsoid = 9,
1190
+ Cuboid = 10,
1191
+ Cone = 11,
1156
1192
  }
1157
1193
 
1158
1194
  /**
@@ -1178,6 +1214,7 @@ export declare enum PropertyItemType {
1178
1214
  Boolean = 'editorUI:Boolean',
1179
1215
  Button = 'editorUI:Button',
1180
1216
  ButtonPane = 'editorUI:ButtonPane',
1217
+ CollectionTree = 'editorUI:CollectionTree',
1181
1218
  ColorPicker = 'editorUI:ColorPicker',
1182
1219
  ColorTimeline = 'editorUI:ColorTimeline',
1183
1220
  ComboBox = 'editorUI:ComboBox',
@@ -1195,10 +1232,20 @@ export declare enum PropertyItemType {
1195
1232
  ProxyPane = 'editorUI:ProxyPane',
1196
1233
  String = 'editorUI:String',
1197
1234
  SubPane = 'editorUI:SubPane',
1235
+ TagContainer = 'editorUI:TagContainer',
1198
1236
  Text = 'editorUI:Text',
1199
1237
  ToggleGroup = 'editorUI:ToggleGroup',
1200
1238
  Vector2 = 'editorUI:Vector2',
1201
1239
  Vector3 = 'editorUI:Vector3',
1240
+ Vector3Timeline = 'editorUI:Vector3Timeline',
1241
+ }
1242
+
1243
+ /**
1244
+ * Determines the location root pane will be displayed in
1245
+ */
1246
+ export declare enum RootPaneLocation {
1247
+ Drawer = 0,
1248
+ Viewport = 1,
1202
1249
  }
1203
1250
 
1204
1251
  export enum SelectionVolumeEventType {
@@ -1234,6 +1281,14 @@ export enum StructureSource {
1234
1281
  Level = 3,
1235
1282
  }
1236
1283
 
1284
+ /**
1285
+ * The possible variants of a TagContainer property item.
1286
+ */
1287
+ export declare enum TagContainerVariant {
1288
+ Primary = 0,
1289
+ Inverted = 1,
1290
+ }
1291
+
1237
1292
  export enum ThemeSettingsColorKey {
1238
1293
  Caret = 'Caret',
1239
1294
  Confirm1 = 'Confirm1',
@@ -1433,6 +1488,100 @@ export type GraphicsSettingsPropertyTypeMap = {
1433
1488
  [GraphicsSettingsProperty.DisableBlockEntityRendering]?: boolean;
1434
1489
  };
1435
1490
 
1491
+ /**
1492
+ * Menu options for the collection tree entry dropdown item
1493
+ */
1494
+ export type ICollectionTreeEntryDropdownItemMenuOption = {
1495
+ readonly label: string;
1496
+ readonly value: string;
1497
+ readonly imageData?: ImageResourceData;
1498
+ };
1499
+
1500
+ /**
1501
+ * Parameters to create dropdown in a collection tree entry
1502
+ */
1503
+ export type ICollectionTreeEntryDropdownItemParams = {
1504
+ value: IObservableProp<string>;
1505
+ title?: LocalizedString;
1506
+ tooltip?: BasicTooltipContent;
1507
+ enabled?: boolean;
1508
+ visible?: boolean;
1509
+ menuOptions?: ICollectionTreeEntryDropdownItemMenuOption[];
1510
+ onChange?: (newValue: string, oldValue: string, item: ICollectionTreeEntryDropdownItem) => void;
1511
+ };
1512
+
1513
+ /**
1514
+ * Parameters to create number field in a collection tree entry
1515
+ */
1516
+ export type ICollectionTreeEntryNumberItemParams = {
1517
+ value: IObservableProp<number>;
1518
+ title?: LocalizedString;
1519
+ tooltip?: BasicTooltipContent;
1520
+ enabled?: boolean;
1521
+ visible?: boolean;
1522
+ min?: number;
1523
+ max?: number;
1524
+ isInteger?: boolean;
1525
+ onChange?: (newValue: number, oldValue: number, item: ICollectionTreeEntryNumberItem) => void;
1526
+ };
1527
+
1528
+ /**
1529
+ * Options to create an entry in a collection tree folder
1530
+ */
1531
+ export type ICollectionTreeEntryOptions = {
1532
+ selected?: boolean;
1533
+ image?: ImageResourceData;
1534
+ selectable?: boolean;
1535
+ removable?: boolean;
1536
+ color?: minecraftserver.RGBA;
1537
+ userData?: unknown;
1538
+ onSelectedChange?: (selected: boolean, folder: ICollectionTreeEntry) => void;
1539
+ onBeforeRelocated?: (toFolder: ICollectionTreeFolder, toIndex: number, entry: ICollectionTreeEntry) => boolean;
1540
+ };
1541
+
1542
+ /**
1543
+ * Parameters to create string field in a collection tree entry
1544
+ */
1545
+ export type ICollectionTreeEntryStringItemParams = {
1546
+ value: IObservableProp<string>;
1547
+ title?: LocalizedString;
1548
+ tooltip?: BasicTooltipContent;
1549
+ enabled?: boolean;
1550
+ visible?: boolean;
1551
+ onChange?: (newValue: string, oldValue: string, item: ICollectionTreeEntryStringItem) => void;
1552
+ };
1553
+
1554
+ /**
1555
+ * Parameters to create an action button on the folder header
1556
+ */
1557
+ export type ICollectionTreeFolderHeaderActionParams = {
1558
+ title?: LocalizedString;
1559
+ tooltip?: BasicTooltipContent;
1560
+ enabled?: boolean;
1561
+ onClick: (folder: ICollectionTreeFolder) => void;
1562
+ };
1563
+
1564
+ /**
1565
+ * Contains collection folders and entries
1566
+ */
1567
+ export type ICollectionTreeFolderOptions = {
1568
+ uniqueId?: string;
1569
+ title?: LocalizedString;
1570
+ selected?: boolean;
1571
+ expanded?: boolean;
1572
+ visible?: boolean;
1573
+ removable?: boolean;
1574
+ selectable?: boolean;
1575
+ userData?: unknown;
1576
+ color?: minecraftserver.RGBA;
1577
+ action?: ICollectionTreeFolderHeaderActionParams;
1578
+ menu?: IMenuCreationParams[];
1579
+ onMenuClicked?: (menuId: string, folder: ICollectionTreeFolder) => void;
1580
+ onSelectedChange?: (selected: boolean, folder: ICollectionTreeFolder) => void;
1581
+ onBeforeRemoved?: (folder: ICollectionTreeFolder) => boolean;
1582
+ onBeforeEntryRemoved?: (entry: ICollectionTreeEntry) => boolean;
1583
+ };
1584
+
1436
1585
  /**
1437
1586
  * Animation properties for a horizontally laid out sprite
1438
1587
  * sheet image
@@ -1562,6 +1711,15 @@ export type ListPaneImageEntryParams = {
1562
1711
  visible?: boolean;
1563
1712
  };
1564
1713
 
1714
+ export declare type ListPaneSlotConfiguration = {
1715
+ height: number;
1716
+ columns?: number;
1717
+ clickable?: boolean;
1718
+ outline?: boolean;
1719
+ variant?: ListPaneSlotVariant;
1720
+ entryLayout: ListPaneSlotLayoutEntry[] | ListPaneSlotLayoutSections;
1721
+ };
1722
+
1565
1723
  /**
1566
1724
  * Properties required to create a slot
1567
1725
  */
@@ -1570,20 +1728,17 @@ export type ListPaneSlotCreationProps = {
1570
1728
  options?: IListPaneSlotOptions;
1571
1729
  };
1572
1730
 
1573
- export declare type ListPaneSlotLayout = {
1574
- height: number;
1575
- columns?: number;
1576
- clickable?: boolean;
1577
- outline?: boolean;
1578
- entryLayout: ListPaneSlotLayoutEntry[];
1579
- };
1580
-
1581
1731
  export declare type ListPaneSlotLayoutEntry = {
1582
1732
  type: ListPaneEntryType;
1583
1733
  size?: number | LayoutSize | LayoutFlex;
1584
1734
  alignment?: LayoutAlignment;
1585
1735
  };
1586
1736
 
1737
+ export declare type ListPaneSlotLayoutSections = {
1738
+ mainSection: ListPaneSlotLayoutEntry[];
1739
+ outerSection: ListPaneSlotLayoutEntry[];
1740
+ };
1741
+
1587
1742
  /**
1588
1743
  * List Pane Text entry creation parameter
1589
1744
  */
@@ -1601,6 +1756,23 @@ export declare type ListPaneViewFilter = {
1601
1756
  tags?: string[];
1602
1757
  };
1603
1758
 
1759
+ /**
1760
+ * Action item to be displayed on a list view control
1761
+ */
1762
+ export type ListViewControlAction = {
1763
+ id: string;
1764
+ } & ListViewControlActionState;
1765
+
1766
+ /**
1767
+ * Action item state for list view control
1768
+ */
1769
+ export type ListViewControlActionState = {
1770
+ label: LocalizedString;
1771
+ icon: string;
1772
+ disabled?: boolean;
1773
+ displayInMenu?: boolean;
1774
+ };
1775
+
1604
1776
  /**
1605
1777
  * Represents a localized string or an object with a localized
1606
1778
  * string and optional properties
@@ -2136,11 +2308,54 @@ export declare abstract class BrushShape {
2136
2308
  */
2137
2309
  constructor(_id: string, _displayName: string, _icon: string);
2138
2310
  abstract applySetting(brushSettings: BrushShapeSettings): void;
2311
+ /**
2312
+ * @remarks
2313
+ * Calculates the bounding box of the shape in local
2314
+ * coordinates. Used for region allocation before shape
2315
+ * placement.
2316
+ *
2317
+ * @returns
2318
+ * Object with min and max Vector3 bounds
2319
+ */
2320
+ abstract calculateBounds(): minecraftserver.BlockBoundingBox;
2139
2321
  abstract createSettingsPane(
2140
2322
  parentPane: IPropertyPane,
2141
2323
  onSettingsChange?: () => void,
2324
+ flatLayout?: boolean,
2142
2325
  ): ISubPanePropertyItem | undefined;
2143
2326
  abstract createShape(): RelativeVolumeListBlockVolume;
2327
+ /**
2328
+ * @remarks
2329
+ * Asynchronously creates the shape, yielding control
2330
+ * periodically to avoid timeouts. Use this for large shapes
2331
+ * where createShape() may timeout.
2332
+ *
2333
+ * @param cancelToken
2334
+ * Optional token to cancel the operation. Set cancelled to
2335
+ * true to abort.
2336
+ * @param yieldInterval
2337
+ * Number of blocks to process before yielding. Default is
2338
+ * 10000.
2339
+ * @returns
2340
+ * Promise that resolves to the shape positions as Vector3
2341
+ * array.
2342
+ */
2343
+ abstract createShapeAsync(
2344
+ cancelToken?: {
2345
+ cancelled: boolean;
2346
+ },
2347
+ yieldInterval?: number,
2348
+ ): Promise<RelativeVolumeListBlockVolume>;
2349
+ /**
2350
+ * @remarks
2351
+ * Returns a mathematical estimate of the number of blocks in
2352
+ * the shape. Used for UI display and validation before shape
2353
+ * creation.
2354
+ *
2355
+ * @returns
2356
+ * Estimated block count
2357
+ */
2358
+ abstract estimateBlockCount(): number;
2144
2359
  abstract getSettings(): BrushShapeSettings;
2145
2360
  }
2146
2361
 
@@ -2476,13 +2691,30 @@ export declare class ConeBrushShape extends BrushShape {
2476
2691
  width?: number;
2477
2692
  height?: number;
2478
2693
  depth?: number;
2694
+ maxRadius?: number;
2695
+ maxHeight?: number;
2479
2696
  xRotation?: number;
2480
2697
  yRotation?: number;
2481
2698
  zRotation?: number;
2699
+ hollow?: boolean;
2700
+ thickness?: number;
2701
+ enableHollowSettings?: boolean;
2482
2702
  });
2483
2703
  applySetting(brushSettings: ConeBrushShapeSettings): void;
2484
- createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2704
+ calculateBounds(): minecraftserver.BlockBoundingBox;
2705
+ createSettingsPane(
2706
+ parentPane: IPropertyPane,
2707
+ onSettingsChange?: () => void,
2708
+ flatLayout?: boolean,
2709
+ ): ISubPanePropertyItem;
2485
2710
  createShape(): RelativeVolumeListBlockVolume;
2711
+ createShapeAsync(
2712
+ cancelToken?: {
2713
+ cancelled: boolean;
2714
+ },
2715
+ yieldInterval?: number,
2716
+ ): Promise<RelativeVolumeListBlockVolume>;
2717
+ estimateBlockCount(): number;
2486
2718
  getSettings(): ConeBrushShapeSettings;
2487
2719
  }
2488
2720
 
@@ -2500,13 +2732,30 @@ export declare class CuboidBrushShape extends BrushShape {
2500
2732
  height?: number;
2501
2733
  depth?: number;
2502
2734
  minLength?: number;
2735
+ maxLength?: number;
2503
2736
  xRotation?: number;
2504
2737
  yRotation?: number;
2505
2738
  zRotation?: number;
2739
+ hollow?: boolean;
2740
+ thickness?: number;
2741
+ enableHollowSettings?: boolean;
2742
+ hideRotation?: boolean;
2506
2743
  });
2507
2744
  applySetting(brushSettings: CuboidBrushShapeSettings): void;
2508
- createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2745
+ calculateBounds(): minecraftserver.BlockBoundingBox;
2746
+ createSettingsPane(
2747
+ parentPane: IPropertyPane,
2748
+ onSettingsChange?: () => void,
2749
+ flatLayout?: boolean,
2750
+ ): ISubPanePropertyItem;
2509
2751
  createShape(): RelativeVolumeListBlockVolume;
2752
+ createShapeAsync(
2753
+ cancelToken?: {
2754
+ cancelled: boolean;
2755
+ },
2756
+ yieldInterval?: number,
2757
+ ): Promise<RelativeVolumeListBlockVolume>;
2758
+ estimateBlockCount(): number;
2510
2759
  getSettings(): CuboidBrushShapeSettings;
2511
2760
  }
2512
2761
 
@@ -2773,14 +3022,31 @@ export declare class CylinderBrushShape extends BrushShape {
2773
3022
  height?: number;
2774
3023
  depth?: number;
2775
3024
  minRadius?: number;
3025
+ maxRadius?: number;
3026
+ maxHeight?: number;
2776
3027
  xRotation?: number;
2777
3028
  yRotation?: number;
2778
3029
  zRotation?: number;
2779
3030
  hideRotation?: boolean;
3031
+ hollow?: boolean;
3032
+ thickness?: number;
3033
+ enableHollowSettings?: boolean;
2780
3034
  });
2781
3035
  applySetting(brushSettings: CylinderBrushShapeSettings): void;
2782
- createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
3036
+ calculateBounds(): minecraftserver.BlockBoundingBox;
3037
+ createSettingsPane(
3038
+ parentPane: IPropertyPane,
3039
+ onSettingsChange?: () => void,
3040
+ flatLayout?: boolean,
3041
+ ): ISubPanePropertyItem;
2783
3042
  createShape(): RelativeVolumeListBlockVolume;
3043
+ createShapeAsync(
3044
+ cancelToken?: {
3045
+ cancelled: boolean;
3046
+ },
3047
+ yieldInterval?: number,
3048
+ ): Promise<RelativeVolumeListBlockVolume>;
3049
+ estimateBlockCount(): number;
2784
3050
  getSettings(): CylinderBrushShapeSettings;
2785
3051
  }
2786
3052
 
@@ -2967,13 +3233,29 @@ export declare class EllipsoidBrushShape extends BrushShape {
2967
3233
  height?: number;
2968
3234
  depth?: number;
2969
3235
  minRadius?: number;
3236
+ maxRadius?: number;
2970
3237
  xRotation?: number;
2971
3238
  yRotation?: number;
2972
3239
  zRotation?: number;
3240
+ hollow?: boolean;
3241
+ thickness?: number;
3242
+ enableHollowSettings?: boolean;
2973
3243
  });
2974
3244
  applySetting(brushSettings: EllipsoidBrushShapeSettings): void;
2975
- createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
3245
+ calculateBounds(): minecraftserver.BlockBoundingBox;
3246
+ createSettingsPane(
3247
+ parentPane: IPropertyPane,
3248
+ onSettingsChange?: () => void,
3249
+ flatLayout?: boolean,
3250
+ ): ISubPanePropertyItem;
2976
3251
  createShape(): RelativeVolumeListBlockVolume;
3252
+ createShapeAsync(
3253
+ cancelToken?: {
3254
+ cancelled: boolean;
3255
+ },
3256
+ yieldInterval?: number,
3257
+ ): Promise<RelativeVolumeListBlockVolume>;
3258
+ estimateBlockCount(): number;
2977
3259
  getSettings(): EllipsoidBrushShapeSettings;
2978
3260
  }
2979
3261
 
@@ -3482,7 +3764,7 @@ export class MinimapManager {
3482
3764
  *
3483
3765
  * @throws This function can throw errors.
3484
3766
  */
3485
- createMinimap(viewType: MinimapViewType, mapWidth: number, mapHeight: number): MinimapItem;
3767
+ createMinimap(viewType: MinimapViewType, mapWidth: number, mapHeight: number, dataId?: string): MinimapItem;
3486
3768
  /**
3487
3769
  * @remarks
3488
3770
  * Remove an existing minimap instance from the manager using
@@ -3513,6 +3795,20 @@ export class MinimapManager {
3513
3795
  * @throws This function can throw errors.
3514
3796
  */
3515
3797
  getMinimap(minimapId: string): MinimapItem;
3798
+ /**
3799
+ * @remarks
3800
+ * This function can't be called in restricted-execution mode.
3801
+ *
3802
+ * @throws This function can throw errors.
3803
+ */
3804
+ setVanillaBiomeColorMap(colorMap: Record<string, minecraftserver.RGB>): void;
3805
+ /**
3806
+ * @remarks
3807
+ * This function can't be called in restricted-execution mode.
3808
+ *
3809
+ * @throws This function can throw errors.
3810
+ */
3811
+ updateVanillaColorMap(biomeType: minecraftserver.BiomeType, color: minecraftserver.RGB): void;
3516
3812
  }
3517
3813
 
3518
3814
  /**
@@ -3625,6 +3921,8 @@ export class ProbabilityBlockPaletteItem extends IBlockPaletteItem {
3625
3921
  * @remarks
3626
3922
  * This function can't be called in restricted-execution mode.
3627
3923
  *
3924
+ * @param weight
3925
+ * Bounds: [1, 100]
3628
3926
  * @throws This function can throw errors.
3629
3927
  */
3630
3928
  addBlock(block: minecraftserver.BlockPermutation | minecraftserver.BlockType | string, weight: number): void;
@@ -3660,13 +3958,30 @@ export declare class PyramidBrushShape extends BrushShape {
3660
3958
  width?: number;
3661
3959
  height?: number;
3662
3960
  depth?: number;
3961
+ maxSide?: number;
3962
+ maxHeight?: number;
3663
3963
  xRotation?: number;
3664
3964
  yRotation?: number;
3665
3965
  zRotation?: number;
3966
+ hollow?: boolean;
3967
+ thickness?: number;
3968
+ enableHollowSettings?: boolean;
3666
3969
  });
3667
3970
  applySetting(brushSettings: PyramidBrushShapeSettings): void;
3668
- createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
3971
+ calculateBounds(): minecraftserver.BlockBoundingBox;
3972
+ createSettingsPane(
3973
+ parentPane: IPropertyPane,
3974
+ onSettingsChange?: () => void,
3975
+ flatLayout?: boolean,
3976
+ ): ISubPanePropertyItem;
3669
3977
  createShape(): RelativeVolumeListBlockVolume;
3978
+ createShapeAsync(
3979
+ cancelToken?: {
3980
+ cancelled: boolean;
3981
+ },
3982
+ yieldInterval?: number,
3983
+ ): Promise<RelativeVolumeListBlockVolume>;
3984
+ estimateBlockCount(): number;
3670
3985
  getSettings(): PyramidBrushShapeSettings;
3671
3986
  }
3672
3987
 
@@ -3975,8 +4290,16 @@ export declare class SingleBlockBrushShape extends BrushShape {
3975
4290
  */
3976
4291
  constructor();
3977
4292
  applySetting(_settings: BrushShapeSettings): void;
4293
+ calculateBounds(): minecraftserver.BlockBoundingBox;
3978
4294
  createSettingsPane(): undefined;
3979
4295
  createShape(): RelativeVolumeListBlockVolume;
4296
+ createShapeAsync(
4297
+ _cancelToken?: {
4298
+ cancelled: boolean;
4299
+ },
4300
+ _yieldInterval?: number,
4301
+ ): Promise<RelativeVolumeListBlockVolume>;
4302
+ estimateBlockCount(): number;
3980
4303
  getSettings(): BrushShapeSettings;
3981
4304
  }
3982
4305
 
@@ -4504,8 +4827,13 @@ export class Widget {
4504
4827
  primitiveType:
4505
4828
  | WidgetComponentRenderPrimitiveTypeAxialSphere
4506
4829
  | WidgetComponentRenderPrimitiveTypeBox
4830
+ | WidgetComponentRenderPrimitiveTypeCone
4831
+ | WidgetComponentRenderPrimitiveTypeCuboid
4832
+ | WidgetComponentRenderPrimitiveTypeCylinder
4507
4833
  | WidgetComponentRenderPrimitiveTypeDisc
4508
- | WidgetComponentRenderPrimitiveTypeLine,
4834
+ | WidgetComponentRenderPrimitiveTypeEllipsoid
4835
+ | WidgetComponentRenderPrimitiveTypeLine
4836
+ | WidgetComponentRenderPrimitiveTypePyramid,
4509
4837
  options?: WidgetComponentRenderPrimitiveOptions,
4510
4838
  ): WidgetComponentRenderPrimitive;
4511
4839
  /**
@@ -4855,8 +5183,13 @@ export class WidgetComponentRenderPrimitive extends WidgetComponentBase {
4855
5183
  primitive:
4856
5184
  | WidgetComponentRenderPrimitiveTypeAxialSphere
4857
5185
  | WidgetComponentRenderPrimitiveTypeBox
5186
+ | WidgetComponentRenderPrimitiveTypeCone
5187
+ | WidgetComponentRenderPrimitiveTypeCuboid
5188
+ | WidgetComponentRenderPrimitiveTypeCylinder
4858
5189
  | WidgetComponentRenderPrimitiveTypeDisc
4859
- | WidgetComponentRenderPrimitiveTypeLine,
5190
+ | WidgetComponentRenderPrimitiveTypeEllipsoid
5191
+ | WidgetComponentRenderPrimitiveTypeLine
5192
+ | WidgetComponentRenderPrimitiveTypePyramid,
4860
5193
  ): void;
4861
5194
  }
4862
5195
 
@@ -4918,7 +5251,13 @@ export class WidgetComponentRenderPrimitiveTypeBox extends WidgetComponentRender
4918
5251
  }
4919
5252
 
4920
5253
  // @ts-ignore Class inheritance allowed for native defined classes
4921
- export class WidgetComponentRenderPrimitiveTypeDisc extends WidgetComponentRenderPrimitiveTypeBase {
5254
+ export class WidgetComponentRenderPrimitiveTypeCone extends WidgetComponentRenderPrimitiveTypeBase {
5255
+ /**
5256
+ * @remarks
5257
+ * This property can't be edited in restricted-execution mode.
5258
+ *
5259
+ */
5260
+ alpha?: number;
4922
5261
  /**
4923
5262
  * @remarks
4924
5263
  * This property can't be edited in restricted-execution mode.
@@ -4936,180 +5275,442 @@ export class WidgetComponentRenderPrimitiveTypeDisc extends WidgetComponentRende
4936
5275
  * This property can't be edited in restricted-execution mode.
4937
5276
  *
4938
5277
  */
4939
- radius: number;
4940
- constructor(center: minecraftserver.Vector3, radius: number, color: minecraftserver.RGBA);
4941
- }
4942
-
4943
- // @ts-ignore Class inheritance allowed for native defined classes
4944
- export class WidgetComponentRenderPrimitiveTypeLine extends WidgetComponentRenderPrimitiveTypeBase {
5278
+ height: number;
4945
5279
  /**
4946
5280
  * @remarks
4947
5281
  * This property can't be edited in restricted-execution mode.
4948
5282
  *
4949
5283
  */
4950
- color: minecraftserver.RGBA;
5284
+ numSegments?: number;
4951
5285
  /**
4952
5286
  * @remarks
4953
5287
  * This property can't be edited in restricted-execution mode.
4954
5288
  *
4955
5289
  */
4956
- end: minecraftserver.Vector3;
5290
+ radiusX: number;
4957
5291
  /**
4958
5292
  * @remarks
4959
5293
  * This property can't be edited in restricted-execution mode.
4960
5294
  *
4961
5295
  */
4962
- start: minecraftserver.Vector3;
4963
- constructor(start: minecraftserver.Vector3, end: minecraftserver.Vector3, color: minecraftserver.RGBA);
5296
+ radiusZ: number;
5297
+ /**
5298
+ * @remarks
5299
+ * This property can't be edited in restricted-execution mode.
5300
+ *
5301
+ */
5302
+ rotation?: minecraftserver.Vector3;
5303
+ constructor(
5304
+ center: minecraftserver.Vector3,
5305
+ radiusX: number,
5306
+ radiusZ: number,
5307
+ height: number,
5308
+ color: minecraftserver.RGBA,
5309
+ numSegments?: number,
5310
+ rotation?: minecraftserver.Vector3,
5311
+ alpha?: number,
5312
+ );
4964
5313
  }
4965
5314
 
4966
5315
  // @ts-ignore Class inheritance allowed for native defined classes
4967
- export class WidgetComponentSpline extends WidgetComponentBase {
4968
- private constructor();
5316
+ export class WidgetComponentRenderPrimitiveTypeCuboid extends WidgetComponentRenderPrimitiveTypeBase {
4969
5317
  /**
4970
5318
  * @remarks
4971
5319
  * This property can't be edited in restricted-execution mode.
4972
5320
  *
4973
5321
  */
4974
- splineType: SplineType;
5322
+ alpha?: number;
4975
5323
  /**
4976
5324
  * @remarks
4977
- * This function can't be called in restricted-execution mode.
4978
- *
4979
- * @throws This function can throw errors.
4980
- *
4981
- * {@link Error}
4982
- *
4983
- * {@link InvalidWidgetComponentError}
5325
+ * This property can't be edited in restricted-execution mode.
4984
5326
  *
4985
- * {@link InvalidWidgetError}
4986
5327
  */
4987
- getControlPoints(): Widget[];
5328
+ center: minecraftserver.Vector3;
4988
5329
  /**
4989
5330
  * @remarks
4990
- * This function can't be called in restricted-execution mode.
5331
+ * This property can't be edited in restricted-execution mode.
4991
5332
  *
4992
- * @throws This function can throw errors.
4993
5333
  */
4994
- getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
5334
+ color: minecraftserver.RGBA;
4995
5335
  /**
4996
5336
  * @remarks
4997
- * This function can't be called in restricted-execution mode.
4998
- *
4999
- * @throws This function can throw errors.
5337
+ * This property can't be edited in restricted-execution mode.
5000
5338
  *
5001
- * {@link InvalidWidgetComponentError}
5339
+ */
5340
+ lengthX: number;
5341
+ /**
5342
+ * @remarks
5343
+ * This property can't be edited in restricted-execution mode.
5002
5344
  *
5003
- * {@link InvalidWidgetError}
5004
5345
  */
5005
- setControlPoints(widgetList: Widget[]): void;
5006
- }
5007
-
5008
- // @ts-ignore Class inheritance allowed for native defined classes
5009
- export class WidgetComponentText extends WidgetComponentBase {
5010
- private constructor();
5346
+ lengthY: number;
5011
5347
  /**
5012
5348
  * @remarks
5013
5349
  * This property can't be edited in restricted-execution mode.
5014
5350
  *
5015
5351
  */
5016
- color: minecraftserver.RGBA;
5352
+ lengthZ: number;
5017
5353
  /**
5018
5354
  * @remarks
5019
5355
  * This property can't be edited in restricted-execution mode.
5020
5356
  *
5021
5357
  */
5022
- label: string;
5358
+ rotation?: minecraftserver.Vector3;
5359
+ constructor(
5360
+ center: minecraftserver.Vector3,
5361
+ lengthX: number,
5362
+ lengthY: number,
5363
+ lengthZ: number,
5364
+ color: minecraftserver.RGBA,
5365
+ rotation?: minecraftserver.Vector3,
5366
+ alpha?: number,
5367
+ );
5023
5368
  }
5024
5369
 
5025
5370
  // @ts-ignore Class inheritance allowed for native defined classes
5026
- export class WidgetComponentVolumeOutline extends WidgetComponentBase {
5027
- private constructor();
5371
+ export class WidgetComponentRenderPrimitiveTypeCylinder extends WidgetComponentRenderPrimitiveTypeBase {
5028
5372
  /**
5029
5373
  * @remarks
5030
5374
  * This property can't be edited in restricted-execution mode.
5031
5375
  *
5032
5376
  */
5033
- highlightHullColor: minecraftserver.RGBA;
5377
+ alpha?: number;
5034
5378
  /**
5035
5379
  * @remarks
5036
5380
  * This property can't be edited in restricted-execution mode.
5037
5381
  *
5038
5382
  */
5039
- highlightOutlineColor: minecraftserver.RGBA;
5383
+ center: minecraftserver.Vector3;
5040
5384
  /**
5041
5385
  * @remarks
5042
5386
  * This property can't be edited in restricted-execution mode.
5043
5387
  *
5044
5388
  */
5045
- hullColor: minecraftserver.RGBA;
5389
+ color: minecraftserver.RGBA;
5046
5390
  /**
5047
5391
  * @remarks
5048
5392
  * This property can't be edited in restricted-execution mode.
5049
5393
  *
5050
5394
  */
5051
- mirror: minecraftserver.StructureMirrorAxis;
5395
+ height: number;
5052
5396
  /**
5053
5397
  * @remarks
5054
5398
  * This property can't be edited in restricted-execution mode.
5055
5399
  *
5056
5400
  */
5057
- normalizedOrigin: minecraftserver.Vector3;
5401
+ radiusX: number;
5058
5402
  /**
5059
5403
  * @remarks
5060
5404
  * This property can't be edited in restricted-execution mode.
5061
5405
  *
5062
5406
  */
5063
- outlineColor: minecraftserver.RGBA;
5407
+ radiusZ: number;
5064
5408
  /**
5065
5409
  * @remarks
5066
5410
  * This property can't be edited in restricted-execution mode.
5067
5411
  *
5068
5412
  */
5069
- rotation: minecraftserver.StructureRotation;
5413
+ rotation?: minecraftserver.Vector3;
5414
+ constructor(
5415
+ center: minecraftserver.Vector3,
5416
+ radiusX: number,
5417
+ radiusZ: number,
5418
+ height: number,
5419
+ color: minecraftserver.RGBA,
5420
+ rotation?: minecraftserver.Vector3,
5421
+ alpha?: number,
5422
+ );
5423
+ }
5424
+
5425
+ // @ts-ignore Class inheritance allowed for native defined classes
5426
+ export class WidgetComponentRenderPrimitiveTypeDisc extends WidgetComponentRenderPrimitiveTypeBase {
5070
5427
  /**
5071
5428
  * @remarks
5072
5429
  * This property can't be edited in restricted-execution mode.
5073
5430
  *
5074
5431
  */
5075
- showHighlightOutline: boolean;
5432
+ center: minecraftserver.Vector3;
5076
5433
  /**
5077
5434
  * @remarks
5078
5435
  * This property can't be edited in restricted-execution mode.
5079
5436
  *
5080
5437
  */
5081
- showOutline: boolean;
5438
+ color: minecraftserver.RGBA;
5082
5439
  /**
5083
- * @throws This property can throw when used.
5440
+ * @remarks
5441
+ * This property can't be edited in restricted-execution mode.
5084
5442
  *
5085
- * {@link InvalidWidgetComponentError}
5086
5443
  */
5087
- readonly transformedWorldVolume: minecraftserver.BlockVolume;
5444
+ radius: number;
5445
+ constructor(center: minecraftserver.Vector3, radius: number, color: minecraftserver.RGBA);
5446
+ }
5447
+
5448
+ // @ts-ignore Class inheritance allowed for native defined classes
5449
+ export class WidgetComponentRenderPrimitiveTypeEllipsoid extends WidgetComponentRenderPrimitiveTypeBase {
5088
5450
  /**
5089
5451
  * @remarks
5090
5452
  * This property can't be edited in restricted-execution mode.
5091
5453
  *
5092
5454
  */
5093
- volumeOffset: minecraftserver.Vector3;
5455
+ alpha?: number;
5094
5456
  /**
5095
5457
  * @remarks
5096
- * This function can't be called in restricted-execution mode.
5458
+ * This property can't be edited in restricted-execution mode.
5097
5459
  *
5098
- * @throws This function can throw errors.
5460
+ */
5461
+ center: minecraftserver.Vector3;
5462
+ /**
5463
+ * @remarks
5464
+ * This property can't be edited in restricted-execution mode.
5099
5465
  *
5100
- * {@link InvalidWidgetComponentError}
5101
5466
  */
5102
- getVolume(): RelativeVolumeListBlockVolume | undefined;
5467
+ color: minecraftserver.RGBA;
5103
5468
  /**
5104
5469
  * @remarks
5105
- * This function can't be called in restricted-execution mode.
5470
+ * This property can't be edited in restricted-execution mode.
5106
5471
  *
5107
- * @throws This function can throw errors.
5472
+ */
5473
+ radii: minecraftserver.Vector3;
5474
+ /**
5475
+ * @remarks
5476
+ * This property can't be edited in restricted-execution mode.
5108
5477
  *
5109
- * {@link InvalidWidgetComponentError}
5110
5478
  */
5111
- setVolume(
5112
- volumeToSet?:
5479
+ rotation?: minecraftserver.Vector3;
5480
+ constructor(
5481
+ center: minecraftserver.Vector3,
5482
+ radii: minecraftserver.Vector3,
5483
+ color: minecraftserver.RGBA,
5484
+ rotation?: minecraftserver.Vector3,
5485
+ alpha?: number,
5486
+ );
5487
+ }
5488
+
5489
+ // @ts-ignore Class inheritance allowed for native defined classes
5490
+ export class WidgetComponentRenderPrimitiveTypeLine extends WidgetComponentRenderPrimitiveTypeBase {
5491
+ /**
5492
+ * @remarks
5493
+ * This property can't be edited in restricted-execution mode.
5494
+ *
5495
+ */
5496
+ color: minecraftserver.RGBA;
5497
+ /**
5498
+ * @remarks
5499
+ * This property can't be edited in restricted-execution mode.
5500
+ *
5501
+ */
5502
+ end: minecraftserver.Vector3;
5503
+ /**
5504
+ * @remarks
5505
+ * This property can't be edited in restricted-execution mode.
5506
+ *
5507
+ */
5508
+ start: minecraftserver.Vector3;
5509
+ constructor(start: minecraftserver.Vector3, end: minecraftserver.Vector3, color: minecraftserver.RGBA);
5510
+ }
5511
+
5512
+ // @ts-ignore Class inheritance allowed for native defined classes
5513
+ export class WidgetComponentRenderPrimitiveTypePyramid extends WidgetComponentRenderPrimitiveTypeBase {
5514
+ /**
5515
+ * @remarks
5516
+ * This property can't be edited in restricted-execution mode.
5517
+ *
5518
+ */
5519
+ alpha?: number;
5520
+ /**
5521
+ * @remarks
5522
+ * This property can't be edited in restricted-execution mode.
5523
+ *
5524
+ */
5525
+ center: minecraftserver.Vector3;
5526
+ /**
5527
+ * @remarks
5528
+ * This property can't be edited in restricted-execution mode.
5529
+ *
5530
+ */
5531
+ color: minecraftserver.RGBA;
5532
+ /**
5533
+ * @remarks
5534
+ * This property can't be edited in restricted-execution mode.
5535
+ *
5536
+ */
5537
+ height: number;
5538
+ /**
5539
+ * @remarks
5540
+ * This property can't be edited in restricted-execution mode.
5541
+ *
5542
+ */
5543
+ rotation?: minecraftserver.Vector3;
5544
+ /**
5545
+ * @remarks
5546
+ * This property can't be edited in restricted-execution mode.
5547
+ *
5548
+ */
5549
+ widthX: number;
5550
+ /**
5551
+ * @remarks
5552
+ * This property can't be edited in restricted-execution mode.
5553
+ *
5554
+ */
5555
+ widthZ?: number;
5556
+ constructor(
5557
+ center: minecraftserver.Vector3,
5558
+ widthX: number,
5559
+ height: number,
5560
+ color: minecraftserver.RGBA,
5561
+ widthZ?: number,
5562
+ rotation?: minecraftserver.Vector3,
5563
+ alpha?: number,
5564
+ );
5565
+ }
5566
+
5567
+ // @ts-ignore Class inheritance allowed for native defined classes
5568
+ export class WidgetComponentSpline extends WidgetComponentBase {
5569
+ private constructor();
5570
+ /**
5571
+ * @remarks
5572
+ * This property can't be edited in restricted-execution mode.
5573
+ *
5574
+ */
5575
+ splineType: SplineType;
5576
+ /**
5577
+ * @remarks
5578
+ * This function can't be called in restricted-execution mode.
5579
+ *
5580
+ * @throws This function can throw errors.
5581
+ *
5582
+ * {@link Error}
5583
+ *
5584
+ * {@link InvalidWidgetComponentError}
5585
+ *
5586
+ * {@link InvalidWidgetError}
5587
+ */
5588
+ getControlPoints(): Widget[];
5589
+ /**
5590
+ * @remarks
5591
+ * This function can't be called in restricted-execution mode.
5592
+ *
5593
+ * @throws This function can throw errors.
5594
+ */
5595
+ getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
5596
+ /**
5597
+ * @remarks
5598
+ * This function can't be called in restricted-execution mode.
5599
+ *
5600
+ * @throws This function can throw errors.
5601
+ *
5602
+ * {@link InvalidWidgetComponentError}
5603
+ *
5604
+ * {@link InvalidWidgetError}
5605
+ */
5606
+ setControlPoints(widgetList: Widget[]): void;
5607
+ }
5608
+
5609
+ // @ts-ignore Class inheritance allowed for native defined classes
5610
+ export class WidgetComponentText extends WidgetComponentBase {
5611
+ private constructor();
5612
+ /**
5613
+ * @remarks
5614
+ * This property can't be edited in restricted-execution mode.
5615
+ *
5616
+ */
5617
+ color: minecraftserver.RGBA;
5618
+ /**
5619
+ * @remarks
5620
+ * This property can't be edited in restricted-execution mode.
5621
+ *
5622
+ */
5623
+ label: string;
5624
+ }
5625
+
5626
+ // @ts-ignore Class inheritance allowed for native defined classes
5627
+ export class WidgetComponentVolumeOutline extends WidgetComponentBase {
5628
+ private constructor();
5629
+ /**
5630
+ * @remarks
5631
+ * This property can't be edited in restricted-execution mode.
5632
+ *
5633
+ */
5634
+ highlightHullColor: minecraftserver.RGBA;
5635
+ /**
5636
+ * @remarks
5637
+ * This property can't be edited in restricted-execution mode.
5638
+ *
5639
+ */
5640
+ highlightOutlineColor: minecraftserver.RGBA;
5641
+ /**
5642
+ * @remarks
5643
+ * This property can't be edited in restricted-execution mode.
5644
+ *
5645
+ */
5646
+ hullColor: minecraftserver.RGBA;
5647
+ /**
5648
+ * @remarks
5649
+ * This property can't be edited in restricted-execution mode.
5650
+ *
5651
+ */
5652
+ mirror: minecraftserver.StructureMirrorAxis;
5653
+ /**
5654
+ * @remarks
5655
+ * This property can't be edited in restricted-execution mode.
5656
+ *
5657
+ */
5658
+ normalizedOrigin: minecraftserver.Vector3;
5659
+ /**
5660
+ * @remarks
5661
+ * This property can't be edited in restricted-execution mode.
5662
+ *
5663
+ */
5664
+ outlineColor: minecraftserver.RGBA;
5665
+ /**
5666
+ * @remarks
5667
+ * This property can't be edited in restricted-execution mode.
5668
+ *
5669
+ */
5670
+ rotation: minecraftserver.StructureRotation;
5671
+ /**
5672
+ * @remarks
5673
+ * This property can't be edited in restricted-execution mode.
5674
+ *
5675
+ */
5676
+ showHighlightOutline: boolean;
5677
+ /**
5678
+ * @remarks
5679
+ * This property can't be edited in restricted-execution mode.
5680
+ *
5681
+ */
5682
+ showOutline: boolean;
5683
+ /**
5684
+ * @throws This property can throw when used.
5685
+ *
5686
+ * {@link InvalidWidgetComponentError}
5687
+ */
5688
+ readonly transformedWorldVolume: minecraftserver.BlockVolume;
5689
+ /**
5690
+ * @remarks
5691
+ * This property can't be edited in restricted-execution mode.
5692
+ *
5693
+ */
5694
+ volumeOffset: minecraftserver.Vector3;
5695
+ /**
5696
+ * @remarks
5697
+ * This function can't be called in restricted-execution mode.
5698
+ *
5699
+ * @throws This function can throw errors.
5700
+ *
5701
+ * {@link InvalidWidgetComponentError}
5702
+ */
5703
+ getVolume(): RelativeVolumeListBlockVolume | undefined;
5704
+ /**
5705
+ * @remarks
5706
+ * This function can't be called in restricted-execution mode.
5707
+ *
5708
+ * @throws This function can throw errors.
5709
+ *
5710
+ * {@link InvalidWidgetComponentError}
5711
+ */
5712
+ setVolume(
5713
+ volumeToSet?:
5113
5714
  | minecraftserver.Vector3[]
5114
5715
  | minecraftserver.BlockVolume
5115
5716
  | minecraftserver.BlockVolumeBase
@@ -5301,6 +5902,7 @@ export interface BuiltInUIManager {
5301
5902
  * is being written to the world
5302
5903
  */
5303
5904
  export interface ClipboardWriteOptions {
5905
+ excludeAirBlocks?: boolean;
5304
5906
  /**
5305
5907
  * @remarks
5306
5908
  * An enum which represents the axis (or combination of axis')
@@ -5334,7 +5936,9 @@ export interface ClipboardWriteOptions {
5334
5936
  export interface ConeBrushShapeSettings {
5335
5937
  depth: number;
5336
5938
  height: number;
5939
+ hollow: boolean;
5337
5940
  radius: number;
5941
+ thickness: number;
5338
5942
  uniform: boolean;
5339
5943
  width: number;
5340
5944
  xRotation: number;
@@ -5359,6 +5963,8 @@ export interface ContiguousSelectionProperties {
5359
5963
  export interface CuboidBrushShapeSettings {
5360
5964
  depth: number;
5361
5965
  height: number;
5966
+ hollow: boolean;
5967
+ thickness: number;
5362
5968
  uniform: boolean;
5363
5969
  width: number;
5364
5970
  xRotation: number;
@@ -5453,7 +6059,9 @@ export interface CursorRay {
5453
6059
  export interface CylinderBrushShapeSettings {
5454
6060
  depth: number;
5455
6061
  height: number;
6062
+ hollow: boolean;
5456
6063
  radius: number;
6064
+ thickness: number;
5457
6065
  uniform: boolean;
5458
6066
  width: number;
5459
6067
  xRotation: number;
@@ -5476,7 +6084,9 @@ export interface EditorStructureSearchOptions {
5476
6084
  export interface EllipsoidBrushShapeSettings {
5477
6085
  depth: number;
5478
6086
  height: number;
6087
+ hollow: boolean;
5479
6088
  radius: number;
6089
+ thickness: number;
5480
6090
  uniform: boolean;
5481
6091
  width: number;
5482
6092
  xRotation: number;
@@ -5568,6 +6178,7 @@ export interface GameOptions {
5568
6178
  immediateRespawn?: boolean;
5569
6179
  insomnia?: boolean;
5570
6180
  keepInventory?: boolean;
6181
+ keepPlayerData?: boolean;
5571
6182
  lanVisibility?: boolean;
5572
6183
  limitedCrafting?: boolean;
5573
6184
  locatorBar?: boolean;
@@ -5755,268 +6366,751 @@ export interface IBlockTableEntryInfo {
5755
6366
  export interface IBlockTablePropertyItem extends IPropertyItemBase {
5756
6367
  /**
5757
6368
  * @remarks
5758
- * Create new or update an existing entry in the block table
6369
+ * Create new or update an existing entry in the block table
6370
+ *
6371
+ * @param block
6372
+ * a new entry in the block table.
6373
+ * @param blockInfo
6374
+ * block info for the entry in the block table.
6375
+ */
6376
+ addOrUpdateEntry(block: string | minecraftserver.BlockType, blockInfo: IBlockTableEntryInfo): void;
6377
+ /**
6378
+ * @remarks
6379
+ * Delete entry in the block table, by block name
6380
+ *
6381
+ * @param block
6382
+ * an entry in the block table.
6383
+ */
6384
+ deleteEntry(block: string): void;
6385
+ /**
6386
+ * @remarks
6387
+ * Read entry from the block table, by block name
6388
+ *
6389
+ * @param block
6390
+ * an entry in the block table.
6391
+ */
6392
+ getEntry(block: string | minecraftserver.BlockType): IBlockTableEntryInfo | undefined;
6393
+ /**
6394
+ * @remarks
6395
+ * Updates title of the property item.
6396
+ *
6397
+ * @param title
6398
+ * New title.
6399
+ */
6400
+ setTitle(title: LocalizedString): void;
6401
+ /**
6402
+ * @remarks
6403
+ * Update the block table entries
6404
+ *
6405
+ * @param entries
6406
+ * The new value for the block table.
6407
+ */
6408
+ updateEntries(entries: Map<string, IBlockTableEntryInfo>): void;
6409
+ }
6410
+
6411
+ /**
6412
+ * Properties of block table item
6413
+ */
6414
+ // @ts-ignore Class inheritance allowed for native defined classes
6415
+ export interface IBlockTablePropertyItemOptions extends IPropertyItemOptionsBase {
6416
+ /**
6417
+ * @remarks
6418
+ * Map of block entries in the block table.
6419
+ *
6420
+ */
6421
+ entries?: Map<string, IBlockTableEntryInfo>;
6422
+ /**
6423
+ * @remarks
6424
+ * If true label text will be hidden. It will be visible by
6425
+ * default.
6426
+ *
6427
+ */
6428
+ hiddenLabel?: boolean;
6429
+ /**
6430
+ * @remarks
6431
+ * This callback is called when UI control operation is
6432
+ * selected from the UI.
6433
+ *
6434
+ */
6435
+ onOperationClick?: (block: string, operation: BlockTableOperationType) => void;
6436
+ /**
6437
+ * @remarks
6438
+ * Localized title of the property item.
6439
+ *
6440
+ */
6441
+ title?: LocalizedString;
6442
+ /**
6443
+ * @remarks
6444
+ * Tooltip description of the property item.
6445
+ *
6446
+ */
6447
+ tooltip?: LocalizedString;
6448
+ }
6449
+
6450
+ /**
6451
+ * A property item which supports boolean properties
6452
+ */
6453
+ // @ts-ignore Class inheritance allowed for native defined classes
6454
+ export interface IBoolPropertyItem extends IPropertyItemBase {
6455
+ /**
6456
+ * @remarks
6457
+ * Current value of the property item.
6458
+ *
6459
+ */
6460
+ readonly value: boolean;
6461
+ /**
6462
+ * @remarks
6463
+ * Sets title of the property item.
6464
+ *
6465
+ */
6466
+ setTitle(title: LocalizedString | undefined): void;
6467
+ /**
6468
+ * @remarks
6469
+ * Sets tooltip description of the property item.
6470
+ *
6471
+ */
6472
+ setTooltip(tooltip: BasicTooltipContent | undefined): void;
6473
+ }
6474
+
6475
+ /**
6476
+ * Optional properties for Bool property item
6477
+ */
6478
+ // @ts-ignore Class inheritance allowed for native defined classes
6479
+ export interface IBoolPropertyItemOptions extends IPropertyItemOptionsBase {
6480
+ /**
6481
+ * @remarks
6482
+ * Changes checkbox variant to use a custom icon
6483
+ *
6484
+ */
6485
+ checkboxIcon?: string;
6486
+ /**
6487
+ * @remarks
6488
+ * If true label text will be hidden. It will be visible by
6489
+ * default.
6490
+ *
6491
+ */
6492
+ hiddenLabel?: boolean;
6493
+ /**
6494
+ * @remarks
6495
+ * This callback is called when UI control value is changed.
6496
+ *
6497
+ */
6498
+ onChange?: (newValue: boolean, oldValue: boolean) => void;
6499
+ /**
6500
+ * @remarks
6501
+ * Localized title of the text item.
6502
+ *
6503
+ */
6504
+ title?: LocalizedString;
6505
+ /**
6506
+ * @remarks
6507
+ * Tooltip description of the property item
6508
+ *
6509
+ */
6510
+ tooltip?: BasicTooltipContent;
6511
+ /**
6512
+ * @remarks
6513
+ * Determines how we display bool as a UI element. If
6514
+ * undefined, it will default to Checkbox.
6515
+ *
6516
+ */
6517
+ variant?: BoolPropertyItemVariant;
6518
+ }
6519
+
6520
+ /**
6521
+ * A property item pane which supports multiple buttons
6522
+ */
6523
+ // @ts-ignore Class inheritance allowed for native defined classes
6524
+ export interface IButtonPanePropertyItem extends IPropertyItemBase, IPane {
6525
+ /**
6526
+ * @remarks
6527
+ * Adds a button to the pane and binds the specified action to
6528
+ * the button interaction.
6529
+ *
6530
+ */
6531
+ addButton(
6532
+ action: ButtonPropertyItemSupportedActionTypes,
6533
+ options?: IButtonPropertyItemOptions,
6534
+ ): IButtonPropertyItem;
6535
+ }
6536
+
6537
+ /**
6538
+ * Optional properties for Button Pane property item
6539
+ */
6540
+ export interface IButtonPanePropertyItemOptions {
6541
+ /**
6542
+ * @remarks
6543
+ * Minimum width for each item within the layout. If undefined,
6544
+ * it will default to 6.
6545
+ *
6546
+ */
6547
+ itemMinWidth?: number;
6548
+ }
6549
+
6550
+ /**
6551
+ * A property item which supports Button properties
6552
+ */
6553
+ // @ts-ignore Class inheritance allowed for native defined classes
6554
+ export interface IButtonPropertyItem extends IPropertyItemBase {
6555
+ /**
6556
+ * @remarks
6557
+ * Replace action assigned to the button.
6558
+ *
6559
+ * @param action
6560
+ * New action to replace the existing with.
6561
+ */
6562
+ replaceAction(action: RegisteredAction<NoArgsAction>): void;
6563
+ /**
6564
+ * @remarks
6565
+ * Updates icon of the button.
6566
+ *
6567
+ * @param icon
6568
+ * New button icon.
6569
+ */
6570
+ setIcon(icon: string | undefined): void;
6571
+ /**
6572
+ * @remarks
6573
+ * Updates title of the button.
6574
+ *
6575
+ * @param title
6576
+ * New button title.
6577
+ */
6578
+ setTitle(title: LocalizedString | undefined): void;
6579
+ /**
6580
+ * @remarks
6581
+ * Updates tooltip description of the button.
6582
+ *
6583
+ * @param tooltip
6584
+ * New button tooltip.
6585
+ */
6586
+ setTooltip(tooltip: BasicTooltipContent | undefined): void;
6587
+ }
6588
+
6589
+ /**
6590
+ * Optional properties for Button property item
6591
+ */
6592
+ // @ts-ignore Class inheritance allowed for native defined classes
6593
+ export interface IButtonPropertyItemOptions extends IPropertyItemOptionsBase {
6594
+ /**
6595
+ * @remarks
6596
+ * If true label text will be hidden. It will be visible by
6597
+ * default.
6598
+ *
6599
+ */
6600
+ hiddenLabel?: boolean;
6601
+ /**
6602
+ * @remarks
6603
+ * Icon image of the property item.
6604
+ *
6605
+ */
6606
+ icon?: string;
6607
+ /**
6608
+ * @remarks
6609
+ * Shrinks button to icon size if button has an icon.
6610
+ *
6611
+ */
6612
+ shrinkToIcon?: boolean;
6613
+ /**
6614
+ * @remarks
6615
+ * Localized title of the property item.
6616
+ *
6617
+ */
6618
+ title?: LocalizedString;
6619
+ /**
6620
+ * @remarks
6621
+ * Tooltip description of the property item.
6622
+ *
6623
+ */
6624
+ tooltip?: BasicTooltipContent;
6625
+ /**
6626
+ * @remarks
6627
+ * The variant for the button. By default it is Primary.
6628
+ *
6629
+ */
6630
+ variant?: ButtonVariant;
6631
+ }
6632
+
6633
+ export interface ICollectionTreeEntry {
6634
+ /**
6635
+ * @remarks
6636
+ * Unique identifier for the entry.
6637
+ *
6638
+ */
6639
+ readonly id: string;
6640
+ /**
6641
+ * @remarks
6642
+ * Index of the entry in the folder
6643
+ *
6644
+ */
6645
+ readonly index: number;
6646
+ /**
6647
+ * @remarks
6648
+ * Parent folder of the entry.
6649
+ *
6650
+ */
6651
+ readonly parent: ICollectionTreeFolder;
6652
+ /**
6653
+ * @remarks
6654
+ * Selected state of the entry
6655
+ *
6656
+ */
6657
+ readonly selected: boolean;
6658
+ /**
6659
+ * @remarks
6660
+ * Adds a dropdown item to the entry
6661
+ *
6662
+ */
6663
+ addDropdownItem(params: ICollectionTreeEntryDropdownItemParams): ICollectionTreeEntryDropdownItem;
6664
+ /**
6665
+ * @remarks
6666
+ * Adds a number item to the entry
6667
+ *
6668
+ */
6669
+ addNumberItem(params: ICollectionTreeEntryNumberItemParams): ICollectionTreeEntryNumberItem;
6670
+ /**
6671
+ * @remarks
6672
+ * Adds a string item to the entry
6673
+ *
6674
+ */
6675
+ addStringItem(params: ICollectionTreeEntryStringItemParams): ICollectionTreeEntryStringItem;
6676
+ /**
6677
+ * @remarks
6678
+ * Gets the tree entry item by index
6679
+ *
6680
+ * @param index
6681
+ * Index of the entry item
6682
+ */
6683
+ getItemByIndex(index: number): ICollectionTreeEntryItem | undefined;
6684
+ /**
6685
+ * @remarks
6686
+ * Set color associated with the entry
6687
+ *
6688
+ */
6689
+ setColor(color: minecraftserver.RGBA | undefined): void;
6690
+ /**
6691
+ * @remarks
6692
+ * Set selected state of the entry.
6693
+ *
6694
+ * @param selected
6695
+ * New selected state
6696
+ */
6697
+ setSelected(selected: boolean): void;
6698
+ }
6699
+
6700
+ // @ts-ignore Class inheritance allowed for native defined classes
6701
+ export interface ICollectionTreeEntryDropdownItem extends ICollectionTreeEntryItem {
6702
+ /**
6703
+ * @remarks
6704
+ * Value of the entry item.
6705
+ *
6706
+ */
6707
+ readonly value: string;
6708
+ /**
6709
+ * @remarks
6710
+ * Update list of dropdown menu options.
6711
+ *
6712
+ * @param menuOptions
6713
+ * New list of updated menu options
6714
+ * @param newValue
6715
+ * New value value to use for the dropdown
6716
+ */
6717
+ updateMenuOptions(menuOptions: ICollectionTreeEntryDropdownItemMenuOption[], newValue?: string): void;
6718
+ }
6719
+
6720
+ export interface ICollectionTreeEntryItem {
6721
+ /**
6722
+ * @remarks
6723
+ * Enabled state of the entry.
6724
+ *
6725
+ */
6726
+ readonly enabled: boolean;
6727
+ /**
6728
+ * @remarks
6729
+ * Tree entry that owns the item.
6730
+ *
6731
+ */
6732
+ readonly parentEntry: ICollectionTreeEntry;
6733
+ /**
6734
+ * @remarks
6735
+ * Type of the item.
6736
+ *
6737
+ */
6738
+ readonly type: CollectionTreeEntryItemType;
6739
+ /**
6740
+ * @remarks
6741
+ * Visibility state of the entry.
6742
+ *
6743
+ */
6744
+ readonly visible: boolean;
6745
+ /**
6746
+ * @remarks
6747
+ * Updates enabled state of the item.
6748
+ *
6749
+ * @param enabled
6750
+ * New value.
6751
+ */
6752
+ setEnabled(enabled: boolean): void;
6753
+ /**
6754
+ * @remarks
6755
+ * Updates title of the item.
6756
+ *
6757
+ * @param title
6758
+ * New title.
6759
+ */
6760
+ setTitle(title: LocalizedString | undefined): void;
6761
+ /**
6762
+ * @remarks
6763
+ * Updates tooltip of the item.
6764
+ *
6765
+ */
6766
+ setTooltip(title: BasicTooltipContent | undefined): void;
6767
+ /**
6768
+ * @remarks
6769
+ * Updates visibility of the item.
6770
+ *
6771
+ * @param visible
6772
+ * New value.
6773
+ */
6774
+ setVisible(visible: boolean): void;
6775
+ }
6776
+
6777
+ // @ts-ignore Class inheritance allowed for native defined classes
6778
+ export interface ICollectionTreeEntryNumberItem extends ICollectionTreeEntryItem {
6779
+ /**
6780
+ * @remarks
6781
+ * Value of the entry item.
6782
+ *
6783
+ */
6784
+ readonly value: number;
6785
+ }
6786
+
6787
+ // @ts-ignore Class inheritance allowed for native defined classes
6788
+ export interface ICollectionTreeEntryStringItem extends ICollectionTreeEntryItem {
6789
+ /**
6790
+ * @remarks
6791
+ * Value of the entry item.
6792
+ *
6793
+ */
6794
+ readonly value: string;
6795
+ }
6796
+
6797
+ /**
6798
+ * Container for collection items
6799
+ */
6800
+ export interface ICollectionTreeFolder {
6801
+ /**
6802
+ * @remarks
6803
+ * Count of the entries
6804
+ *
6805
+ */
6806
+ readonly entryCount: number;
6807
+ /**
6808
+ * @remarks
6809
+ * Expanded state of the folder
6810
+ *
6811
+ */
6812
+ readonly expanded: boolean;
6813
+ /**
6814
+ * @remarks
6815
+ * Count of the child folders
6816
+ *
6817
+ */
6818
+ readonly folderCount: number;
6819
+ /**
6820
+ * @remarks
6821
+ * Unique identifier of the folder
6822
+ *
6823
+ */
6824
+ readonly id: string;
6825
+ /**
6826
+ * @remarks
6827
+ * Parent folder
6828
+ *
6829
+ */
6830
+ readonly parent: ICollectionTreeFolder | undefined;
6831
+ /**
6832
+ * @remarks
6833
+ * Selected state of the folder
6834
+ *
6835
+ */
6836
+ readonly selected: boolean;
6837
+ /**
6838
+ * @remarks
6839
+ * Title of the folder
6840
+ *
6841
+ */
6842
+ readonly title: LocalizedString;
6843
+ /**
6844
+ * @remarks
6845
+ * User data associated with the folder
6846
+ *
6847
+ */
6848
+ readonly userData: unknown;
6849
+ /**
6850
+ * @remarks
6851
+ * Adds a new entry to the folder
6852
+ *
6853
+ * @param options
6854
+ * Options to create a folder
6855
+ */
6856
+ addEntry(options: ICollectionTreeEntryOptions): ICollectionTreeEntry;
6857
+ /**
6858
+ * @remarks
6859
+ * Creates a new child folder
6860
+ *
6861
+ * @param options
6862
+ * Options to create a folder
6863
+ */
6864
+ addFolder(options: ICollectionTreeFolderOptions): ICollectionTreeFolder;
6865
+ /**
6866
+ * @remarks
6867
+ * Iterates over entries within the folder
6868
+ *
6869
+ * @param callback
6870
+ * Returning false will stop the iteration
6871
+ */
6872
+ forEachEntry(callback: (entry: ICollectionTreeEntry, index: number) => boolean): void;
6873
+ /**
6874
+ * @remarks
6875
+ * Iterates over the first layer of folders
5759
6876
  *
5760
- * @param block
5761
- * a new entry in the block table.
5762
- * @param blockInfo
5763
- * block info for the entry in the block table.
6877
+ * @param callback
6878
+ * Returning false will stop the iteration
5764
6879
  */
5765
- addOrUpdateEntry(block: string | minecraftserver.BlockType, blockInfo: IBlockTableEntryInfo): void;
6880
+ forEachFolder(callback: (folder: ICollectionTreeFolder) => boolean): void;
5766
6881
  /**
5767
6882
  * @remarks
5768
- * Delete entry in the block table, by block name
6883
+ * Iterates over the first layer of folders
5769
6884
  *
5770
- * @param block
5771
- * an entry in the block table.
6885
+ * @param callback
6886
+ * Returning false will stop the iteration
5772
6887
  */
5773
- deleteEntry(block: string): void;
6888
+ forEachFolder(callback: (folder: ICollectionTreeFolder) => boolean): void;
5774
6889
  /**
5775
6890
  * @remarks
5776
- * Read entry from the block table, by block name
6891
+ * Gets the entry by its unique identifier
5777
6892
  *
5778
- * @param block
5779
- * an entry in the block table.
6893
+ * @param id
6894
+ * Identifier of the folder
5780
6895
  */
5781
- getEntry(block: string | minecraftserver.BlockType): IBlockTableEntryInfo | undefined;
6896
+ getEntryById(id: string): ICollectionTreeEntry | undefined;
5782
6897
  /**
5783
6898
  * @remarks
5784
- * Updates title of the property item.
6899
+ * Gets the entry at the index
5785
6900
  *
5786
- * @param title
5787
- * New title.
6901
+ * @param index
6902
+ * Index of the entry
5788
6903
  */
5789
- setTitle(title: LocalizedString): void;
6904
+ getEntryByIndex(index: number): ICollectionTreeEntry | undefined;
5790
6905
  /**
5791
6906
  * @remarks
5792
- * Update the block table entries
6907
+ * Find the folder with the id if it exists
5793
6908
  *
5794
- * @param entries
5795
- * The new value for the block table.
6909
+ * @param id
6910
+ * Identifier of the folder
5796
6911
  */
5797
- updateEntries(entries: Map<string, IBlockTableEntryInfo>): void;
5798
- }
5799
-
5800
- /**
5801
- * Properties of block table item
5802
- */
5803
- // @ts-ignore Class inheritance allowed for native defined classes
5804
- export interface IBlockTablePropertyItemOptions extends IPropertyItemOptionsBase {
6912
+ getFolder(id: string): ICollectionTreeFolder | undefined;
5805
6913
  /**
5806
6914
  * @remarks
5807
- * Map of block entries in the block table.
6915
+ * Removes the entry by its unique identifier if it exists
5808
6916
  *
6917
+ * @param id
6918
+ * Identifier of the folder
5809
6919
  */
5810
- entries?: Map<string, IBlockTableEntryInfo>;
6920
+ removeEntryById(id: string): boolean;
5811
6921
  /**
5812
6922
  * @remarks
5813
- * If true label text will be hidden. It will be visible by
5814
- * default.
6923
+ * Removes the entry at the index if it exists
5815
6924
  *
6925
+ * @param index
6926
+ * Index of the entry
5816
6927
  */
5817
- hiddenLabel?: boolean;
6928
+ removeEntryByIndex(index: number): boolean;
5818
6929
  /**
5819
6930
  * @remarks
5820
- * This callback is called when UI control operation is
5821
- * selected from the UI.
6931
+ * Removes the folder with the id if it exists at the root
5822
6932
  *
6933
+ * @param id
6934
+ * Identifier of the folder
5823
6935
  */
5824
- onOperationClick?: (block: string, operation: BlockTableOperationType) => void;
6936
+ removeFolder(id: string): boolean;
5825
6937
  /**
5826
6938
  * @remarks
5827
- * Localized title of the property item.
6939
+ * Set color of the entry.
5828
6940
  *
6941
+ * @param color
6942
+ * New color state
5829
6943
  */
5830
- title?: LocalizedString;
6944
+ setColor(color: minecraftserver.RGBA | undefined): void;
5831
6945
  /**
5832
6946
  * @remarks
5833
- * Tooltip description of the property item.
6947
+ * Set expanded state of the entry.
5834
6948
  *
6949
+ * @param expanded
6950
+ * New expanded state
5835
6951
  */
5836
- tooltip?: LocalizedString;
5837
- }
5838
-
5839
- /**
5840
- * A property item which supports boolean properties
5841
- */
5842
- // @ts-ignore Class inheritance allowed for native defined classes
5843
- export interface IBoolPropertyItem extends IPropertyItemBase {
6952
+ setExpanded(expanded: boolean): void;
5844
6953
  /**
5845
6954
  * @remarks
5846
- * Current value of the property item.
6955
+ * Updates the header action for the folder
5847
6956
  *
5848
6957
  */
5849
- readonly value: boolean;
6958
+ setHeaderAction(actionParams: ICollectionTreeFolderHeaderActionParams | undefined): void;
5850
6959
  /**
5851
6960
  * @remarks
5852
- * Sets title of the property item.
6961
+ * Updates menu items for the folder
5853
6962
  *
6963
+ * @param menu
6964
+ * New menu items
5854
6965
  */
5855
- setTitle(title: LocalizedString | undefined): void;
6966
+ setMenu(menu: IMenuCreationParams[] | undefined): void;
5856
6967
  /**
5857
6968
  * @remarks
5858
- * Sets tooltip description of the property item.
6969
+ * Set selected state of the entry.
5859
6970
  *
6971
+ * @param selected
6972
+ * New selected state
5860
6973
  */
5861
- setTooltip(tooltip: BasicTooltipContent | undefined): void;
6974
+ setSelected(selected: boolean): void;
6975
+ /**
6976
+ * @remarks
6977
+ * Set title of the entry.
6978
+ *
6979
+ * @param title
6980
+ * New title state
6981
+ */
6982
+ setTitle(title: LocalizedString): void;
5862
6983
  }
5863
6984
 
5864
6985
  /**
5865
- * Optional properties for Bool property item
6986
+ * A property item which supports creating nested folders of
6987
+ * collection items
5866
6988
  */
5867
6989
  // @ts-ignore Class inheritance allowed for native defined classes
5868
- export interface IBoolPropertyItemOptions extends IPropertyItemOptionsBase {
5869
- /**
5870
- * @remarks
5871
- * Changes checkbox variant to use a custom icon
5872
- *
5873
- */
5874
- checkboxIcon?: string;
6990
+ export interface ICollectionTreePropertyItem extends IPropertyItemBase {
5875
6991
  /**
5876
6992
  * @remarks
5877
- * If true label text will be hidden. It will be visible by
5878
- * default.
6993
+ * Drag and drop support for the entries
5879
6994
  *
5880
6995
  */
5881
- hiddenLabel?: boolean;
6996
+ readonly canDragDropEntries: boolean;
5882
6997
  /**
5883
6998
  * @remarks
5884
- * This callback is called when UI control value is changed.
6999
+ * Count of the child folders
5885
7000
  *
5886
7001
  */
5887
- onChange?: (newValue: boolean, oldValue: boolean) => void;
7002
+ readonly folderCount: number;
5888
7003
  /**
5889
7004
  * @remarks
5890
- * Localized title of the text item.
7005
+ * View control pane for the collection tree
5891
7006
  *
5892
7007
  */
5893
- title?: LocalizedString;
7008
+ readonly viewControlPane: IListViewControlPane | undefined;
5894
7009
  /**
5895
7010
  * @remarks
5896
- * Tooltip description of the property item
7011
+ * Sort type for the folders.
5897
7012
  *
5898
7013
  */
5899
- tooltip?: BasicTooltipContent;
7014
+ readonly viewSortType: CollectionTreeSortType;
5900
7015
  /**
5901
7016
  * @remarks
5902
- * Determines how we display bool as a UI element. If
5903
- * undefined, it will default to Checkbox.
7017
+ * Creates a new folder at the root of the collection
5904
7018
  *
7019
+ * @param options
7020
+ * Options to create a folder
5905
7021
  */
5906
- variant?: BoolPropertyItemVariant;
5907
- }
5908
-
5909
- /**
5910
- * A property item pane which supports multiple buttons
5911
- */
5912
- // @ts-ignore Class inheritance allowed for native defined classes
5913
- export interface IButtonPanePropertyItem extends IPropertyItemBase, IPane {
7022
+ addFolder(options: ICollectionTreeFolderOptions): ICollectionTreeFolder;
5914
7023
  /**
5915
7024
  * @remarks
5916
- * Adds a button to the pane and binds the specified action to
5917
- * the button interaction.
7025
+ * Creates a pane that displays view and filtering
7026
+ * configurations for the collection tree if the parent
7027
+ * container supports it.
5918
7028
  *
5919
7029
  */
5920
- addButton(
5921
- action: ButtonPropertyItemSupportedActionTypes,
5922
- options?: IButtonPropertyItemOptions,
5923
- ): IButtonPropertyItem;
5924
- }
5925
-
5926
- /**
5927
- * Optional properties for Button Pane property item
5928
- */
5929
- export interface IButtonPanePropertyItemOptions {
7030
+ buildViewControl(options: ICollectionTreeViewControlPaneOptions): IListViewControlPane;
5930
7031
  /**
5931
7032
  * @remarks
5932
- * Minimum width for each item within the layout. If undefined,
5933
- * it will default to 6.
7033
+ * Iterates over the first layer of folders
5934
7034
  *
7035
+ * @param callback
7036
+ * Returning false will stop the iteration
5935
7037
  */
5936
- itemMinWidth?: number;
5937
- }
5938
-
5939
- /**
5940
- * A property item which supports Button properties
5941
- */
5942
- // @ts-ignore Class inheritance allowed for native defined classes
5943
- export interface IButtonPropertyItem extends IPropertyItemBase {
7038
+ forEachFolder(callback: (folder: ICollectionTreeFolder) => boolean): void;
5944
7039
  /**
5945
7040
  * @remarks
5946
- * Replace action assigned to the button.
7041
+ * Find the folder with the id if it exists at the root
5947
7042
  *
5948
- * @param action
5949
- * New action to replace the existing with.
7043
+ * @param id
7044
+ * Identifier of the folder
5950
7045
  */
5951
- replaceAction(action: RegisteredAction<NoArgsAction>): void;
7046
+ getFolder(id: string): ICollectionTreeFolder | undefined;
5952
7047
  /**
5953
7048
  * @remarks
5954
- * Updates icon of the button.
7049
+ * Removes the folder with the id if it exists at the root
5955
7050
  *
5956
- * @param icon
5957
- * New button icon.
7051
+ * @param id
7052
+ * Identifier of the folder
5958
7053
  */
5959
- setIcon(icon: string | undefined): void;
7054
+ removeFolder(id: string): boolean;
5960
7055
  /**
5961
7056
  * @remarks
5962
- * Updates title of the button.
7057
+ * Toggles drag and drop support for the entries
5963
7058
  *
5964
- * @param title
5965
- * New button title.
7059
+ * @param enabled
7060
+ * Whether to enable drag and drop
5966
7061
  */
5967
- setTitle(title: LocalizedString | undefined): void;
7062
+ setCanDragDropEntries(enabled: boolean): void;
5968
7063
  /**
5969
7064
  * @remarks
5970
- * Updates tooltip description of the button.
7065
+ * Updates the folder sort type for the whole view
5971
7066
  *
5972
- * @param tooltip
5973
- * New button tooltip.
7067
+ * @param sortType
7068
+ * New sort type
5974
7069
  */
5975
- setTooltip(tooltip: BasicTooltipContent | undefined): void;
7070
+ setViewSortType(sortType: CollectionTreeSortType | undefined): void;
5976
7071
  }
5977
7072
 
5978
7073
  /**
5979
- * Optional properties for Button property item
7074
+ * Optional properties for Collection Tree Pane property item
5980
7075
  */
5981
7076
  // @ts-ignore Class inheritance allowed for native defined classes
5982
- export interface IButtonPropertyItemOptions extends IPropertyItemOptionsBase {
5983
- /**
5984
- * @remarks
5985
- * If true label text will be hidden. It will be visible by
5986
- * default.
5987
- *
5988
- */
5989
- hiddenLabel?: boolean;
7077
+ export interface ICollectionTreePropertyItemOptions extends IPropertyItemOptionsBase {
5990
7078
  /**
5991
7079
  * @remarks
5992
- * Icon image of the property item.
7080
+ * Setting true will enable drag and drop support for entries.
5993
7081
  *
5994
7082
  */
5995
- icon?: string;
7083
+ canDragDropEntries?: boolean;
5996
7084
  /**
5997
7085
  * @remarks
5998
- * Shrinks button to icon size if button has an icon.
7086
+ * Localized title of the property item.
5999
7087
  *
6000
7088
  */
6001
- shrinkToIcon?: boolean;
7089
+ title?: LocalizedString;
6002
7090
  /**
6003
7091
  * @remarks
6004
- * Localized title of the property item.
7092
+ * Custom sort type for folders view.
6005
7093
  *
6006
7094
  */
6007
- title?: LocalizedString;
7095
+ viewSortType?: CollectionTreeSortType;
7096
+ }
7097
+
7098
+ // @ts-ignore Class inheritance allowed for native defined classes
7099
+ export interface ICollectionTreeViewControlPaneOptions extends IListViewControlPaneOptions {
6008
7100
  /**
6009
7101
  * @remarks
6010
- * Tooltip description of the property item.
7102
+ * This function will be called whenever the filter is changed
7103
+ * by the user
6011
7104
  *
6012
7105
  */
6013
- tooltip?: BasicTooltipContent;
7106
+ onFilterChanged?: (visibleFolders: string[]) => void;
6014
7107
  /**
6015
7108
  * @remarks
6016
- * The variant for the button. By default it is Primary.
7109
+ * Custom sort options. If undefined, collection tree sort
7110
+ * options will be used.
6017
7111
  *
6018
7112
  */
6019
- variant?: ButtonVariant;
7113
+ sortOptions?: CollectionTreeSortType[];
6020
7114
  }
6021
7115
 
6022
7116
  /**
@@ -6874,6 +7968,12 @@ export interface IListPanePropertyItem extends IPropertyItemBase, IPane {
6874
7968
  *
6875
7969
  */
6876
7970
  readonly slotCount: number;
7971
+ /**
7972
+ * @remarks
7973
+ * View control pane for the list
7974
+ *
7975
+ */
7976
+ readonly viewControlPane: IListViewControlPane | undefined;
6877
7977
  /**
6878
7978
  * @remarks
6879
7979
  * Current sorting type for the pane slots
@@ -6886,6 +7986,14 @@ export interface IListPanePropertyItem extends IPropertyItemBase, IPane {
6886
7986
  *
6887
7987
  */
6888
7988
  addSlot(params: ListPaneSlotCreationProps): IListPaneSlot;
7989
+ /**
7990
+ * @remarks
7991
+ * Creates a pane that displays view and filtering
7992
+ * configurations for the list if the parent container supports
7993
+ * it.
7994
+ *
7995
+ */
7996
+ buildViewControl(options: IListPaneViewControlPaneOptions): IListViewControlPane;
6889
7997
  /**
6890
7998
  * @remarks
6891
7999
  * Finds the slot with the identifier.
@@ -6959,7 +8067,8 @@ export interface IListPanePropertyItem extends IPropertyItemBase, IPane {
6959
8067
  export interface IListPanePropertyItemOptions extends IPropertyItemOptionsBase {
6960
8068
  /**
6961
8069
  * @remarks
6962
- * This will be the height of the list withing the pane
8070
+ * Default slots to initialize the list with. If undefined, the
8071
+ * list will be empty.
6963
8072
  *
6964
8073
  */
6965
8074
  defaultSlots?: ListPaneSlotCreationProps[];
@@ -6972,17 +8081,10 @@ export interface IListPanePropertyItemOptions extends IPropertyItemOptionsBase {
6972
8081
  fixedHeight?: boolean;
6973
8082
  /**
6974
8083
  * @remarks
6975
- * This will be the height of the list withing the pane
8084
+ * This will be the height of the list within the pane
6976
8085
  *
6977
8086
  */
6978
8087
  height?: number;
6979
- /**
6980
- * @remarks
6981
- * Layout for the list will need to be predefined, and using
6982
- * wrong layout shape while creating slots will throw
6983
- *
6984
- */
6985
- layout: ListPaneSlotLayout;
6986
8088
  /**
6987
8089
  * @remarks
6988
8090
  * This callback is fired whenever a clickable slot is pressed
@@ -6996,6 +8098,14 @@ export interface IListPanePropertyItemOptions extends IPropertyItemOptionsBase {
6996
8098
  *
6997
8099
  */
6998
8100
  onSlotSelectionChange?: (slot: IListPaneSlot, state: boolean) => void;
8101
+ /**
8102
+ * @remarks
8103
+ * Slot configuration for the list. The slot entry layout must
8104
+ * be predefined, and using an incorrect layout while creating
8105
+ * slots will throw an error.
8106
+ *
8107
+ */
8108
+ slotConfig: ListPaneSlotConfiguration;
6999
8109
  /**
7000
8110
  * @remarks
7001
8111
  * Localized title of the property item.
@@ -7161,6 +8271,117 @@ export interface IListPaneTextEntry extends IListPaneEntry {
7161
8271
  setValue(value: LocalizedString): void;
7162
8272
  }
7163
8273
 
8274
+ // @ts-ignore Class inheritance allowed for native defined classes
8275
+ export interface IListPaneViewControlPaneOptions extends IListViewControlPaneOptions {
8276
+ /**
8277
+ * @remarks
8278
+ * Flags to determine visible filters. If undefined it will be
8279
+ * All.
8280
+ *
8281
+ */
8282
+ filterFlags?: ListViewControlFilterFlags;
8283
+ /**
8284
+ * @remarks
8285
+ * This function will be called whenever the filter is changed
8286
+ * by the user
8287
+ *
8288
+ */
8289
+ onFilterChanged?: (visibleSlotIds: string[]) => void;
8290
+ /**
8291
+ * @remarks
8292
+ * Custom sort options. If undefined, list pane sort options
8293
+ * will be used.
8294
+ *
8295
+ */
8296
+ sortOptions?: ListPaneViewSortType[];
8297
+ }
8298
+
8299
+ export interface IListViewControlPane {
8300
+ /**
8301
+ * @remarks
8302
+ * Unique identifier
8303
+ *
8304
+ */
8305
+ readonly id: string;
8306
+ /**
8307
+ * @remarks
8308
+ * Active state of the filter
8309
+ *
8310
+ */
8311
+ readonly isFilterActive: boolean;
8312
+ /**
8313
+ * @remarks
8314
+ * Visible state of the pane
8315
+ *
8316
+ */
8317
+ readonly visible: boolean;
8318
+ /**
8319
+ * @remarks
8320
+ * Returns the state of an existing action
8321
+ *
8322
+ * @param id
8323
+ * Identifier for the action
8324
+ */
8325
+ getActionState(id: string): ListViewControlActionState | undefined;
8326
+ /**
8327
+ * @remarks
8328
+ * Updates enabled state of the existing action
8329
+ *
8330
+ * @param id
8331
+ * Identifier for the action
8332
+ * @param enabled
8333
+ * New action enabled state
8334
+ */
8335
+ setActionEnabledState(id: string, enabled: boolean): void;
8336
+ /**
8337
+ * @remarks
8338
+ * Updates existing actions
8339
+ *
8340
+ * @param newActions
8341
+ * New actions
8342
+ */
8343
+ setActionStates(newActions: ListViewControlAction[]): void;
8344
+ /**
8345
+ * @remarks
8346
+ * Updates visible state of the pane
8347
+ *
8348
+ * @param visible
8349
+ * New visibility state
8350
+ */
8351
+ setVisible(visible: boolean): void;
8352
+ /**
8353
+ * @remarks
8354
+ * Updates action item state for the view control
8355
+ *
8356
+ * @param id
8357
+ * Identifier for the action
8358
+ * @param newState
8359
+ * New action state
8360
+ */
8361
+ updateActionState(id: string, newState: ListViewControlActionState): void;
8362
+ }
8363
+
8364
+ export interface IListViewControlPaneOptions {
8365
+ /**
8366
+ * @remarks
8367
+ * Default actions
8368
+ *
8369
+ */
8370
+ actions?: ListViewControlAction[];
8371
+ /**
8372
+ * @remarks
8373
+ * This function will be called whenever user clicks an action
8374
+ *
8375
+ */
8376
+ onActionClicked?: (id: string) => void;
8377
+ /**
8378
+ * @remarks
8379
+ * Initial visibility state. It undefined, it will be false.
8380
+ *
8381
+ */
8382
+ visible?: boolean;
8383
+ }
8384
+
7164
8385
  export interface IMenu {
7165
8386
  /**
7166
8387
  * @remarks
@@ -8358,10 +9579,16 @@ export interface IPropertyPane extends IPane {
8358
9579
  ): IButtonPropertyItem;
8359
9580
  /**
8360
9581
  * @remarks
8361
- * Adds a pane for grouped button layout.
9582
+ * Adds a pane for grouped button layout.
9583
+ *
9584
+ */
9585
+ addButtonPane(options?: IButtonPanePropertyItemOptions): IButtonPanePropertyItem;
9586
+ /**
9587
+ * @remarks
9588
+ * Adds a tree view for collections with folders and entries.
8362
9589
  *
8363
9590
  */
8364
- addButtonPane(options?: IButtonPanePropertyItemOptions): IButtonPanePropertyItem;
9591
+ addCollectionTree(options: ICollectionTreePropertyItemOptions): ICollectionTreePropertyItem;
8365
9592
  /**
8366
9593
  * @remarks
8367
9594
  * Adds a color picker item to the pane.
@@ -8477,6 +9704,12 @@ export interface IPropertyPane extends IPane {
8477
9704
  *
8478
9705
  */
8479
9706
  addString(value: IObservableProp<string>, options?: IStringPropertyItemOptions): IStringPropertyItem;
9707
+ /**
9708
+ * @remarks
9709
+ * Adds a tag container to the pane.
9710
+ *
9711
+ */
9712
+ addTagContainer(options?: ITagContainerPropertyItemOptions): ITagContainerPropertyItem;
8480
9713
  /**
8481
9714
  * @remarks
8482
9715
  * Adds a multiline Text item to the pane.
@@ -8507,6 +9740,15 @@ export interface IPropertyPane extends IPane {
8507
9740
  value: IObservableProp<minecraftserver.Vector3>,
8508
9741
  options?: IVector3PropertyItemOptions,
8509
9742
  ): IVector3PropertyItem;
9743
+ /**
9744
+ * @remarks
9745
+ * Adds a Vector3 Timeline item to the pane.
9746
+ *
9747
+ */
9748
+ addVector3Timeline(
9749
+ value: IObservableProp<number>,
9750
+ options?: IVector3TimelinePropertyItemOptions,
9751
+ ): IVector3TimelinePropertyItem;
8510
9752
  /**
8511
9753
  * @remarks
8512
9754
  * Begins pane construction for batching property item
@@ -8722,6 +9964,18 @@ export interface IRootPropertyPaneOptions extends IPropertyPaneOptions {
8722
9964
  *
8723
9965
  */
8724
9966
  headerAction?: IRootPropertyPaneHeaderAction;
9967
+ /**
9968
+ * @remarks
9969
+ * Pane icon shown in front of the pane header
9970
+ *
9971
+ */
9972
+ icon?: string;
9973
+ /**
9974
+ * @remarks
9975
+ * Determines how root pane will be displayed in the UI.
9976
+ *
9977
+ */
9978
+ location?: RootPaneLocation;
8725
9979
  }
8726
9980
 
8727
9981
  /**
@@ -8855,6 +10109,13 @@ export interface IStringPropertyItem extends IPropertyItemBase {
8855
10109
  */
8856
10110
  // @ts-ignore Class inheritance allowed for native defined classes
8857
10111
  export interface IStringPropertyItemOptions extends IPropertyItemOptionsBase {
10112
+ /**
10113
+ * @remarks
10114
+ * Shows clear button for the item. If undefined, it will be
10115
+ * true.
10116
+ *
10117
+ */
10118
+ hasClearButton?: boolean;
8858
10119
  /**
8859
10120
  * @remarks
8860
10121
  * If true label text will be hidden. If undefined, the label
@@ -8868,6 +10129,12 @@ export interface IStringPropertyItemOptions extends IPropertyItemOptionsBase {
8868
10129
  *
8869
10130
  */
8870
10131
  inlineLabel?: boolean;
10132
+ /**
10133
+ * @remarks
10134
+ * If defined, string will be handled as multiline input.
10135
+ *
10136
+ */
10137
+ multilineHeight?: number;
8871
10138
  /**
8872
10139
  * @remarks
8873
10140
  * This callback is called when UI control value is changed.
@@ -8948,6 +10215,12 @@ export interface ISubPanePropertyItemOptions extends IPropertyPaneOptions {
8948
10215
  *
8949
10216
  */
8950
10217
  hasMargins?: boolean;
10218
+ /**
10219
+ * @remarks
10220
+ * Pane icon shown in front of the pane header
10221
+ *
10222
+ */
10223
+ icon?: string;
8951
10224
  /**
8952
10225
  * @remarks
8953
10226
  * Determines layout of sub pane property items. If undefined,
@@ -8976,6 +10249,133 @@ export interface ISubPanePropertyItemOptions extends IPropertyPaneOptions {
8976
10249
  width?: number | LayoutSize;
8977
10250
  }
8978
10251
 
10252
+ /**
10253
+ * A property item which supports Tag Container properties
10254
+ */
10255
+ // @ts-ignore Class inheritance allowed for native defined classes
10256
+ export interface ITagContainerPropertyItem extends IPropertyItemBase {
10257
+ /**
10258
+ * @remarks
10259
+ * Current tags value of the property item.
10260
+ *
10261
+ */
10262
+ readonly tags: ReadonlyArray<string>;
10263
+ /**
10264
+ * @remarks
10265
+ * Current tags pool value of the property item.
10266
+ *
10267
+ */
10268
+ readonly tagsPool: ReadonlyArray<string>;
10269
+ /**
10270
+ * @remarks
10271
+ * Adds a tag to the current tags.
10272
+ *
10273
+ * @param tag
10274
+ * Tag to add.
10275
+ */
10276
+ addTag(tag: string): void;
10277
+ /**
10278
+ * @remarks
10279
+ * Adds a tag to the tags pool.
10280
+ *
10281
+ * @param tag
10282
+ * Tag to add to the pool.
10283
+ */
10284
+ addTagToPool(tag: string): void;
10285
+ /**
10286
+ * @remarks
10287
+ * Removes a tag from the current tags.
10288
+ *
10289
+ * @param tag
10290
+ * Tag to remove.
10291
+ */
10292
+ removeTag(tag: string): void;
10293
+ /**
10294
+ * @remarks
10295
+ * Removes a tag from the tags pool.
10296
+ *
10297
+ * @param tag
10298
+ * Tag to remove from the pool.
10299
+ */
10300
+ removeTagFromPool(tag: string): void;
10301
+ /**
10302
+ * @remarks
10303
+ * Updates all tags.
10304
+ *
10305
+ * @param tags
10306
+ * New tags array.
10307
+ */
10308
+ setTags(tags: string[] | undefined): void;
10309
+ /**
10310
+ * @remarks
10311
+ * Updates the tags pool.
10312
+ *
10313
+ * @param tagsPool
10314
+ * New tags pool array.
10315
+ */
10316
+ setTagsPool(tagsPool: string[] | undefined): void;
10317
+ /**
10318
+ * @remarks
10319
+ * Set title of the property item.
10320
+ *
10321
+ * @param title
10322
+ * New title.
10323
+ */
10324
+ setTitle(title: LocalizedString): void;
10325
+ /**
10326
+ * @remarks
10327
+ * Sets the visual variant of the tag container.
10328
+ *
10329
+ * @param variant
10330
+ * New variant.
10331
+ */
10332
+ setVariant(variant: TagContainerVariant | undefined): void;
10333
+ }
10334
+
10335
+ /**
10336
+ * Optional properties for Tag Container property item
10337
+ */
10338
+ // @ts-ignore Class inheritance allowed for native defined classes
10339
+ export interface ITagContainerPropertyItemOptions extends IPropertyItemOptionsBase {
10340
+ /**
10341
+ * @remarks
10342
+ * This callback is called when a tag is added.
10343
+ *
10344
+ */
10345
+ onTagAdded?: (tag: string) => void;
10346
+ /**
10347
+ * @remarks
10348
+ * This callback is called when a tag is removed.
10349
+ *
10350
+ */
10351
+ onTagRemoved?: (tag: string) => void;
10352
+ /**
10353
+ * @remarks
10354
+ * Initial tags for the container.
10355
+ *
10356
+ */
10357
+ tags?: string[];
10358
+ /**
10359
+ * @remarks
10360
+ * Available tags pool to select from.
10361
+ *
10362
+ */
10363
+ tagsPool?: string[];
10364
+ /**
10365
+ * @remarks
10366
+ * Localized title of the property item.
10367
+ *
10368
+ */
10369
+ title?: LocalizedString;
10370
+ /**
10371
+ * @remarks
10372
+ * Visual variant of the tag container. If undefined, it will
10373
+ * default to Inverted.
10374
+ *
10375
+ */
10376
+ variant?: TagContainerVariant;
10377
+ }
10378
+
8979
10379
  /**
8980
10380
  * A property item which supports Text properties
8981
10381
  */
@@ -9377,6 +10777,160 @@ export interface IVector3PropertyItemOptions extends IPropertyItemOptionsBase {
9377
10777
  tooltip?: BasicTooltipContent;
9378
10778
  }
9379
10779
 
10780
+ /**
10781
+ * A property item which supports Vector3 Timeline properties
10782
+ */
10783
+ // @ts-ignore Class inheritance allowed for native defined classes
10784
+ export interface IVector3TimelinePropertyItem extends IPropertyItemBase {
10785
+ /**
10786
+ * @remarks
10787
+ * Update vector3 timeline entry
10788
+ *
10789
+ * @param data
10790
+ * New vector3 node.
10791
+ */
10792
+ addNode(data: IVector3TimelinePropertyItemEntry): void;
10793
+ /**
10794
+ * @remarks
10795
+ * Get the list of nodes in the property item.
10796
+ *
10797
+ */
10798
+ getData(): IVector3TimelinePropertyItemEntry[];
10799
+ /**
10800
+ * @remarks
10801
+ * Get time current time value on the slider.
10802
+ *
10803
+ */
10804
+ getTime(): number;
10805
+ /**
10806
+ * @remarks
10807
+ * Remove vector3 node
10808
+ *
10809
+ * @param data
10810
+ * Node to be removed.
10811
+ */
10812
+ removeNode(data: IVector3TimelinePropertyItemEntry): void;
10813
+ /**
10814
+ * @remarks
10815
+ * Updates data entries value bounds.
10816
+ *
10817
+ */
10818
+ setBounds(bounds: { minValue: number; maxValue: number }): void;
10819
+ /**
10820
+ * @remarks
10821
+ * Set custom decimal precision for the calculations
10822
+ *
10823
+ */
10824
+ setPrecision(precision: number): void;
10825
+ /**
10826
+ * @remarks
10827
+ * Set time line slider value to a new value
10828
+ *
10829
+ * @param time
10830
+ * The new time value.
10831
+ */
10832
+ setTime(time: number): void;
10833
+ /**
10834
+ * @remarks
10835
+ * Updates title of the property item.
10836
+ *
10837
+ * @param title
10838
+ * New title.
10839
+ */
10840
+ setTitle(title: LocalizedString): void;
10841
+ /**
10842
+ * @remarks
10843
+ * Update node value
10844
+ *
10845
+ * @param data
10846
+ * Node to be updated.
10847
+ */
10848
+ updateNode(data: IVector3TimelinePropertyItemEntry): void;
10849
+ }
10850
+
10851
+ /**
10852
+ * Properties of vector3 timeline property item entry
10853
+ */
10854
+ export interface IVector3TimelinePropertyItemEntry {
10855
+ color?: minecraftserver.RGBA;
10856
+ id: string;
10857
+ time: number;
10858
+ value: minecraftserver.Vector3;
10859
+ }
10860
+
10861
+ /**
10862
+ * Optional properties for Vector3 Timeline property item
10863
+ */
10864
+ // @ts-ignore Class inheritance allowed for native defined classes
10865
+ export interface IVector3TimelinePropertyItemOptions extends IPropertyItemOptionsBase {
10866
+ /**
10867
+ * @remarks
10868
+ * The data bounds for the value node property
10869
+ *
10870
+ */
10871
+ bounds?: {
10872
+ minValue: number;
10873
+ maxValue: number;
10874
+ };
10875
+ /**
10876
+ * @remarks
10877
+ * Custom precision for the calculations
10878
+ *
10879
+ */
10880
+ decimalPrecision?: number;
10881
+ /**
10882
+ * @remarks
10883
+ * If true, nodes cannot be added or removed
10884
+ *
10885
+ */
10886
+ disableAddRemoveNodes?: boolean;
10887
+ /**
10888
+ * @remarks
10889
+ * List of nodes entries in the vector3 timeline.
10890
+ *
10891
+ */
10892
+ entries?: IVector3TimelinePropertyItemEntry[];
10893
+ /**
10894
+ * @remarks
10895
+ * True means nodes cannot be dragged or modified
10896
+ *
10897
+ */
10898
+ isGraphReadOnly?: boolean;
10899
+ /**
10900
+ * @remarks
10901
+ * Callback triggered when a new vector3 node is added to the
10902
+ * timeline.
10903
+ *
10904
+ */
10905
+ onNodeAdded?: (node: IVector3TimelinePropertyItemEntry) => void;
10906
+ /**
10907
+ * @remarks
10908
+ * Callback triggered when a timeline node's vector3 value
10909
+ * changes.
10910
+ *
10911
+ */
10912
+ onNodeChanged?: (node: IVector3TimelinePropertyItemEntry) => void;
10913
+ /**
10914
+ * @remarks
10915
+ * Callback triggered when a vector3 node is removed from the
10916
+ * timeline. *
10917
+ *
10918
+ */
10919
+ onNodeRemoved?: (node: IVector3TimelinePropertyItemEntry) => void;
10920
+ /**
10921
+ * @remarks
10922
+ * This callback is called when UI control time is changed.
10923
+ *
10924
+ */
10925
+ onTimeChanged?: (current: number, prev: number) => void;
10926
+ /**
10927
+ * @remarks
10928
+ * Localized title of the property item
10929
+ *
10930
+ */
10931
+ title?: LocalizedString;
10932
+ }
10933
+
9380
10934
  export interface LocalizationEntry {
9381
10935
  id: string;
9382
10936
  props?: string[];
@@ -9510,6 +11064,8 @@ export interface ProjectExportOptions {
9510
11064
  export interface PyramidBrushShapeSettings {
9511
11065
  depth: number;
9512
11066
  height: number;
11067
+ hollow: boolean;
11068
+ thickness: number;
9513
11069
  uniform: boolean;
9514
11070
  width: number;
9515
11071
  xRotation: number;
@@ -9679,6 +11235,11 @@ export class InvalidWidgetGroupError extends Error {
9679
11235
  private constructor();
9680
11236
  }
9681
11237
 
11238
+ // @ts-ignore Class inheritance allowed for native defined classes
11239
+ export class TransactionManagerNoChangesError extends Error {
11240
+ private constructor();
11241
+ }
11242
+
9682
11243
  /**
9683
11244
  * @remarks
9684
11245
  * Deserialize anything, defaults to the same behavior as