@minecraft/server-editor 0.1.0-beta.1.26.10-preview.25 → 0.1.0-beta.1.26.2-stable

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +6 -6
  2. package/index.d.ts +246 -1680
  3. package/package.json +20 -20
package/index.d.ts CHANGED
@@ -108,20 +108,6 @@ 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
-
125
111
  /**
126
112
  * The possible variants of a color picker.
127
113
  */
@@ -997,15 +983,6 @@ export declare enum ListPaneEntryType {
997
983
  Text = 3,
998
984
  }
999
985
 
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
-
1009
986
  /**
1010
987
  * Determines how list pane slots will be sorted
1011
988
  */
@@ -1015,13 +992,6 @@ export declare enum ListPaneViewSortType {
1015
992
  ZtoA = 2,
1016
993
  }
1017
994
 
1018
- export declare enum ListViewControlFilterFlags {
1019
- None = 0,
1020
- Name = 1,
1021
- Tag = 2,
1022
- All = 3,
1023
- }
1024
-
1025
995
  export enum LogChannel {
1026
996
  /**
1027
997
  * @remarks
@@ -1060,7 +1030,6 @@ export enum MinimapViewType {
1060
1030
  *
1061
1031
  */
1062
1032
  BlockView = 0,
1063
- CustomBiomeView = 1,
1064
1033
  }
1065
1034
 
1066
1035
  /**
@@ -1184,11 +1153,6 @@ export enum PrimitiveType {
1184
1153
  Line = 2,
1185
1154
  Disc = 4,
1186
1155
  AxialSphere = 5,
1187
- Cylinder = 7,
1188
- Pyramid = 8,
1189
- Ellipsoid = 9,
1190
- Cuboid = 10,
1191
- Cone = 11,
1192
1156
  }
1193
1157
 
1194
1158
  /**
@@ -1214,7 +1178,6 @@ export declare enum PropertyItemType {
1214
1178
  Boolean = 'editorUI:Boolean',
1215
1179
  Button = 'editorUI:Button',
1216
1180
  ButtonPane = 'editorUI:ButtonPane',
1217
- CollectionTree = 'editorUI:CollectionTree',
1218
1181
  ColorPicker = 'editorUI:ColorPicker',
1219
1182
  ColorTimeline = 'editorUI:ColorTimeline',
1220
1183
  ComboBox = 'editorUI:ComboBox',
@@ -1232,12 +1195,10 @@ export declare enum PropertyItemType {
1232
1195
  ProxyPane = 'editorUI:ProxyPane',
1233
1196
  String = 'editorUI:String',
1234
1197
  SubPane = 'editorUI:SubPane',
1235
- TagContainer = 'editorUI:TagContainer',
1236
1198
  Text = 'editorUI:Text',
1237
1199
  ToggleGroup = 'editorUI:ToggleGroup',
1238
1200
  Vector2 = 'editorUI:Vector2',
1239
1201
  Vector3 = 'editorUI:Vector3',
1240
- Vector3Timeline = 'editorUI:Vector3Timeline',
1241
1202
  }
1242
1203
 
1243
1204
  export enum SelectionVolumeEventType {
@@ -1273,14 +1234,6 @@ export enum StructureSource {
1273
1234
  Level = 3,
1274
1235
  }
1275
1236
 
1276
- /**
1277
- * The possible variants of a TagContainer property item.
1278
- */
1279
- export declare enum TagContainerVariant {
1280
- Primary = 0,
1281
- Inverted = 1,
1282
- }
1283
-
1284
1237
  export enum ThemeSettingsColorKey {
1285
1238
  Caret = 'Caret',
1286
1239
  Confirm1 = 'Confirm1',
@@ -1480,99 +1433,6 @@ export type GraphicsSettingsPropertyTypeMap = {
1480
1433
  [GraphicsSettingsProperty.DisableBlockEntityRendering]?: boolean;
1481
1434
  };
1482
1435
 
1483
- /**
1484
- * Menu options for the collection tree entry dropdown item
1485
- */
1486
- export type ICollectionTreeEntryDropdownItemMenuOption = {
1487
- readonly label: string;
1488
- readonly value: string;
1489
- readonly imageData?: ImageResourceData;
1490
- };
1491
-
1492
- /**
1493
- * Parameters to create dropdown in a collection tree entry
1494
- */
1495
- export type ICollectionTreeEntryDropdownItemParams = {
1496
- value: IObservableProp<string>;
1497
- title?: LocalizedString;
1498
- tooltip?: BasicTooltipContent;
1499
- enabled?: boolean;
1500
- visible?: boolean;
1501
- menuOptions?: ICollectionTreeEntryDropdownItemMenuOption[];
1502
- onChange?: (newValue: string, oldValue: string, item: ICollectionTreeEntryDropdownItem) => void;
1503
- };
1504
-
1505
- /**
1506
- * Parameters to create number field in a collection tree entry
1507
- */
1508
- export type ICollectionTreeEntryNumberItemParams = {
1509
- value: IObservableProp<number>;
1510
- title?: LocalizedString;
1511
- tooltip?: BasicTooltipContent;
1512
- enabled?: boolean;
1513
- visible?: boolean;
1514
- min?: number;
1515
- max?: number;
1516
- isInteger?: boolean;
1517
- onChange?: (newValue: number, oldValue: number, item: ICollectionTreeEntryNumberItem) => void;
1518
- };
1519
-
1520
- /**
1521
- * Options to create an entry in a collection tree folder
1522
- */
1523
- export type ICollectionTreeEntryOptions = {
1524
- selected?: boolean;
1525
- image?: ImageResourceData;
1526
- selectable?: boolean;
1527
- removable?: boolean;
1528
- color?: minecraftserver.RGBA;
1529
- userData?: unknown;
1530
- onSelectedChange?: (selected: boolean, folder: ICollectionTreeEntry) => void;
1531
- };
1532
-
1533
- /**
1534
- * Parameters to create string field in a collection tree entry
1535
- */
1536
- export type ICollectionTreeEntryStringItemParams = {
1537
- value: IObservableProp<string>;
1538
- title?: LocalizedString;
1539
- tooltip?: BasicTooltipContent;
1540
- enabled?: boolean;
1541
- visible?: boolean;
1542
- onChange?: (newValue: string, oldValue: string, item: ICollectionTreeEntryStringItem) => void;
1543
- };
1544
-
1545
- /**
1546
- * Parameters to create an action button on the folder header
1547
- */
1548
- export type ICollectionTreeFolderHeaderActionParams = {
1549
- title?: LocalizedString;
1550
- tooltip?: BasicTooltipContent;
1551
- enabled?: boolean;
1552
- onClick: (folder: ICollectionTreeFolder) => void;
1553
- };
1554
-
1555
- /**
1556
- * Contains collection folders and entries
1557
- */
1558
- export type ICollectionTreeFolderOptions = {
1559
- uniqueId?: string;
1560
- title?: LocalizedString;
1561
- selected?: boolean;
1562
- expanded?: boolean;
1563
- visible?: boolean;
1564
- removable?: boolean;
1565
- selectable?: boolean;
1566
- userData?: unknown;
1567
- color?: minecraftserver.RGBA;
1568
- action?: ICollectionTreeFolderHeaderActionParams;
1569
- menu?: IMenuCreationParams[];
1570
- onMenuClicked?: (menuId: string, folder: ICollectionTreeFolder) => void;
1571
- onSelectedChange?: (selected: boolean, folder: ICollectionTreeFolder) => void;
1572
- onBeforeRemoved?: (folder: ICollectionTreeFolder) => boolean;
1573
- onBeforeEntryRemoved?: (entry: ICollectionTreeEntry) => boolean;
1574
- };
1575
-
1576
1436
  /**
1577
1437
  * Animation properties for a horizontally laid out sprite
1578
1438
  * sheet image
@@ -1702,15 +1562,6 @@ export type ListPaneImageEntryParams = {
1702
1562
  visible?: boolean;
1703
1563
  };
1704
1564
 
1705
- export declare type ListPaneSlotConfiguration = {
1706
- height: number;
1707
- columns?: number;
1708
- clickable?: boolean;
1709
- outline?: boolean;
1710
- variant?: ListPaneSlotVariant;
1711
- entryLayout: ListPaneSlotLayoutEntry[] | ListPaneSlotLayoutSections;
1712
- };
1713
-
1714
1565
  /**
1715
1566
  * Properties required to create a slot
1716
1567
  */
@@ -1719,17 +1570,20 @@ export type ListPaneSlotCreationProps = {
1719
1570
  options?: IListPaneSlotOptions;
1720
1571
  };
1721
1572
 
1573
+ export declare type ListPaneSlotLayout = {
1574
+ height: number;
1575
+ columns?: number;
1576
+ clickable?: boolean;
1577
+ outline?: boolean;
1578
+ entryLayout: ListPaneSlotLayoutEntry[];
1579
+ };
1580
+
1722
1581
  export declare type ListPaneSlotLayoutEntry = {
1723
1582
  type: ListPaneEntryType;
1724
1583
  size?: number | LayoutSize | LayoutFlex;
1725
1584
  alignment?: LayoutAlignment;
1726
1585
  };
1727
1586
 
1728
- export declare type ListPaneSlotLayoutSections = {
1729
- mainSection: ListPaneSlotLayoutEntry[];
1730
- outerSection: ListPaneSlotLayoutEntry[];
1731
- };
1732
-
1733
1587
  /**
1734
1588
  * List Pane Text entry creation parameter
1735
1589
  */
@@ -1747,23 +1601,6 @@ export declare type ListPaneViewFilter = {
1747
1601
  tags?: string[];
1748
1602
  };
1749
1603
 
1750
- /**
1751
- * Action item to be displayed on a list view control
1752
- */
1753
- export type ListViewControlAction = {
1754
- id: string;
1755
- } & ListViewControlActionState;
1756
-
1757
- /**
1758
- * Action item state for list view control
1759
- */
1760
- export type ListViewControlActionState = {
1761
- label: LocalizedString;
1762
- icon: string;
1763
- disabled?: boolean;
1764
- displayInMenu?: boolean;
1765
- };
1766
-
1767
1604
  /**
1768
1605
  * Represents a localized string or an object with a localized
1769
1606
  * string and optional properties
@@ -2299,53 +2136,11 @@ export declare abstract class BrushShape {
2299
2136
  */
2300
2137
  constructor(_id: string, _displayName: string, _icon: string);
2301
2138
  abstract applySetting(brushSettings: BrushShapeSettings): void;
2302
- /**
2303
- * @remarks
2304
- * Calculates the bounding box of the shape in local
2305
- * coordinates. Used for region allocation before shape
2306
- * placement.
2307
- *
2308
- * @returns
2309
- * Object with min and max Vector3 bounds
2310
- */
2311
- abstract calculateBounds(): minecraftserver.BlockBoundingBox;
2312
2139
  abstract createSettingsPane(
2313
2140
  parentPane: IPropertyPane,
2314
2141
  onSettingsChange?: () => void,
2315
2142
  ): ISubPanePropertyItem | undefined;
2316
2143
  abstract createShape(): RelativeVolumeListBlockVolume;
2317
- /**
2318
- * @remarks
2319
- * Asynchronously creates the shape, yielding control
2320
- * periodically to avoid timeouts. Use this for large shapes
2321
- * where createShape() may timeout.
2322
- *
2323
- * @param cancelToken
2324
- * Optional token to cancel the operation. Set cancelled to
2325
- * true to abort.
2326
- * @param yieldInterval
2327
- * Number of blocks to process before yielding. Default is
2328
- * 10000.
2329
- * @returns
2330
- * Promise that resolves to the shape positions as Vector3
2331
- * array.
2332
- */
2333
- abstract createShapeAsync(
2334
- cancelToken?: {
2335
- cancelled: boolean;
2336
- },
2337
- yieldInterval?: number,
2338
- ): Promise<RelativeVolumeListBlockVolume>;
2339
- /**
2340
- * @remarks
2341
- * Returns a mathematical estimate of the number of blocks in
2342
- * the shape. Used for UI display and validation before shape
2343
- * creation.
2344
- *
2345
- * @returns
2346
- * Estimated block count
2347
- */
2348
- abstract estimateBlockCount(): number;
2349
2144
  abstract getSettings(): BrushShapeSettings;
2350
2145
  }
2351
2146
 
@@ -2681,26 +2476,13 @@ export declare class ConeBrushShape extends BrushShape {
2681
2476
  width?: number;
2682
2477
  height?: number;
2683
2478
  depth?: number;
2684
- maxRadius?: number;
2685
- maxHeight?: number;
2686
2479
  xRotation?: number;
2687
2480
  yRotation?: number;
2688
2481
  zRotation?: number;
2689
- hollow?: boolean;
2690
- thickness?: number;
2691
- enableHollowSettings?: boolean;
2692
2482
  });
2693
2483
  applySetting(brushSettings: ConeBrushShapeSettings): void;
2694
- calculateBounds(): minecraftserver.BlockBoundingBox;
2695
2484
  createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2696
2485
  createShape(): RelativeVolumeListBlockVolume;
2697
- createShapeAsync(
2698
- cancelToken?: {
2699
- cancelled: boolean;
2700
- },
2701
- yieldInterval?: number,
2702
- ): Promise<RelativeVolumeListBlockVolume>;
2703
- estimateBlockCount(): number;
2704
2486
  getSettings(): ConeBrushShapeSettings;
2705
2487
  }
2706
2488
 
@@ -2718,26 +2500,13 @@ export declare class CuboidBrushShape extends BrushShape {
2718
2500
  height?: number;
2719
2501
  depth?: number;
2720
2502
  minLength?: number;
2721
- maxLength?: number;
2722
2503
  xRotation?: number;
2723
2504
  yRotation?: number;
2724
2505
  zRotation?: number;
2725
- hollow?: boolean;
2726
- thickness?: number;
2727
- enableHollowSettings?: boolean;
2728
- hideRotation?: boolean;
2729
2506
  });
2730
2507
  applySetting(brushSettings: CuboidBrushShapeSettings): void;
2731
- calculateBounds(): minecraftserver.BlockBoundingBox;
2732
2508
  createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2733
2509
  createShape(): RelativeVolumeListBlockVolume;
2734
- createShapeAsync(
2735
- cancelToken?: {
2736
- cancelled: boolean;
2737
- },
2738
- yieldInterval?: number,
2739
- ): Promise<RelativeVolumeListBlockVolume>;
2740
- estimateBlockCount(): number;
2741
2510
  getSettings(): CuboidBrushShapeSettings;
2742
2511
  }
2743
2512
 
@@ -3004,27 +2773,14 @@ export declare class CylinderBrushShape extends BrushShape {
3004
2773
  height?: number;
3005
2774
  depth?: number;
3006
2775
  minRadius?: number;
3007
- maxRadius?: number;
3008
- maxHeight?: number;
3009
2776
  xRotation?: number;
3010
2777
  yRotation?: number;
3011
2778
  zRotation?: number;
3012
2779
  hideRotation?: boolean;
3013
- hollow?: boolean;
3014
- thickness?: number;
3015
- enableHollowSettings?: boolean;
3016
2780
  });
3017
2781
  applySetting(brushSettings: CylinderBrushShapeSettings): void;
3018
- calculateBounds(): minecraftserver.BlockBoundingBox;
3019
2782
  createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
3020
2783
  createShape(): RelativeVolumeListBlockVolume;
3021
- createShapeAsync(
3022
- cancelToken?: {
3023
- cancelled: boolean;
3024
- },
3025
- yieldInterval?: number,
3026
- ): Promise<RelativeVolumeListBlockVolume>;
3027
- estimateBlockCount(): number;
3028
2784
  getSettings(): CylinderBrushShapeSettings;
3029
2785
  }
3030
2786
 
@@ -3211,25 +2967,13 @@ export declare class EllipsoidBrushShape extends BrushShape {
3211
2967
  height?: number;
3212
2968
  depth?: number;
3213
2969
  minRadius?: number;
3214
- maxRadius?: number;
3215
2970
  xRotation?: number;
3216
2971
  yRotation?: number;
3217
2972
  zRotation?: number;
3218
- hollow?: boolean;
3219
- thickness?: number;
3220
- enableHollowSettings?: boolean;
3221
2973
  });
3222
2974
  applySetting(brushSettings: EllipsoidBrushShapeSettings): void;
3223
- calculateBounds(): minecraftserver.BlockBoundingBox;
3224
2975
  createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
3225
2976
  createShape(): RelativeVolumeListBlockVolume;
3226
- createShapeAsync(
3227
- cancelToken?: {
3228
- cancelled: boolean;
3229
- },
3230
- yieldInterval?: number,
3231
- ): Promise<RelativeVolumeListBlockVolume>;
3232
- estimateBlockCount(): number;
3233
2977
  getSettings(): EllipsoidBrushShapeSettings;
3234
2978
  }
3235
2979
 
@@ -3738,7 +3482,7 @@ export class MinimapManager {
3738
3482
  *
3739
3483
  * @throws This function can throw errors.
3740
3484
  */
3741
- createMinimap(viewType: MinimapViewType, mapWidth: number, mapHeight: number, dataId?: string): MinimapItem;
3485
+ createMinimap(viewType: MinimapViewType, mapWidth: number, mapHeight: number): MinimapItem;
3742
3486
  /**
3743
3487
  * @remarks
3744
3488
  * Remove an existing minimap instance from the manager using
@@ -3881,8 +3625,6 @@ export class ProbabilityBlockPaletteItem extends IBlockPaletteItem {
3881
3625
  * @remarks
3882
3626
  * This function can't be called in restricted-execution mode.
3883
3627
  *
3884
- * @param weight
3885
- * Bounds: [1, 100]
3886
3628
  * @throws This function can throw errors.
3887
3629
  */
3888
3630
  addBlock(block: minecraftserver.BlockPermutation | minecraftserver.BlockType | string, weight: number): void;
@@ -3918,26 +3660,13 @@ export declare class PyramidBrushShape extends BrushShape {
3918
3660
  width?: number;
3919
3661
  height?: number;
3920
3662
  depth?: number;
3921
- maxSide?: number;
3922
- maxHeight?: number;
3923
3663
  xRotation?: number;
3924
3664
  yRotation?: number;
3925
3665
  zRotation?: number;
3926
- hollow?: boolean;
3927
- thickness?: number;
3928
- enableHollowSettings?: boolean;
3929
3666
  });
3930
3667
  applySetting(brushSettings: PyramidBrushShapeSettings): void;
3931
- calculateBounds(): minecraftserver.BlockBoundingBox;
3932
3668
  createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
3933
3669
  createShape(): RelativeVolumeListBlockVolume;
3934
- createShapeAsync(
3935
- cancelToken?: {
3936
- cancelled: boolean;
3937
- },
3938
- yieldInterval?: number,
3939
- ): Promise<RelativeVolumeListBlockVolume>;
3940
- estimateBlockCount(): number;
3941
3670
  getSettings(): PyramidBrushShapeSettings;
3942
3671
  }
3943
3672
 
@@ -4246,16 +3975,8 @@ export declare class SingleBlockBrushShape extends BrushShape {
4246
3975
  */
4247
3976
  constructor();
4248
3977
  applySetting(_settings: BrushShapeSettings): void;
4249
- calculateBounds(): minecraftserver.BlockBoundingBox;
4250
3978
  createSettingsPane(): undefined;
4251
3979
  createShape(): RelativeVolumeListBlockVolume;
4252
- createShapeAsync(
4253
- _cancelToken?: {
4254
- cancelled: boolean;
4255
- },
4256
- _yieldInterval?: number,
4257
- ): Promise<RelativeVolumeListBlockVolume>;
4258
- estimateBlockCount(): number;
4259
3980
  getSettings(): BrushShapeSettings;
4260
3981
  }
4261
3982
 
@@ -4783,13 +4504,8 @@ export class Widget {
4783
4504
  primitiveType:
4784
4505
  | WidgetComponentRenderPrimitiveTypeAxialSphere
4785
4506
  | WidgetComponentRenderPrimitiveTypeBox
4786
- | WidgetComponentRenderPrimitiveTypeCone
4787
- | WidgetComponentRenderPrimitiveTypeCuboid
4788
- | WidgetComponentRenderPrimitiveTypeCylinder
4789
4507
  | WidgetComponentRenderPrimitiveTypeDisc
4790
- | WidgetComponentRenderPrimitiveTypeEllipsoid
4791
- | WidgetComponentRenderPrimitiveTypeLine
4792
- | WidgetComponentRenderPrimitiveTypePyramid,
4508
+ | WidgetComponentRenderPrimitiveTypeLine,
4793
4509
  options?: WidgetComponentRenderPrimitiveOptions,
4794
4510
  ): WidgetComponentRenderPrimitive;
4795
4511
  /**
@@ -5139,13 +4855,8 @@ export class WidgetComponentRenderPrimitive extends WidgetComponentBase {
5139
4855
  primitive:
5140
4856
  | WidgetComponentRenderPrimitiveTypeAxialSphere
5141
4857
  | WidgetComponentRenderPrimitiveTypeBox
5142
- | WidgetComponentRenderPrimitiveTypeCone
5143
- | WidgetComponentRenderPrimitiveTypeCuboid
5144
- | WidgetComponentRenderPrimitiveTypeCylinder
5145
4858
  | WidgetComponentRenderPrimitiveTypeDisc
5146
- | WidgetComponentRenderPrimitiveTypeEllipsoid
5147
- | WidgetComponentRenderPrimitiveTypeLine
5148
- | WidgetComponentRenderPrimitiveTypePyramid,
4859
+ | WidgetComponentRenderPrimitiveTypeLine,
5149
4860
  ): void;
5150
4861
  }
5151
4862
 
@@ -5207,81 +4918,96 @@ export class WidgetComponentRenderPrimitiveTypeBox extends WidgetComponentRender
5207
4918
  }
5208
4919
 
5209
4920
  // @ts-ignore Class inheritance allowed for native defined classes
5210
- export class WidgetComponentRenderPrimitiveTypeCone extends WidgetComponentRenderPrimitiveTypeBase {
4921
+ export class WidgetComponentRenderPrimitiveTypeDisc extends WidgetComponentRenderPrimitiveTypeBase {
5211
4922
  /**
5212
4923
  * @remarks
5213
4924
  * This property can't be edited in restricted-execution mode.
5214
4925
  *
5215
4926
  */
5216
- alpha?: number;
4927
+ center: minecraftserver.Vector3;
5217
4928
  /**
5218
4929
  * @remarks
5219
4930
  * This property can't be edited in restricted-execution mode.
5220
4931
  *
5221
4932
  */
5222
- center: minecraftserver.Vector3;
4933
+ color: minecraftserver.RGBA;
5223
4934
  /**
5224
4935
  * @remarks
5225
4936
  * This property can't be edited in restricted-execution mode.
5226
4937
  *
5227
4938
  */
5228
- color: minecraftserver.RGBA;
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 {
5229
4945
  /**
5230
4946
  * @remarks
5231
4947
  * This property can't be edited in restricted-execution mode.
5232
4948
  *
5233
4949
  */
5234
- height: number;
4950
+ color: minecraftserver.RGBA;
5235
4951
  /**
5236
4952
  * @remarks
5237
4953
  * This property can't be edited in restricted-execution mode.
5238
4954
  *
5239
4955
  */
5240
- numSegments?: number;
4956
+ end: minecraftserver.Vector3;
5241
4957
  /**
5242
4958
  * @remarks
5243
4959
  * This property can't be edited in restricted-execution mode.
5244
4960
  *
5245
4961
  */
5246
- radiusX: number;
4962
+ start: minecraftserver.Vector3;
4963
+ constructor(start: minecraftserver.Vector3, end: minecraftserver.Vector3, color: minecraftserver.RGBA);
4964
+ }
4965
+
4966
+ // @ts-ignore Class inheritance allowed for native defined classes
4967
+ export class WidgetComponentSpline extends WidgetComponentBase {
4968
+ private constructor();
5247
4969
  /**
5248
4970
  * @remarks
5249
4971
  * This property can't be edited in restricted-execution mode.
5250
4972
  *
5251
4973
  */
5252
- radiusZ: number;
4974
+ splineType: SplineType;
5253
4975
  /**
5254
4976
  * @remarks
5255
- * This property can't be edited in restricted-execution mode.
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}
5256
4984
  *
4985
+ * {@link InvalidWidgetError}
5257
4986
  */
5258
- rotation?: minecraftserver.Vector3;
5259
- constructor(
5260
- center: minecraftserver.Vector3,
5261
- radiusX: number,
5262
- radiusZ: number,
5263
- height: number,
5264
- color: minecraftserver.RGBA,
5265
- numSegments?: number,
5266
- rotation?: minecraftserver.Vector3,
5267
- alpha?: number,
5268
- );
5269
- }
5270
-
5271
- // @ts-ignore Class inheritance allowed for native defined classes
5272
- export class WidgetComponentRenderPrimitiveTypeCuboid extends WidgetComponentRenderPrimitiveTypeBase {
4987
+ getControlPoints(): Widget[];
5273
4988
  /**
5274
4989
  * @remarks
5275
- * This property can't be edited in restricted-execution mode.
4990
+ * This function can't be called in restricted-execution mode.
5276
4991
  *
4992
+ * @throws This function can throw errors.
5277
4993
  */
5278
- alpha?: number;
4994
+ getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
5279
4995
  /**
5280
4996
  * @remarks
5281
- * This property can't be edited in restricted-execution mode.
4997
+ * This function can't be called in restricted-execution mode.
5282
4998
  *
4999
+ * @throws This function can throw errors.
5000
+ *
5001
+ * {@link InvalidWidgetComponentError}
5002
+ *
5003
+ * {@link InvalidWidgetError}
5283
5004
  */
5284
- center: minecraftserver.Vector3;
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();
5285
5011
  /**
5286
5012
  * @remarks
5287
5013
  * This property can't be edited in restricted-execution mode.
@@ -5293,431 +5019,148 @@ export class WidgetComponentRenderPrimitiveTypeCuboid extends WidgetComponentRen
5293
5019
  * This property can't be edited in restricted-execution mode.
5294
5020
  *
5295
5021
  */
5296
- lengthX: number;
5022
+ label: string;
5023
+ }
5024
+
5025
+ // @ts-ignore Class inheritance allowed for native defined classes
5026
+ export class WidgetComponentVolumeOutline extends WidgetComponentBase {
5027
+ private constructor();
5297
5028
  /**
5298
5029
  * @remarks
5299
5030
  * This property can't be edited in restricted-execution mode.
5300
5031
  *
5301
5032
  */
5302
- lengthY: number;
5033
+ highlightHullColor: minecraftserver.RGBA;
5303
5034
  /**
5304
5035
  * @remarks
5305
5036
  * This property can't be edited in restricted-execution mode.
5306
5037
  *
5307
5038
  */
5308
- lengthZ: number;
5039
+ highlightOutlineColor: minecraftserver.RGBA;
5309
5040
  /**
5310
5041
  * @remarks
5311
5042
  * This property can't be edited in restricted-execution mode.
5312
5043
  *
5313
5044
  */
5314
- rotation?: minecraftserver.Vector3;
5315
- constructor(
5316
- center: minecraftserver.Vector3,
5317
- lengthX: number,
5318
- lengthY: number,
5319
- lengthZ: number,
5320
- color: minecraftserver.RGBA,
5321
- rotation?: minecraftserver.Vector3,
5322
- alpha?: number,
5323
- );
5324
- }
5325
-
5326
- // @ts-ignore Class inheritance allowed for native defined classes
5327
- export class WidgetComponentRenderPrimitiveTypeCylinder extends WidgetComponentRenderPrimitiveTypeBase {
5045
+ hullColor: minecraftserver.RGBA;
5328
5046
  /**
5329
5047
  * @remarks
5330
5048
  * This property can't be edited in restricted-execution mode.
5331
5049
  *
5332
5050
  */
5333
- alpha?: number;
5051
+ mirror: minecraftserver.StructureMirrorAxis;
5334
5052
  /**
5335
5053
  * @remarks
5336
5054
  * This property can't be edited in restricted-execution mode.
5337
5055
  *
5338
5056
  */
5339
- center: minecraftserver.Vector3;
5057
+ normalizedOrigin: minecraftserver.Vector3;
5340
5058
  /**
5341
5059
  * @remarks
5342
5060
  * This property can't be edited in restricted-execution mode.
5343
5061
  *
5344
5062
  */
5345
- color: minecraftserver.RGBA;
5063
+ outlineColor: minecraftserver.RGBA;
5346
5064
  /**
5347
5065
  * @remarks
5348
5066
  * This property can't be edited in restricted-execution mode.
5349
5067
  *
5350
5068
  */
5351
- height: number;
5069
+ rotation: minecraftserver.StructureRotation;
5352
5070
  /**
5353
5071
  * @remarks
5354
5072
  * This property can't be edited in restricted-execution mode.
5355
5073
  *
5356
5074
  */
5357
- radiusX: number;
5075
+ showHighlightOutline: boolean;
5358
5076
  /**
5359
5077
  * @remarks
5360
5078
  * This property can't be edited in restricted-execution mode.
5361
5079
  *
5362
5080
  */
5363
- radiusZ: number;
5081
+ showOutline: boolean;
5364
5082
  /**
5365
- * @remarks
5366
- * This property can't be edited in restricted-execution mode.
5083
+ * @throws This property can throw when used.
5367
5084
  *
5085
+ * {@link InvalidWidgetComponentError}
5368
5086
  */
5369
- rotation?: minecraftserver.Vector3;
5370
- constructor(
5371
- center: minecraftserver.Vector3,
5372
- radiusX: number,
5373
- radiusZ: number,
5374
- height: number,
5375
- color: minecraftserver.RGBA,
5376
- rotation?: minecraftserver.Vector3,
5377
- alpha?: number,
5378
- );
5379
- }
5380
-
5381
- // @ts-ignore Class inheritance allowed for native defined classes
5382
- export class WidgetComponentRenderPrimitiveTypeDisc extends WidgetComponentRenderPrimitiveTypeBase {
5087
+ readonly transformedWorldVolume: minecraftserver.BlockVolume;
5383
5088
  /**
5384
5089
  * @remarks
5385
5090
  * This property can't be edited in restricted-execution mode.
5386
5091
  *
5387
5092
  */
5388
- center: minecraftserver.Vector3;
5093
+ volumeOffset: minecraftserver.Vector3;
5389
5094
  /**
5390
5095
  * @remarks
5391
- * This property can't be edited in restricted-execution mode.
5096
+ * This function can't be called in restricted-execution mode.
5097
+ *
5098
+ * @throws This function can throw errors.
5392
5099
  *
5100
+ * {@link InvalidWidgetComponentError}
5393
5101
  */
5394
- color: minecraftserver.RGBA;
5102
+ getVolume(): RelativeVolumeListBlockVolume | undefined;
5395
5103
  /**
5396
5104
  * @remarks
5397
- * This property can't be edited in restricted-execution mode.
5105
+ * This function can't be called in restricted-execution mode.
5106
+ *
5107
+ * @throws This function can throw errors.
5398
5108
  *
5109
+ * {@link InvalidWidgetComponentError}
5399
5110
  */
5400
- radius: number;
5401
- constructor(center: minecraftserver.Vector3, radius: number, color: minecraftserver.RGBA);
5111
+ setVolume(
5112
+ volumeToSet?:
5113
+ | minecraftserver.Vector3[]
5114
+ | minecraftserver.BlockVolume
5115
+ | minecraftserver.BlockVolumeBase
5116
+ | RelativeVolumeListBlockVolume
5117
+ | minecraftserver.Vector3,
5118
+ ): void;
5402
5119
  }
5403
5120
 
5404
- // @ts-ignore Class inheritance allowed for native defined classes
5405
- export class WidgetComponentRenderPrimitiveTypeEllipsoid extends WidgetComponentRenderPrimitiveTypeBase {
5121
+ export class WidgetGroup {
5122
+ private constructor();
5406
5123
  /**
5407
- * @remarks
5408
- * This property can't be edited in restricted-execution mode.
5124
+ * @throws This property can throw when used.
5409
5125
  *
5126
+ * {@link InvalidWidgetGroupError}
5410
5127
  */
5411
- alpha?: number;
5128
+ readonly selectedWidgetCount: number;
5412
5129
  /**
5413
5130
  * @remarks
5414
5131
  * This property can't be edited in restricted-execution mode.
5415
5132
  *
5416
5133
  */
5417
- center: minecraftserver.Vector3;
5134
+ visible: boolean;
5418
5135
  /**
5419
5136
  * @remarks
5420
5137
  * This property can't be edited in restricted-execution mode.
5421
5138
  *
5422
5139
  */
5423
- color: minecraftserver.RGBA;
5140
+ visibleBounds: boolean;
5424
5141
  /**
5425
5142
  * @remarks
5426
- * This property can't be edited in restricted-execution mode.
5143
+ * This function can't be called in restricted-execution mode.
5427
5144
  *
5145
+ * @throws This function can throw errors.
5428
5146
  */
5429
- radii: minecraftserver.Vector3;
5147
+ createWidget(location: minecraftserver.Vector3, options?: WidgetCreateOptions): Widget;
5430
5148
  /**
5431
5149
  * @remarks
5432
- * This property can't be edited in restricted-execution mode.
5150
+ * This function can't be called in restricted-execution mode.
5433
5151
  *
5434
5152
  */
5435
- rotation?: minecraftserver.Vector3;
5436
- constructor(
5437
- center: minecraftserver.Vector3,
5438
- radii: minecraftserver.Vector3,
5439
- color: minecraftserver.RGBA,
5440
- rotation?: minecraftserver.Vector3,
5441
- alpha?: number,
5442
- );
5443
- }
5444
-
5445
- // @ts-ignore Class inheritance allowed for native defined classes
5446
- export class WidgetComponentRenderPrimitiveTypeLine extends WidgetComponentRenderPrimitiveTypeBase {
5153
+ delete(): void;
5447
5154
  /**
5448
5155
  * @remarks
5449
- * This property can't be edited in restricted-execution mode.
5156
+ * This function can't be called in restricted-execution mode.
5450
5157
  *
5158
+ * @throws This function can throw errors.
5451
5159
  */
5452
- color: minecraftserver.RGBA;
5160
+ deleteWidget(widgetToDelete: Widget): void;
5453
5161
  /**
5454
5162
  * @remarks
5455
- * This property can't be edited in restricted-execution mode.
5456
- *
5457
- */
5458
- end: minecraftserver.Vector3;
5459
- /**
5460
- * @remarks
5461
- * This property can't be edited in restricted-execution mode.
5462
- *
5463
- */
5464
- start: minecraftserver.Vector3;
5465
- constructor(start: minecraftserver.Vector3, end: minecraftserver.Vector3, color: minecraftserver.RGBA);
5466
- }
5467
-
5468
- // @ts-ignore Class inheritance allowed for native defined classes
5469
- export class WidgetComponentRenderPrimitiveTypePyramid extends WidgetComponentRenderPrimitiveTypeBase {
5470
- /**
5471
- * @remarks
5472
- * This property can't be edited in restricted-execution mode.
5473
- *
5474
- */
5475
- alpha?: number;
5476
- /**
5477
- * @remarks
5478
- * This property can't be edited in restricted-execution mode.
5479
- *
5480
- */
5481
- center: minecraftserver.Vector3;
5482
- /**
5483
- * @remarks
5484
- * This property can't be edited in restricted-execution mode.
5485
- *
5486
- */
5487
- color: minecraftserver.RGBA;
5488
- /**
5489
- * @remarks
5490
- * This property can't be edited in restricted-execution mode.
5491
- *
5492
- */
5493
- height: number;
5494
- /**
5495
- * @remarks
5496
- * This property can't be edited in restricted-execution mode.
5497
- *
5498
- */
5499
- rotation?: minecraftserver.Vector3;
5500
- /**
5501
- * @remarks
5502
- * This property can't be edited in restricted-execution mode.
5503
- *
5504
- */
5505
- widthX: number;
5506
- /**
5507
- * @remarks
5508
- * This property can't be edited in restricted-execution mode.
5509
- *
5510
- */
5511
- widthZ?: number;
5512
- constructor(
5513
- center: minecraftserver.Vector3,
5514
- widthX: number,
5515
- height: number,
5516
- color: minecraftserver.RGBA,
5517
- widthZ?: number,
5518
- rotation?: minecraftserver.Vector3,
5519
- alpha?: number,
5520
- );
5521
- }
5522
-
5523
- // @ts-ignore Class inheritance allowed for native defined classes
5524
- export class WidgetComponentSpline extends WidgetComponentBase {
5525
- private constructor();
5526
- /**
5527
- * @remarks
5528
- * This property can't be edited in restricted-execution mode.
5529
- *
5530
- */
5531
- splineType: SplineType;
5532
- /**
5533
- * @remarks
5534
- * This function can't be called in restricted-execution mode.
5535
- *
5536
- * @throws This function can throw errors.
5537
- *
5538
- * {@link Error}
5539
- *
5540
- * {@link InvalidWidgetComponentError}
5541
- *
5542
- * {@link InvalidWidgetError}
5543
- */
5544
- getControlPoints(): Widget[];
5545
- /**
5546
- * @remarks
5547
- * This function can't be called in restricted-execution mode.
5548
- *
5549
- * @throws This function can throw errors.
5550
- */
5551
- getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
5552
- /**
5553
- * @remarks
5554
- * This function can't be called in restricted-execution mode.
5555
- *
5556
- * @throws This function can throw errors.
5557
- *
5558
- * {@link InvalidWidgetComponentError}
5559
- *
5560
- * {@link InvalidWidgetError}
5561
- */
5562
- setControlPoints(widgetList: Widget[]): void;
5563
- }
5564
-
5565
- // @ts-ignore Class inheritance allowed for native defined classes
5566
- export class WidgetComponentText extends WidgetComponentBase {
5567
- private constructor();
5568
- /**
5569
- * @remarks
5570
- * This property can't be edited in restricted-execution mode.
5571
- *
5572
- */
5573
- color: minecraftserver.RGBA;
5574
- /**
5575
- * @remarks
5576
- * This property can't be edited in restricted-execution mode.
5577
- *
5578
- */
5579
- label: string;
5580
- }
5581
-
5582
- // @ts-ignore Class inheritance allowed for native defined classes
5583
- export class WidgetComponentVolumeOutline extends WidgetComponentBase {
5584
- private constructor();
5585
- /**
5586
- * @remarks
5587
- * This property can't be edited in restricted-execution mode.
5588
- *
5589
- */
5590
- highlightHullColor: minecraftserver.RGBA;
5591
- /**
5592
- * @remarks
5593
- * This property can't be edited in restricted-execution mode.
5594
- *
5595
- */
5596
- highlightOutlineColor: minecraftserver.RGBA;
5597
- /**
5598
- * @remarks
5599
- * This property can't be edited in restricted-execution mode.
5600
- *
5601
- */
5602
- hullColor: minecraftserver.RGBA;
5603
- /**
5604
- * @remarks
5605
- * This property can't be edited in restricted-execution mode.
5606
- *
5607
- */
5608
- mirror: minecraftserver.StructureMirrorAxis;
5609
- /**
5610
- * @remarks
5611
- * This property can't be edited in restricted-execution mode.
5612
- *
5613
- */
5614
- normalizedOrigin: minecraftserver.Vector3;
5615
- /**
5616
- * @remarks
5617
- * This property can't be edited in restricted-execution mode.
5618
- *
5619
- */
5620
- outlineColor: minecraftserver.RGBA;
5621
- /**
5622
- * @remarks
5623
- * This property can't be edited in restricted-execution mode.
5624
- *
5625
- */
5626
- rotation: minecraftserver.StructureRotation;
5627
- /**
5628
- * @remarks
5629
- * This property can't be edited in restricted-execution mode.
5630
- *
5631
- */
5632
- showHighlightOutline: boolean;
5633
- /**
5634
- * @remarks
5635
- * This property can't be edited in restricted-execution mode.
5636
- *
5637
- */
5638
- showOutline: boolean;
5639
- /**
5640
- * @throws This property can throw when used.
5641
- *
5642
- * {@link InvalidWidgetComponentError}
5643
- */
5644
- readonly transformedWorldVolume: minecraftserver.BlockVolume;
5645
- /**
5646
- * @remarks
5647
- * This property can't be edited in restricted-execution mode.
5648
- *
5649
- */
5650
- volumeOffset: minecraftserver.Vector3;
5651
- /**
5652
- * @remarks
5653
- * This function can't be called in restricted-execution mode.
5654
- *
5655
- * @throws This function can throw errors.
5656
- *
5657
- * {@link InvalidWidgetComponentError}
5658
- */
5659
- getVolume(): RelativeVolumeListBlockVolume | undefined;
5660
- /**
5661
- * @remarks
5662
- * This function can't be called in restricted-execution mode.
5663
- *
5664
- * @throws This function can throw errors.
5665
- *
5666
- * {@link InvalidWidgetComponentError}
5667
- */
5668
- setVolume(
5669
- volumeToSet?:
5670
- | minecraftserver.Vector3[]
5671
- | minecraftserver.BlockVolume
5672
- | minecraftserver.BlockVolumeBase
5673
- | RelativeVolumeListBlockVolume
5674
- | minecraftserver.Vector3,
5675
- ): void;
5676
- }
5677
-
5678
- export class WidgetGroup {
5679
- private constructor();
5680
- /**
5681
- * @throws This property can throw when used.
5682
- *
5683
- * {@link InvalidWidgetGroupError}
5684
- */
5685
- readonly selectedWidgetCount: number;
5686
- /**
5687
- * @remarks
5688
- * This property can't be edited in restricted-execution mode.
5689
- *
5690
- */
5691
- visible: boolean;
5692
- /**
5693
- * @remarks
5694
- * This property can't be edited in restricted-execution mode.
5695
- *
5696
- */
5697
- visibleBounds: boolean;
5698
- /**
5699
- * @remarks
5700
- * This function can't be called in restricted-execution mode.
5701
- *
5702
- * @throws This function can throw errors.
5703
- */
5704
- createWidget(location: minecraftserver.Vector3, options?: WidgetCreateOptions): Widget;
5705
- /**
5706
- * @remarks
5707
- * This function can't be called in restricted-execution mode.
5708
- *
5709
- */
5710
- delete(): void;
5711
- /**
5712
- * @remarks
5713
- * This function can't be called in restricted-execution mode.
5714
- *
5715
- * @throws This function can throw errors.
5716
- */
5717
- deleteWidget(widgetToDelete: Widget): void;
5718
- /**
5719
- * @remarks
5720
- * This function can't be called in restricted-execution mode.
5163
+ * This function can't be called in restricted-execution mode.
5721
5164
  *
5722
5165
  * @throws This function can throw errors.
5723
5166
  *
@@ -5891,9 +5334,7 @@ export interface ClipboardWriteOptions {
5891
5334
  export interface ConeBrushShapeSettings {
5892
5335
  depth: number;
5893
5336
  height: number;
5894
- hollow: boolean;
5895
5337
  radius: number;
5896
- thickness: number;
5897
5338
  uniform: boolean;
5898
5339
  width: number;
5899
5340
  xRotation: number;
@@ -5918,8 +5359,6 @@ export interface ContiguousSelectionProperties {
5918
5359
  export interface CuboidBrushShapeSettings {
5919
5360
  depth: number;
5920
5361
  height: number;
5921
- hollow: boolean;
5922
- thickness: number;
5923
5362
  uniform: boolean;
5924
5363
  width: number;
5925
5364
  xRotation: number;
@@ -6014,9 +5453,7 @@ export interface CursorRay {
6014
5453
  export interface CylinderBrushShapeSettings {
6015
5454
  depth: number;
6016
5455
  height: number;
6017
- hollow: boolean;
6018
5456
  radius: number;
6019
- thickness: number;
6020
5457
  uniform: boolean;
6021
5458
  width: number;
6022
5459
  xRotation: number;
@@ -6039,9 +5476,7 @@ export interface EditorStructureSearchOptions {
6039
5476
  export interface EllipsoidBrushShapeSettings {
6040
5477
  depth: number;
6041
5478
  height: number;
6042
- hollow: boolean;
6043
5479
  radius: number;
6044
- thickness: number;
6045
5480
  uniform: boolean;
6046
5481
  width: number;
6047
5482
  xRotation: number;
@@ -6133,7 +5568,6 @@ export interface GameOptions {
6133
5568
  immediateRespawn?: boolean;
6134
5569
  insomnia?: boolean;
6135
5570
  keepInventory?: boolean;
6136
- keepPlayerData?: boolean;
6137
5571
  lanVisibility?: boolean;
6138
5572
  limitedCrafting?: boolean;
6139
5573
  locatorBar?: boolean;
@@ -6331,665 +5765,258 @@ export interface IBlockTablePropertyItem extends IPropertyItemBase {
6331
5765
  addOrUpdateEntry(block: string | minecraftserver.BlockType, blockInfo: IBlockTableEntryInfo): void;
6332
5766
  /**
6333
5767
  * @remarks
6334
- * Delete entry in the block table, by block name
6335
- *
6336
- * @param block
6337
- * an entry in the block table.
6338
- */
6339
- deleteEntry(block: string): void;
6340
- /**
6341
- * @remarks
6342
- * Read entry from the block table, by block name
6343
- *
6344
- * @param block
6345
- * an entry in the block table.
6346
- */
6347
- getEntry(block: string | minecraftserver.BlockType): IBlockTableEntryInfo | undefined;
6348
- /**
6349
- * @remarks
6350
- * Updates title of the property item.
6351
- *
6352
- * @param title
6353
- * New title.
6354
- */
6355
- setTitle(title: LocalizedString): void;
6356
- /**
6357
- * @remarks
6358
- * Update the block table entries
6359
- *
6360
- * @param entries
6361
- * The new value for the block table.
6362
- */
6363
- updateEntries(entries: Map<string, IBlockTableEntryInfo>): void;
6364
- }
6365
-
6366
- /**
6367
- * Properties of block table item
6368
- */
6369
- // @ts-ignore Class inheritance allowed for native defined classes
6370
- export interface IBlockTablePropertyItemOptions extends IPropertyItemOptionsBase {
6371
- /**
6372
- * @remarks
6373
- * Map of block entries in the block table.
6374
- *
6375
- */
6376
- entries?: Map<string, IBlockTableEntryInfo>;
6377
- /**
6378
- * @remarks
6379
- * If true label text will be hidden. It will be visible by
6380
- * default.
6381
- *
6382
- */
6383
- hiddenLabel?: boolean;
6384
- /**
6385
- * @remarks
6386
- * This callback is called when UI control operation is
6387
- * selected from the UI.
6388
- *
6389
- */
6390
- onOperationClick?: (block: string, operation: BlockTableOperationType) => void;
6391
- /**
6392
- * @remarks
6393
- * Localized title of the property item.
6394
- *
6395
- */
6396
- title?: LocalizedString;
6397
- /**
6398
- * @remarks
6399
- * Tooltip description of the property item.
6400
- *
6401
- */
6402
- tooltip?: LocalizedString;
6403
- }
6404
-
6405
- /**
6406
- * A property item which supports boolean properties
6407
- */
6408
- // @ts-ignore Class inheritance allowed for native defined classes
6409
- export interface IBoolPropertyItem extends IPropertyItemBase {
6410
- /**
6411
- * @remarks
6412
- * Current value of the property item.
6413
- *
6414
- */
6415
- readonly value: boolean;
6416
- /**
6417
- * @remarks
6418
- * Sets title of the property item.
6419
- *
6420
- */
6421
- setTitle(title: LocalizedString | undefined): void;
6422
- /**
6423
- * @remarks
6424
- * Sets tooltip description of the property item.
6425
- *
6426
- */
6427
- setTooltip(tooltip: BasicTooltipContent | undefined): void;
6428
- }
6429
-
6430
- /**
6431
- * Optional properties for Bool property item
6432
- */
6433
- // @ts-ignore Class inheritance allowed for native defined classes
6434
- export interface IBoolPropertyItemOptions extends IPropertyItemOptionsBase {
6435
- /**
6436
- * @remarks
6437
- * Changes checkbox variant to use a custom icon
6438
- *
6439
- */
6440
- checkboxIcon?: string;
6441
- /**
6442
- * @remarks
6443
- * If true label text will be hidden. It will be visible by
6444
- * default.
6445
- *
6446
- */
6447
- hiddenLabel?: boolean;
6448
- /**
6449
- * @remarks
6450
- * This callback is called when UI control value is changed.
6451
- *
6452
- */
6453
- onChange?: (newValue: boolean, oldValue: boolean) => void;
6454
- /**
6455
- * @remarks
6456
- * Localized title of the text item.
6457
- *
6458
- */
6459
- title?: LocalizedString;
6460
- /**
6461
- * @remarks
6462
- * Tooltip description of the property item
6463
- *
6464
- */
6465
- tooltip?: BasicTooltipContent;
6466
- /**
6467
- * @remarks
6468
- * Determines how we display bool as a UI element. If
6469
- * undefined, it will default to Checkbox.
6470
- *
6471
- */
6472
- variant?: BoolPropertyItemVariant;
6473
- }
6474
-
6475
- /**
6476
- * A property item pane which supports multiple buttons
6477
- */
6478
- // @ts-ignore Class inheritance allowed for native defined classes
6479
- export interface IButtonPanePropertyItem extends IPropertyItemBase, IPane {
6480
- /**
6481
- * @remarks
6482
- * Adds a button to the pane and binds the specified action to
6483
- * the button interaction.
6484
- *
6485
- */
6486
- addButton(
6487
- action: ButtonPropertyItemSupportedActionTypes,
6488
- options?: IButtonPropertyItemOptions,
6489
- ): IButtonPropertyItem;
6490
- }
6491
-
6492
- /**
6493
- * Optional properties for Button Pane property item
6494
- */
6495
- export interface IButtonPanePropertyItemOptions {
6496
- /**
6497
- * @remarks
6498
- * Minimum width for each item within the layout. If undefined,
6499
- * it will default to 6.
6500
- *
6501
- */
6502
- itemMinWidth?: number;
6503
- }
6504
-
6505
- /**
6506
- * A property item which supports Button properties
6507
- */
6508
- // @ts-ignore Class inheritance allowed for native defined classes
6509
- export interface IButtonPropertyItem extends IPropertyItemBase {
6510
- /**
6511
- * @remarks
6512
- * Replace action assigned to the button.
6513
- *
6514
- * @param action
6515
- * New action to replace the existing with.
6516
- */
6517
- replaceAction(action: RegisteredAction<NoArgsAction>): void;
6518
- /**
6519
- * @remarks
6520
- * Updates icon of the button.
6521
- *
6522
- * @param icon
6523
- * New button icon.
6524
- */
6525
- setIcon(icon: string | undefined): void;
6526
- /**
6527
- * @remarks
6528
- * Updates title of the button.
6529
- *
6530
- * @param title
6531
- * New button title.
6532
- */
6533
- setTitle(title: LocalizedString | undefined): void;
6534
- /**
6535
- * @remarks
6536
- * Updates tooltip description of the button.
6537
- *
6538
- * @param tooltip
6539
- * New button tooltip.
6540
- */
6541
- setTooltip(tooltip: BasicTooltipContent | undefined): void;
6542
- }
6543
-
6544
- /**
6545
- * Optional properties for Button property item
6546
- */
6547
- // @ts-ignore Class inheritance allowed for native defined classes
6548
- export interface IButtonPropertyItemOptions extends IPropertyItemOptionsBase {
6549
- /**
6550
- * @remarks
6551
- * If true label text will be hidden. It will be visible by
6552
- * default.
6553
- *
6554
- */
6555
- hiddenLabel?: boolean;
6556
- /**
6557
- * @remarks
6558
- * Icon image of the property item.
6559
- *
6560
- */
6561
- icon?: string;
6562
- /**
6563
- * @remarks
6564
- * Shrinks button to icon size if button has an icon.
6565
- *
6566
- */
6567
- shrinkToIcon?: boolean;
6568
- /**
6569
- * @remarks
6570
- * Localized title of the property item.
6571
- *
6572
- */
6573
- title?: LocalizedString;
6574
- /**
6575
- * @remarks
6576
- * Tooltip description of the property item.
6577
- *
6578
- */
6579
- tooltip?: BasicTooltipContent;
6580
- /**
6581
- * @remarks
6582
- * The variant for the button. By default it is Primary.
6583
- *
6584
- */
6585
- variant?: ButtonVariant;
6586
- }
6587
-
6588
- export interface ICollectionTreeEntry {
6589
- /**
6590
- * @remarks
6591
- * Unique identifier for the entry.
6592
- *
6593
- */
6594
- readonly id: string;
6595
- /**
6596
- * @remarks
6597
- * Index of the entry in the folder
6598
- *
6599
- */
6600
- readonly index: number;
6601
- /**
6602
- * @remarks
6603
- * Parent folder of the entry.
6604
- *
6605
- */
6606
- readonly parent: ICollectionTreeFolder;
6607
- /**
6608
- * @remarks
6609
- * Selected state of the entry
6610
- *
6611
- */
6612
- readonly selected: boolean;
6613
- /**
6614
- * @remarks
6615
- * Adds a dropdown item to the entry
6616
- *
6617
- */
6618
- addDropdownItem(params: ICollectionTreeEntryDropdownItemParams): ICollectionTreeEntryDropdownItem;
6619
- /**
6620
- * @remarks
6621
- * Adds a number item to the entry
6622
- *
6623
- */
6624
- addNumberItem(params: ICollectionTreeEntryNumberItemParams): ICollectionTreeEntryNumberItem;
6625
- /**
6626
- * @remarks
6627
- * Adds a string item to the entry
6628
- *
6629
- */
6630
- addStringItem(params: ICollectionTreeEntryStringItemParams): ICollectionTreeEntryStringItem;
6631
- /**
6632
- * @remarks
6633
- * Gets the tree entry item by index
6634
- *
6635
- * @param index
6636
- * Index of the entry item
6637
- */
6638
- getItemByIndex(index: number): ICollectionTreeEntryItem | undefined;
6639
- /**
6640
- * @remarks
6641
- * Set color associated with the entry
6642
- *
6643
- */
6644
- setColor(color: minecraftserver.RGBA | undefined): void;
6645
- /**
6646
- * @remarks
6647
- * Set selected state of the entry.
6648
- *
6649
- * @param selected
6650
- * New selected state
6651
- */
6652
- setSelected(selected: boolean): void;
6653
- }
6654
-
6655
- // @ts-ignore Class inheritance allowed for native defined classes
6656
- export interface ICollectionTreeEntryDropdownItem extends ICollectionTreeEntryItem {
6657
- /**
6658
- * @remarks
6659
- * Value of the entry item.
6660
- *
6661
- */
6662
- readonly value: string;
6663
- /**
6664
- * @remarks
6665
- * Update list of dropdown menu options.
6666
- *
6667
- * @param menuOptions
6668
- * New list of updated menu options
6669
- * @param newValue
6670
- * New value value to use for the dropdown
6671
- */
6672
- updateMenuOptions(menuOptions: ICollectionTreeEntryDropdownItemMenuOption[], newValue?: string): void;
6673
- }
6674
-
6675
- export interface ICollectionTreeEntryItem {
6676
- /**
6677
- * @remarks
6678
- * Enabled state of the entry.
6679
- *
6680
- */
6681
- readonly enabled: boolean;
6682
- /**
6683
- * @remarks
6684
- * Tree entry that owns the item.
6685
- *
6686
- */
6687
- readonly parentEntry: ICollectionTreeEntry;
6688
- /**
6689
- * @remarks
6690
- * Type of the item.
6691
- *
6692
- */
6693
- readonly type: CollectionTreeEntryItemType;
6694
- /**
6695
- * @remarks
6696
- * Visibility state of the entry.
6697
- *
6698
- */
6699
- readonly visible: boolean;
6700
- /**
6701
- * @remarks
6702
- * Updates enabled state of the item.
6703
- *
6704
- * @param enabled
6705
- * New value.
6706
- */
6707
- setEnabled(enabled: boolean): void;
6708
- /**
6709
- * @remarks
6710
- * Updates title of the item.
6711
- *
6712
- * @param title
6713
- * New title.
6714
- */
6715
- setTitle(title: LocalizedString | undefined): void;
6716
- /**
6717
- * @remarks
6718
- * Updates tooltip of the item.
6719
- *
6720
- */
6721
- setTooltip(title: BasicTooltipContent | undefined): void;
6722
- /**
6723
- * @remarks
6724
- * Updates visibility of the item.
6725
- *
6726
- * @param visible
6727
- * New value.
6728
- */
6729
- setVisible(visible: boolean): void;
6730
- }
6731
-
6732
- // @ts-ignore Class inheritance allowed for native defined classes
6733
- export interface ICollectionTreeEntryNumberItem extends ICollectionTreeEntryItem {
6734
- /**
6735
- * @remarks
6736
- * Value of the entry item.
6737
- *
6738
- */
6739
- readonly value: number;
6740
- }
6741
-
6742
- // @ts-ignore Class inheritance allowed for native defined classes
6743
- export interface ICollectionTreeEntryStringItem extends ICollectionTreeEntryItem {
6744
- /**
6745
- * @remarks
6746
- * Value of the entry item.
5768
+ * Delete entry in the block table, by block name
6747
5769
  *
5770
+ * @param block
5771
+ * an entry in the block table.
6748
5772
  */
6749
- readonly value: string;
6750
- }
6751
-
6752
- /**
6753
- * Container for collection items
6754
- */
6755
- export interface ICollectionTreeFolder {
5773
+ deleteEntry(block: string): void;
6756
5774
  /**
6757
5775
  * @remarks
6758
- * Count of the entries
5776
+ * Read entry from the block table, by block name
6759
5777
  *
5778
+ * @param block
5779
+ * an entry in the block table.
6760
5780
  */
6761
- readonly entryCount: number;
5781
+ getEntry(block: string | minecraftserver.BlockType): IBlockTableEntryInfo | undefined;
6762
5782
  /**
6763
5783
  * @remarks
6764
- * Expanded state of the folder
5784
+ * Updates title of the property item.
6765
5785
  *
5786
+ * @param title
5787
+ * New title.
6766
5788
  */
6767
- readonly expanded: boolean;
5789
+ setTitle(title: LocalizedString): void;
6768
5790
  /**
6769
5791
  * @remarks
6770
- * Count of the child folders
5792
+ * Update the block table entries
6771
5793
  *
5794
+ * @param entries
5795
+ * The new value for the block table.
6772
5796
  */
6773
- readonly folderCount: number;
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 {
6774
5805
  /**
6775
5806
  * @remarks
6776
- * Unique identifier of the folder
5807
+ * Map of block entries in the block table.
6777
5808
  *
6778
5809
  */
6779
- readonly id: string;
5810
+ entries?: Map<string, IBlockTableEntryInfo>;
6780
5811
  /**
6781
5812
  * @remarks
6782
- * Parent folder
5813
+ * If true label text will be hidden. It will be visible by
5814
+ * default.
6783
5815
  *
6784
5816
  */
6785
- readonly parent: ICollectionTreeFolder | undefined;
5817
+ hiddenLabel?: boolean;
6786
5818
  /**
6787
5819
  * @remarks
6788
- * Selected state of the folder
5820
+ * This callback is called when UI control operation is
5821
+ * selected from the UI.
6789
5822
  *
6790
5823
  */
6791
- readonly selected: boolean;
5824
+ onOperationClick?: (block: string, operation: BlockTableOperationType) => void;
6792
5825
  /**
6793
5826
  * @remarks
6794
- * Title of the folder
5827
+ * Localized title of the property item.
6795
5828
  *
6796
5829
  */
6797
- readonly title: LocalizedString;
5830
+ title?: LocalizedString;
6798
5831
  /**
6799
5832
  * @remarks
6800
- * User data associated with the folder
5833
+ * Tooltip description of the property item.
6801
5834
  *
6802
5835
  */
6803
- readonly userData: unknown;
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 {
6804
5844
  /**
6805
5845
  * @remarks
6806
- * Adds a new entry to the folder
5846
+ * Current value of the property item.
6807
5847
  *
6808
- * @param options
6809
- * Options to create a folder
6810
5848
  */
6811
- addEntry(options: ICollectionTreeEntryOptions): ICollectionTreeEntry;
5849
+ readonly value: boolean;
6812
5850
  /**
6813
5851
  * @remarks
6814
- * Creates a new child folder
5852
+ * Sets title of the property item.
6815
5853
  *
6816
- * @param options
6817
- * Options to create a folder
6818
5854
  */
6819
- addFolder(options: ICollectionTreeFolderOptions): ICollectionTreeFolder;
5855
+ setTitle(title: LocalizedString | undefined): void;
6820
5856
  /**
6821
5857
  * @remarks
6822
- * Iterates over entries within the folder
5858
+ * Sets tooltip description of the property item.
6823
5859
  *
6824
- * @param callback
6825
- * Returning false will stop the iteration
6826
5860
  */
6827
- forEachEntry(callback: (entry: ICollectionTreeEntry, index: number) => boolean): void;
5861
+ setTooltip(tooltip: BasicTooltipContent | undefined): void;
5862
+ }
5863
+
5864
+ /**
5865
+ * Optional properties for Bool property item
5866
+ */
5867
+ // @ts-ignore Class inheritance allowed for native defined classes
5868
+ export interface IBoolPropertyItemOptions extends IPropertyItemOptionsBase {
6828
5869
  /**
6829
5870
  * @remarks
6830
- * Iterates over the first layer of folders
5871
+ * Changes checkbox variant to use a custom icon
6831
5872
  *
6832
- * @param callback
6833
- * Returning false will stop the iteration
6834
5873
  */
6835
- forEachFolder(callback: (folder: ICollectionTreeFolder) => boolean): void;
5874
+ checkboxIcon?: string;
6836
5875
  /**
6837
5876
  * @remarks
6838
- * Iterates over the first layer of folders
5877
+ * If true label text will be hidden. It will be visible by
5878
+ * default.
6839
5879
  *
6840
- * @param callback
6841
- * Returning false will stop the iteration
6842
5880
  */
6843
- forEachFolder(callback: (folder: ICollectionTreeFolder) => boolean): void;
5881
+ hiddenLabel?: boolean;
6844
5882
  /**
6845
5883
  * @remarks
6846
- * Gets the entry by its unique identifier
5884
+ * This callback is called when UI control value is changed.
6847
5885
  *
6848
- * @param id
6849
- * Identifier of the folder
6850
5886
  */
6851
- getEntryById(id: string): ICollectionTreeEntry | undefined;
5887
+ onChange?: (newValue: boolean, oldValue: boolean) => void;
6852
5888
  /**
6853
5889
  * @remarks
6854
- * Gets the entry at the index
5890
+ * Localized title of the text item.
6855
5891
  *
6856
- * @param index
6857
- * Index of the entry
6858
5892
  */
6859
- getEntryByIndex(index: number): ICollectionTreeEntry | undefined;
5893
+ title?: LocalizedString;
6860
5894
  /**
6861
5895
  * @remarks
6862
- * Find the folder with the id if it exists
5896
+ * Tooltip description of the property item
6863
5897
  *
6864
- * @param id
6865
- * Identifier of the folder
6866
5898
  */
6867
- getFolder(id: string): ICollectionTreeFolder | undefined;
5899
+ tooltip?: BasicTooltipContent;
6868
5900
  /**
6869
5901
  * @remarks
6870
- * Removes the entry by its unique identifier if it exists
5902
+ * Determines how we display bool as a UI element. If
5903
+ * undefined, it will default to Checkbox.
6871
5904
  *
6872
- * @param id
6873
- * Identifier of the folder
6874
5905
  */
6875
- removeEntryById(id: string): boolean;
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 {
6876
5914
  /**
6877
5915
  * @remarks
6878
- * Removes the entry at the index if it exists
5916
+ * Adds a button to the pane and binds the specified action to
5917
+ * the button interaction.
6879
5918
  *
6880
- * @param index
6881
- * Index of the entry
6882
5919
  */
6883
- removeEntryByIndex(index: number): boolean;
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 {
6884
5930
  /**
6885
5931
  * @remarks
6886
- * Set color of the entry.
5932
+ * Minimum width for each item within the layout. If undefined,
5933
+ * it will default to 6.
6887
5934
  *
6888
- * @param color
6889
- * New color state
6890
5935
  */
6891
- setColor(color: minecraftserver.RGBA | undefined): void;
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 {
6892
5944
  /**
6893
5945
  * @remarks
6894
- * Set expanded state of the entry.
5946
+ * Replace action assigned to the button.
6895
5947
  *
6896
- * @param expanded
6897
- * New expanded state
5948
+ * @param action
5949
+ * New action to replace the existing with.
6898
5950
  */
6899
- setExpanded(expanded: boolean): void;
5951
+ replaceAction(action: RegisteredAction<NoArgsAction>): void;
6900
5952
  /**
6901
5953
  * @remarks
6902
- * Updates the header action for the folder
5954
+ * Updates icon of the button.
6903
5955
  *
5956
+ * @param icon
5957
+ * New button icon.
6904
5958
  */
6905
- setHeaderAction(actionParams: ICollectionTreeFolderHeaderActionParams | undefined): void;
5959
+ setIcon(icon: string | undefined): void;
6906
5960
  /**
6907
5961
  * @remarks
6908
- * Set selected state of the entry.
5962
+ * Updates title of the button.
6909
5963
  *
6910
- * @param selected
6911
- * New selected state
5964
+ * @param title
5965
+ * New button title.
6912
5966
  */
6913
- setSelected(selected: boolean): void;
5967
+ setTitle(title: LocalizedString | undefined): void;
6914
5968
  /**
6915
5969
  * @remarks
6916
- * Set title of the entry.
5970
+ * Updates tooltip description of the button.
6917
5971
  *
6918
- * @param title
6919
- * New title state
5972
+ * @param tooltip
5973
+ * New button tooltip.
6920
5974
  */
6921
- setTitle(title: LocalizedString): void;
5975
+ setTooltip(tooltip: BasicTooltipContent | undefined): void;
6922
5976
  }
6923
5977
 
6924
5978
  /**
6925
- * A property item which supports creating nested folders of
6926
- * collection items
5979
+ * Optional properties for Button property item
6927
5980
  */
6928
5981
  // @ts-ignore Class inheritance allowed for native defined classes
6929
- export interface ICollectionTreePropertyItem extends IPropertyItemBase {
6930
- /**
6931
- * @remarks
6932
- * Count of the child folders
6933
- *
6934
- */
6935
- readonly folderCount: number;
6936
- /**
6937
- * @remarks
6938
- * Sort type for the folders.
6939
- *
6940
- */
6941
- readonly viewSortType: CollectionTreeSortType;
5982
+ export interface IButtonPropertyItemOptions extends IPropertyItemOptionsBase {
6942
5983
  /**
6943
5984
  * @remarks
6944
- * Creates a new folder at the root of the collection
5985
+ * If true label text will be hidden. It will be visible by
5986
+ * default.
6945
5987
  *
6946
- * @param options
6947
- * Options to create a folder
6948
5988
  */
6949
- addFolder(options: ICollectionTreeFolderOptions): ICollectionTreeFolder;
5989
+ hiddenLabel?: boolean;
6950
5990
  /**
6951
5991
  * @remarks
6952
- * Iterates over the first layer of folders
5992
+ * Icon image of the property item.
6953
5993
  *
6954
- * @param callback
6955
- * Returning false will stop the iteration
6956
5994
  */
6957
- forEachFolder(callback: (folder: ICollectionTreeFolder) => boolean): void;
5995
+ icon?: string;
6958
5996
  /**
6959
5997
  * @remarks
6960
- * Find the folder with the id if it exists at the root
5998
+ * Shrinks button to icon size if button has an icon.
6961
5999
  *
6962
- * @param id
6963
- * Identifier of the folder
6964
6000
  */
6965
- getFolder(id: string): ICollectionTreeFolder | undefined;
6001
+ shrinkToIcon?: boolean;
6966
6002
  /**
6967
6003
  * @remarks
6968
- * Updates the folder sort type for the whole view
6004
+ * Localized title of the property item.
6969
6005
  *
6970
- * @param sortType
6971
- * New sort type
6972
6006
  */
6973
- setViewSortType(sortType: CollectionTreeSortType | undefined): void;
6974
- }
6975
-
6976
- /**
6977
- * Optional properties for Collection Tree Pane property item
6978
- */
6979
- // @ts-ignore Class inheritance allowed for native defined classes
6980
- export interface ICollectionTreePropertyItemOptions extends IPropertyItemOptionsBase {
6007
+ title?: LocalizedString;
6981
6008
  /**
6982
6009
  * @remarks
6983
- * Localized title of the property item.
6010
+ * Tooltip description of the property item.
6984
6011
  *
6985
6012
  */
6986
- title?: LocalizedString;
6013
+ tooltip?: BasicTooltipContent;
6987
6014
  /**
6988
6015
  * @remarks
6989
- * Custom sort type for folders view.
6016
+ * The variant for the button. By default it is Primary.
6990
6017
  *
6991
6018
  */
6992
- viewSortType?: CollectionTreeSortType;
6019
+ variant?: ButtonVariant;
6993
6020
  }
6994
6021
 
6995
6022
  /**
@@ -7847,12 +6874,6 @@ export interface IListPanePropertyItem extends IPropertyItemBase, IPane {
7847
6874
  *
7848
6875
  */
7849
6876
  readonly slotCount: number;
7850
- /**
7851
- * @remarks
7852
- * View control pane for the list
7853
- *
7854
- */
7855
- readonly viewControlPane: IListPaneViewControlPane | undefined;
7856
6877
  /**
7857
6878
  * @remarks
7858
6879
  * Current sorting type for the pane slots
@@ -7865,14 +6886,6 @@ export interface IListPanePropertyItem extends IPropertyItemBase, IPane {
7865
6886
  *
7866
6887
  */
7867
6888
  addSlot(params: ListPaneSlotCreationProps): IListPaneSlot;
7868
- /**
7869
- * @remarks
7870
- * Creates a pane that displays view and filtering
7871
- * configurations for the list if the parent container supports
7872
- * it.
7873
- *
7874
- */
7875
- buildViewControl(options: IListPaneViewControlPaneOptions): IListPaneViewControlPane;
7876
6889
  /**
7877
6890
  * @remarks
7878
6891
  * Finds the slot with the identifier.
@@ -7946,8 +6959,7 @@ export interface IListPanePropertyItem extends IPropertyItemBase, IPane {
7946
6959
  export interface IListPanePropertyItemOptions extends IPropertyItemOptionsBase {
7947
6960
  /**
7948
6961
  * @remarks
7949
- * Default slots to initialize the list with. If undefined, the
7950
- * list will be empty.
6962
+ * This will be the height of the list withing the pane
7951
6963
  *
7952
6964
  */
7953
6965
  defaultSlots?: ListPaneSlotCreationProps[];
@@ -7960,10 +6972,17 @@ export interface IListPanePropertyItemOptions extends IPropertyItemOptionsBase {
7960
6972
  fixedHeight?: boolean;
7961
6973
  /**
7962
6974
  * @remarks
7963
- * This will be the height of the list within the pane
6975
+ * This will be the height of the list withing the pane
7964
6976
  *
7965
6977
  */
7966
6978
  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;
7967
6986
  /**
7968
6987
  * @remarks
7969
6988
  * This callback is fired whenever a clickable slot is pressed
@@ -7977,14 +6996,6 @@ export interface IListPanePropertyItemOptions extends IPropertyItemOptionsBase {
7977
6996
  *
7978
6997
  */
7979
6998
  onSlotSelectionChange?: (slot: IListPaneSlot, state: boolean) => void;
7980
- /**
7981
- * @remarks
7982
- * Slot configuration for the list. The slot entry layout must
7983
- * be predefined, and using an incorrect layout while creating
7984
- * slots will throw an error.
7985
- *
7986
- */
7987
- slotConfig: ListPaneSlotConfiguration;
7988
6999
  /**
7989
7000
  * @remarks
7990
7001
  * Localized title of the property item.
@@ -8145,120 +7156,9 @@ export interface IListPaneTextEntry extends IListPaneEntry {
8145
7156
  * Updates value of the entry.
8146
7157
  *
8147
7158
  * @param value
8148
- * New value.
8149
- */
8150
- setValue(value: LocalizedString): void;
8151
- }
8152
-
8153
- /**
8154
- * View control for a list pane to manage how slots are
8155
- * displayed
8156
- */
8157
- export interface IListPaneViewControlPane {
8158
- /**
8159
- * @remarks
8160
- * Unique identifier
8161
- *
8162
- */
8163
- readonly id: string;
8164
- /**
8165
- * @remarks
8166
- * Active state of the filter
8167
- *
8168
- */
8169
- readonly isFilterActive: boolean;
8170
- /**
8171
- * @remarks
8172
- * Visible state of the pane
8173
- *
8174
- */
8175
- readonly visible: boolean;
8176
- /**
8177
- * @remarks
8178
- * Returns the state of an existing action
8179
- *
8180
- * @param id
8181
- * Identifier for the action
8182
- */
8183
- getActionState(id: string): ListViewControlActionState | undefined;
8184
- /**
8185
- * @remarks
8186
- * Updates enabled state of the existing action
8187
- *
8188
- * @param id
8189
- * Identifier for the action
8190
- * @param enabled
8191
- * New action enabled state
8192
- */
8193
- setActionEnabledState(id: string, enabled: boolean): void;
8194
- /**
8195
- * @remarks
8196
- * Updates existing actions
8197
- *
8198
- * @param newActions
8199
- * New actions
8200
- */
8201
- setActionStates(newActions: ListViewControlAction[]): void;
8202
- /**
8203
- * @remarks
8204
- * Updates visible state of the pane
8205
- *
8206
- * @param visible
8207
- * New visibility state
8208
- */
8209
- setVisible(visible: boolean): void;
8210
- /**
8211
- * @remarks
8212
- * Updates action item state for the view control
8213
- *
8214
- * @param id
8215
- * Identifier for the action
8216
- * @param newState
8217
- * New action state
8218
- */
8219
- updateActionState(id: string, newState: ListViewControlActionState): void;
8220
- }
8221
-
8222
- export interface IListPaneViewControlPaneOptions {
8223
- /**
8224
- * @remarks
8225
- * Default actions
8226
- *
8227
- */
8228
- actions?: ListViewControlAction[];
8229
- /**
8230
- * @remarks
8231
- * Flags to determine visible filters. If undefined it will be
8232
- * All.
8233
- *
8234
- */
8235
- filterFlags?: ListViewControlFilterFlags;
8236
- /**
8237
- * @remarks
8238
- * This function will be called whenever user clicks an action
8239
- *
8240
- */
8241
- onActionClicked?: (id: string) => void;
8242
- /**
8243
- * @remarks
8244
- * This function will be called whenever the filter is changed
8245
- * by the user
8246
- *
8247
- */
8248
- onFilterChanged?: (visibleSlotIds: string[]) => void;
8249
- /**
8250
- * @remarks
8251
- * Custom sort options. If undefined, list pane sort options
8252
- * will be used.
8253
- *
8254
- */
8255
- sortOptions?: ListPaneViewSortType[];
8256
- /**
8257
- * @remarks
8258
- * Initial visibility state. It undefined, it will be false.
8259
- *
7159
+ * New value.
8260
7160
  */
8261
- visible?: boolean;
7161
+ setValue(value: LocalizedString): void;
8262
7162
  }
8263
7163
 
8264
7164
  export interface IMenu {
@@ -9462,12 +8362,6 @@ export interface IPropertyPane extends IPane {
9462
8362
  *
9463
8363
  */
9464
8364
  addButtonPane(options?: IButtonPanePropertyItemOptions): IButtonPanePropertyItem;
9465
- /**
9466
- * @remarks
9467
- * Adds a tree view for collections with folders and entries.
9468
- *
9469
- */
9470
- addCollectionTree(options: ICollectionTreePropertyItemOptions): ICollectionTreePropertyItem;
9471
8365
  /**
9472
8366
  * @remarks
9473
8367
  * Adds a color picker item to the pane.
@@ -9583,12 +8477,6 @@ export interface IPropertyPane extends IPane {
9583
8477
  *
9584
8478
  */
9585
8479
  addString(value: IObservableProp<string>, options?: IStringPropertyItemOptions): IStringPropertyItem;
9586
- /**
9587
- * @remarks
9588
- * Adds a tag container to the pane.
9589
- *
9590
- */
9591
- addTagContainer(options?: ITagContainerPropertyItemOptions): ITagContainerPropertyItem;
9592
8480
  /**
9593
8481
  * @remarks
9594
8482
  * Adds a multiline Text item to the pane.
@@ -9619,15 +8507,6 @@ export interface IPropertyPane extends IPane {
9619
8507
  value: IObservableProp<minecraftserver.Vector3>,
9620
8508
  options?: IVector3PropertyItemOptions,
9621
8509
  ): IVector3PropertyItem;
9622
- /**
9623
- * @remarks
9624
- * Adds a Vector3 Timeline item to the pane.
9625
- *
9626
- */
9627
- addVector3Timeline(
9628
- value: IObservableProp<number>,
9629
- options?: IVector3TimelinePropertyItemOptions,
9630
- ): IVector3TimelinePropertyItem;
9631
8510
  /**
9632
8511
  * @remarks
9633
8512
  * Begins pane construction for batching property item
@@ -9843,12 +8722,6 @@ export interface IRootPropertyPaneOptions extends IPropertyPaneOptions {
9843
8722
  *
9844
8723
  */
9845
8724
  headerAction?: IRootPropertyPaneHeaderAction;
9846
- /**
9847
- * @remarks
9848
- * Pane icon shown in front of the pane header
9849
- *
9850
- */
9851
- icon?: string;
9852
8725
  }
9853
8726
 
9854
8727
  /**
@@ -9982,13 +8855,6 @@ export interface IStringPropertyItem extends IPropertyItemBase {
9982
8855
  */
9983
8856
  // @ts-ignore Class inheritance allowed for native defined classes
9984
8857
  export interface IStringPropertyItemOptions extends IPropertyItemOptionsBase {
9985
- /**
9986
- * @remarks
9987
- * Shows clear button for the item. If undefined, it will be
9988
- * true.
9989
- *
9990
- */
9991
- hasClearButton?: boolean;
9992
8858
  /**
9993
8859
  * @remarks
9994
8860
  * If true label text will be hidden. If undefined, the label
@@ -10002,12 +8868,6 @@ export interface IStringPropertyItemOptions extends IPropertyItemOptionsBase {
10002
8868
  *
10003
8869
  */
10004
8870
  inlineLabel?: boolean;
10005
- /**
10006
- * @remarks
10007
- * If defined, string will be handled as multiline input.
10008
- *
10009
- */
10010
- multilineHeight?: number;
10011
8871
  /**
10012
8872
  * @remarks
10013
8873
  * This callback is called when UI control value is changed.
@@ -10088,12 +8948,6 @@ export interface ISubPanePropertyItemOptions extends IPropertyPaneOptions {
10088
8948
  *
10089
8949
  */
10090
8950
  hasMargins?: boolean;
10091
- /**
10092
- * @remarks
10093
- * Pane icon shown in front of the pane header
10094
- *
10095
- */
10096
- icon?: string;
10097
8951
  /**
10098
8952
  * @remarks
10099
8953
  * Determines layout of sub pane property items. If undefined,
@@ -10122,133 +8976,6 @@ export interface ISubPanePropertyItemOptions extends IPropertyPaneOptions {
10122
8976
  width?: number | LayoutSize;
10123
8977
  }
10124
8978
 
10125
- /**
10126
- * A property item which supports Tag Container properties
10127
- */
10128
- // @ts-ignore Class inheritance allowed for native defined classes
10129
- export interface ITagContainerPropertyItem extends IPropertyItemBase {
10130
- /**
10131
- * @remarks
10132
- * Current tags value of the property item.
10133
- *
10134
- */
10135
- readonly tags: ReadonlyArray<string>;
10136
- /**
10137
- * @remarks
10138
- * Current tags pool value of the property item.
10139
- *
10140
- */
10141
- readonly tagsPool: ReadonlyArray<string>;
10142
- /**
10143
- * @remarks
10144
- * Adds a tag to the current tags.
10145
- *
10146
- * @param tag
10147
- * Tag to add.
10148
- */
10149
- addTag(tag: string): void;
10150
- /**
10151
- * @remarks
10152
- * Adds a tag to the tags pool.
10153
- *
10154
- * @param tag
10155
- * Tag to add to the pool.
10156
- */
10157
- addTagToPool(tag: string): void;
10158
- /**
10159
- * @remarks
10160
- * Removes a tag from the current tags.
10161
- *
10162
- * @param tag
10163
- * Tag to remove.
10164
- */
10165
- removeTag(tag: string): void;
10166
- /**
10167
- * @remarks
10168
- * Removes a tag from the tags pool.
10169
- *
10170
- * @param tag
10171
- * Tag to remove from the pool.
10172
- */
10173
- removeTagFromPool(tag: string): void;
10174
- /**
10175
- * @remarks
10176
- * Updates all tags.
10177
- *
10178
- * @param tags
10179
- * New tags array.
10180
- */
10181
- setTags(tags: string[] | undefined): void;
10182
- /**
10183
- * @remarks
10184
- * Updates the tags pool.
10185
- *
10186
- * @param tagsPool
10187
- * New tags pool array.
10188
- */
10189
- setTagsPool(tagsPool: string[] | undefined): void;
10190
- /**
10191
- * @remarks
10192
- * Set title of the property item.
10193
- *
10194
- * @param title
10195
- * New title.
10196
- */
10197
- setTitle(title: LocalizedString): void;
10198
- /**
10199
- * @remarks
10200
- * Sets the visual variant of the tag container.
10201
- *
10202
- * @param variant
10203
- * New variant.
10204
- */
10205
- setVariant(variant: TagContainerVariant | undefined): void;
10206
- }
10207
-
10208
- /**
10209
- * Optional properties for Tag Container property item
10210
- */
10211
- // @ts-ignore Class inheritance allowed for native defined classes
10212
- export interface ITagContainerPropertyItemOptions extends IPropertyItemOptionsBase {
10213
- /**
10214
- * @remarks
10215
- * This callback is called when a tag is added.
10216
- *
10217
- */
10218
- onTagAdded?: (tag: string) => void;
10219
- /**
10220
- * @remarks
10221
- * This callback is called when a tag is removed.
10222
- *
10223
- */
10224
- onTagRemoved?: (tag: string) => void;
10225
- /**
10226
- * @remarks
10227
- * Initial tags for the container.
10228
- *
10229
- */
10230
- tags?: string[];
10231
- /**
10232
- * @remarks
10233
- * Available tags pool to select from.
10234
- *
10235
- */
10236
- tagsPool?: string[];
10237
- /**
10238
- * @remarks
10239
- * Localized title of the property item.
10240
- *
10241
- */
10242
- title?: LocalizedString;
10243
- /**
10244
- * @remarks
10245
- * Visual variant of the tag container. If undefined, it will
10246
- * default to Inverted.
10247
- *
10248
- */
10249
- variant?: TagContainerVariant;
10250
- }
10251
-
10252
8979
  /**
10253
8980
  * A property item which supports Text properties
10254
8981
  */
@@ -10650,160 +9377,6 @@ export interface IVector3PropertyItemOptions extends IPropertyItemOptionsBase {
10650
9377
  tooltip?: BasicTooltipContent;
10651
9378
  }
10652
9379
 
10653
- /**
10654
- * A property item which supports Vector3 Timeline properties
10655
- */
10656
- // @ts-ignore Class inheritance allowed for native defined classes
10657
- export interface IVector3TimelinePropertyItem extends IPropertyItemBase {
10658
- /**
10659
- * @remarks
10660
- * Update vector3 timeline entry
10661
- *
10662
- * @param data
10663
- * New vector3 node.
10664
- */
10665
- addNode(data: IVector3TimelinePropertyItemEntry): void;
10666
- /**
10667
- * @remarks
10668
- * Get the list of nodes in the property item.
10669
- *
10670
- */
10671
- getData(): IVector3TimelinePropertyItemEntry[];
10672
- /**
10673
- * @remarks
10674
- * Get time current time value on the slider.
10675
- *
10676
- */
10677
- getTime(): number;
10678
- /**
10679
- * @remarks
10680
- * Remove vector3 node
10681
- *
10682
- * @param data
10683
- * Node to be removed.
10684
- */
10685
- removeNode(data: IVector3TimelinePropertyItemEntry): void;
10686
- /**
10687
- * @remarks
10688
- * Updates data entries value bounds.
10689
- *
10690
- */
10691
- setBounds(bounds: { minValue: number; maxValue: number }): void;
10692
- /**
10693
- * @remarks
10694
- * Set custom decimal precision for the calculations
10695
- *
10696
- */
10697
- setPrecision(precision: number): void;
10698
- /**
10699
- * @remarks
10700
- * Set time line slider value to a new value
10701
- *
10702
- * @param time
10703
- * The new time value.
10704
- */
10705
- setTime(time: number): void;
10706
- /**
10707
- * @remarks
10708
- * Updates title of the property item.
10709
- *
10710
- * @param title
10711
- * New title.
10712
- */
10713
- setTitle(title: LocalizedString): void;
10714
- /**
10715
- * @remarks
10716
- * Update node value
10717
- *
10718
- * @param data
10719
- * Node to be updated.
10720
- */
10721
- updateNode(data: IVector3TimelinePropertyItemEntry): void;
10722
- }
10723
-
10724
- /**
10725
- * Properties of vector3 timeline property item entry
10726
- */
10727
- export interface IVector3TimelinePropertyItemEntry {
10728
- color?: minecraftserver.RGBA;
10729
- id: string;
10730
- time: number;
10731
- value: minecraftserver.Vector3;
10732
- }
10733
-
10734
- /**
10735
- * Optional properties for Vector3 Timeline property item
10736
- */
10737
- // @ts-ignore Class inheritance allowed for native defined classes
10738
- export interface IVector3TimelinePropertyItemOptions extends IPropertyItemOptionsBase {
10739
- /**
10740
- * @remarks
10741
- * The data bounds for the value node property
10742
- *
10743
- */
10744
- bounds?: {
10745
- minValue: number;
10746
- maxValue: number;
10747
- };
10748
- /**
10749
- * @remarks
10750
- * Custom precision for the calculations
10751
- *
10752
- */
10753
- decimalPrecision?: number;
10754
- /**
10755
- * @remarks
10756
- * If true, nodes cannot be added or removed
10757
- *
10758
- */
10759
- disableAddRemoveNodes?: boolean;
10760
- /**
10761
- * @remarks
10762
- * List of nodes entries in the vector3 timeline.
10763
- *
10764
- */
10765
- entries?: IVector3TimelinePropertyItemEntry[];
10766
- /**
10767
- * @remarks
10768
- * True means nodes cannot be dragged or modified
10769
- *
10770
- */
10771
- isGraphReadOnly?: boolean;
10772
- /**
10773
- * @remarks
10774
- * Callback triggered when a new vector3 node is added to the
10775
- * timeline.
10776
- *
10777
- */
10778
- onNodeAdded?: (node: IVector3TimelinePropertyItemEntry) => void;
10779
- /**
10780
- * @remarks
10781
- * Callback triggered when a timeline node's vector3 value
10782
- * changes.
10783
- *
10784
- */
10785
- onNodeChanged?: (node: IVector3TimelinePropertyItemEntry) => void;
10786
- /**
10787
- * @remarks
10788
- * Callback triggered when a vector3 node is removed from the
10789
- * timeline. *
10790
- *
10791
- */
10792
- onNodeRemoved?: (node: IVector3TimelinePropertyItemEntry) => void;
10793
- /**
10794
- * @remarks
10795
- * This callback is called when UI control time is changed.
10796
- *
10797
- */
10798
- onTimeChanged?: (current: number, prev: number) => void;
10799
- /**
10800
- * @remarks
10801
- * Localized title of the property item
10802
- *
10803
- */
10804
- title?: LocalizedString;
10805
- }
10806
-
10807
9380
  export interface LocalizationEntry {
10808
9381
  id: string;
10809
9382
  props?: string[];
@@ -10937,8 +9510,6 @@ export interface ProjectExportOptions {
10937
9510
  export interface PyramidBrushShapeSettings {
10938
9511
  depth: number;
10939
9512
  height: number;
10940
- hollow: boolean;
10941
- thickness: number;
10942
9513
  uniform: boolean;
10943
9514
  width: number;
10944
9515
  xRotation: number;
@@ -11108,11 +9679,6 @@ export class InvalidWidgetGroupError extends Error {
11108
9679
  private constructor();
11109
9680
  }
11110
9681
 
11111
- // @ts-ignore Class inheritance allowed for native defined classes
11112
- export class TransactionManagerNoChangesError extends Error {
11113
- private constructor();
11114
- }
11115
-
11116
9682
  /**
11117
9683
  * @remarks
11118
9684
  * Deserialize anything, defaults to the same behavior as