@minecraft/server-editor 0.1.0-beta.1.21.70-preview.26 → 0.1.0-beta.1.21.80-preview.21

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 (2) hide show
  1. package/index.d.ts +696 -735
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -34,6 +34,7 @@ export declare enum ActionTypes {
34
34
  }
35
35
 
36
36
  export enum Axis {
37
+ None = 0,
37
38
  X = 1,
38
39
  Y = 2,
39
40
  Z = 4,
@@ -117,6 +118,7 @@ export declare enum ContinuousActionState {
117
118
  */
118
119
  export declare enum CoreActionBarItemType {
119
120
  Export = 'editor:actionBarItem:export',
121
+ Fill = 'editor:actionBarItem:fill',
120
122
  Locate = 'editor:actionBarItem:locate',
121
123
  Playtest = 'editor:actionBarItem:playtest',
122
124
  Realms = 'editor:actionBarItem:realms',
@@ -125,6 +127,19 @@ export declare enum CoreActionBarItemType {
125
127
  Undo = 'editor:actionBarItem:undo',
126
128
  }
127
129
 
130
+ /**
131
+ * Core brush shape types
132
+ */
133
+ export declare enum CoreBrushShapeType {
134
+ Cone = 'editor:brushShape:cone',
135
+ Cuboid = 'editor:brushShape:cuboid',
136
+ Cylinder = 'editor:brushShape:cylinder',
137
+ Ellipsoid = 'editor:brushShape:ellipsoid',
138
+ Pyramid = 'editor:brushShape:pyramid',
139
+ SingleBlock = 'editor:brushShape:singleBlock',
140
+ Star = 'editor:brushShape:star',
141
+ }
142
+
128
143
  /**
129
144
  * Predefined top level menus for core editor
130
145
  */
@@ -971,6 +986,7 @@ export enum PaintMode {
971
986
  }
972
987
 
973
988
  export enum Plane {
989
+ None = 0,
974
990
  XY = 1,
975
991
  XZ = 2,
976
992
  YZ = 4,
@@ -1045,6 +1061,15 @@ export declare enum PropertyItemType {
1045
1061
  Vector3 = 'editorUI:Vector3',
1046
1062
  }
1047
1063
 
1064
+ export enum SelectionVolumeEventType {
1065
+ Set = 1,
1066
+ Add = 2,
1067
+ Remove = 3,
1068
+ Translate = 4,
1069
+ Move = 5,
1070
+ Clear = 6,
1071
+ }
1072
+
1048
1073
  /**
1049
1074
  * Define the visibility of the status bar item If the tool
1050
1075
  * does not have an `ISimpleToolPropertyPane` component, then
@@ -1132,12 +1157,15 @@ export enum ThemeSettingsColorKey {
1132
1157
  SecondaryMute = 'SecondaryMute',
1133
1158
  SelectionVolumeBorder = 'SelectionVolumeBorder',
1134
1159
  SelectionVolumeFill = 'SelectionVolumeFill',
1160
+ SelectionVolumeOutlineBorder = 'SelectionVolumeOutlineBorder',
1161
+ SelectionVolumeOutlineFill = 'SelectionVolumeOutlineFill',
1135
1162
  TitleBarBackground = 'TitleBarBackground',
1136
1163
  ViewportOutline = 'ViewportOutline',
1137
1164
  Warning = 'Warning',
1138
1165
  }
1139
1166
 
1140
1167
  export enum WidgetComponentType {
1168
+ BoundingBox = 'BoundingBox',
1141
1169
  Clipboard = 'Clipboard',
1142
1170
  Entity = 'Entity',
1143
1171
  Gizmo = 'Gizmo',
@@ -1145,6 +1173,18 @@ export enum WidgetComponentType {
1145
1173
  RenderPrim = 'RenderPrim',
1146
1174
  Spline = 'Spline',
1147
1175
  Text = 'Text',
1176
+ VolumeOutline = 'VolumeOutline',
1177
+ }
1178
+
1179
+ export enum WidgetGizmoEventType {
1180
+ CornerGrabbed = 'CornerGrabbed',
1181
+ CornerMoved = 'CornerMoved',
1182
+ CornerReleased = 'CornerReleased',
1183
+ OriginActivated = 'OriginActivated',
1184
+ OriginDeactivated = 'OriginDeactivated',
1185
+ OriginGrabbed = 'OriginGrabbed',
1186
+ OriginMoved = 'OriginMoved',
1187
+ OriginReleased = 'OriginReleased',
1148
1188
  }
1149
1189
 
1150
1190
  export enum WidgetGroupSelectionMode {
@@ -1212,16 +1252,6 @@ export type GraphicsSettingsPropertyTypeMap = {
1212
1252
  [GraphicsSettingsProperty.NightVision]?: boolean;
1213
1253
  };
1214
1254
 
1215
- /**
1216
- * A property item which supports Dropdown properties
1217
- */
1218
- export type IDropdownPropertyItem_deprecated<
1219
- T extends Omit<PropertyBag, Prop> & {
1220
- [key in Prop]: number;
1221
- },
1222
- Prop extends keyof T & string,
1223
- > = IPropertyItem<T, Prop> & IDropdownPropertyItemMixIn;
1224
-
1225
1255
  /**
1226
1256
  * Animation properties for a horizontally laid out sprite
1227
1257
  * sheet image
@@ -1270,23 +1300,6 @@ export type IPlayerUISession<PerPlayerStorage = Record<string, never>> = {
1270
1300
  scratchStorage: PerPlayerStorage | undefined;
1271
1301
  };
1272
1302
 
1273
- /**
1274
- * A property item which supports Vector3 properties
1275
- */
1276
- export type IVector3PropertyItem_deprecated<T extends PropertyBag, Prop extends keyof T & string> = IPropertyItem<
1277
- T,
1278
- Prop
1279
- > & {
1280
- updateAxisLimits(limits: {
1281
- minX?: number;
1282
- maxX?: number;
1283
- minY?: number;
1284
- maxY?: number;
1285
- minZ?: number;
1286
- maxZ?: number;
1287
- }): void;
1288
- };
1289
-
1290
1303
  /**
1291
1304
  * Keyboard binding properties.
1292
1305
  */
@@ -1359,17 +1372,6 @@ export type NoArgsAction = {
1359
1372
  readonly onExecute: () => void;
1360
1373
  };
1361
1374
 
1362
- /**
1363
- * Callback to execute when a value of a property item is
1364
- * updated.
1365
- */
1366
- export type OnChangeCallback<T extends PropertyBag, Prop extends keyof T & string> = (
1367
- obj: T,
1368
- property: Prop,
1369
- oldValue: object,
1370
- newValue: object,
1371
- ) => void;
1372
-
1373
1375
  export type PropertyBag = Record<string, unknown>;
1374
1376
 
1375
1377
  /**
@@ -1618,7 +1620,7 @@ export class BlockUtilities {
1618
1620
  * @throws This function can throw errors.
1619
1621
  */
1620
1622
  fillVolume(
1621
- volume: minecraftserver.BlockVolumeBase | minecraftserver.CompoundBlockVolume | Selection,
1623
+ volume: minecraftserver.BlockVolumeBase | minecraftserver.CompoundBlockVolume | RelativeVolumeListBlockVolume,
1622
1624
  block?: minecraftserver.BlockPermutation | minecraftserver.BlockType | string,
1623
1625
  ): void;
1624
1626
  /**
@@ -1627,7 +1629,7 @@ export class BlockUtilities {
1627
1629
  *
1628
1630
  * @throws This function can throw errors.
1629
1631
  *
1630
- * {@link minecraftserver.Error}
1632
+ * {@link Error}
1631
1633
  */
1632
1634
  getContiguousSelection(properties?: ContiguousSelectionProperties): minecraftserver.CompoundBlockVolume;
1633
1635
  /**
@@ -1636,9 +1638,33 @@ export class BlockUtilities {
1636
1638
  *
1637
1639
  * @throws This function can throw errors.
1638
1640
  *
1639
- * {@link minecraftserver.Error}
1641
+ * {@link Error}
1640
1642
  */
1641
1643
  getFacePreviewSelection(properties?: QuickExtrudeProperties): minecraftserver.ListBlockVolume;
1644
+ /**
1645
+ * @remarks
1646
+ * This function can't be called in read-only mode.
1647
+ *
1648
+ */
1649
+ getMaxWorldLocation(): minecraftserver.Vector3;
1650
+ /**
1651
+ * @remarks
1652
+ * This function can't be called in read-only mode.
1653
+ *
1654
+ */
1655
+ getMinWorldLocation(): minecraftserver.Vector3;
1656
+ /**
1657
+ * @remarks
1658
+ * This function can't be called in read-only mode.
1659
+ *
1660
+ */
1661
+ isLocationInWorld(
1662
+ locationOrVolumeOrBounds:
1663
+ | minecraftserver.BlockVolumeBase
1664
+ | minecraftserver.BoundingBox
1665
+ | RelativeVolumeListBlockVolume
1666
+ | minecraftserver.Vector3,
1667
+ ): boolean;
1642
1668
  /**
1643
1669
  * @remarks
1644
1670
  * This function can't be called in read-only mode.
@@ -1646,19 +1672,14 @@ export class BlockUtilities {
1646
1672
  * @throws This function can throw errors.
1647
1673
  */
1648
1674
  quickExtrude(properties?: QuickExtrudeProperties): void;
1649
- }
1650
-
1651
- export class BrushShapeManager {
1652
- private constructor();
1653
- readonly activeBrushShape?: BrushShape;
1654
- readonly activeBrushVolume?: minecraftserver.CompoundBlockVolume;
1655
- readonly brushShapeList: BrushShape[];
1656
1675
  /**
1657
1676
  * @remarks
1658
1677
  * This function can't be called in read-only mode.
1659
1678
  *
1660
1679
  */
1661
- activateBrushTool(): void;
1680
+ shrinkWrapVolume(
1681
+ volume: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
1682
+ ): RelativeVolumeListBlockVolume;
1662
1683
  /**
1663
1684
  * @remarks
1664
1685
  * This function can't be called in read-only mode.
@@ -1667,13 +1688,44 @@ export class BrushShapeManager {
1667
1688
  *
1668
1689
  * {@link Error}
1669
1690
  */
1670
- beginPainting(onComplete: (arg0: PaintCompletionState) => void): void;
1691
+ trimVolumeToFitContents(
1692
+ volume: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
1693
+ retainMarqueeAfterTrimming: boolean,
1694
+ ignoreLiquid: boolean,
1695
+ ignoreNoCollision: boolean,
1696
+ blockMask?: BlockMaskList,
1697
+ ): RelativeVolumeListBlockVolume;
1698
+ }
1699
+
1700
+ /**
1701
+ * Base for creating new brush shapes
1702
+ */
1703
+ export declare abstract class BrushShape {
1704
+ get displayName(): string;
1705
+ get icon(): string;
1706
+ get id(): string;
1707
+ /**
1708
+ * @remarks
1709
+ * Constructs a new instance of the `BrushShape` class
1710
+ *
1711
+ */
1712
+ constructor(_id: string, _displayName: string, _icon: string);
1713
+ abstract createSettingsPane(
1714
+ parentPane: IPropertyPane,
1715
+ onSettingsChange?: () => void,
1716
+ ): ISubPanePropertyItem | undefined;
1717
+ abstract createShape(): RelativeVolumeListBlockVolume;
1718
+ }
1719
+
1720
+ export class BrushShapeManager {
1721
+ private constructor();
1722
+ readonly activeBrushVolume?: RelativeVolumeListBlockVolume;
1671
1723
  /**
1672
1724
  * @remarks
1673
1725
  * This function can't be called in read-only mode.
1674
1726
  *
1675
1727
  */
1676
- deactivateBrushTool(): void;
1728
+ activateBrushTool(): void;
1677
1729
  /**
1678
1730
  * @remarks
1679
1731
  * This function can't be called in read-only mode.
@@ -1682,13 +1734,13 @@ export class BrushShapeManager {
1682
1734
  *
1683
1735
  * {@link Error}
1684
1736
  */
1685
- endPainting(cancelled: boolean): void;
1737
+ beginPainting(onComplete: (arg0: PaintCompletionState) => void): void;
1686
1738
  /**
1687
1739
  * @remarks
1688
1740
  * This function can't be called in read-only mode.
1689
1741
  *
1690
1742
  */
1691
- getBrushShapeOffset(): minecraftserver.Vector3;
1743
+ deactivateBrushTool(): void;
1692
1744
  /**
1693
1745
  * @remarks
1694
1746
  * This function can't be called in read-only mode.
@@ -1697,21 +1749,13 @@ export class BrushShapeManager {
1697
1749
  *
1698
1750
  * {@link Error}
1699
1751
  */
1700
- getSettingsUIElements(brushName: string): SettingsUIElement[];
1752
+ endPainting(cancelled: boolean): void;
1701
1753
  /**
1702
1754
  * @remarks
1703
1755
  * This function can't be called in read-only mode.
1704
1756
  *
1705
- * @throws This function can throw errors.
1706
- *
1707
- * {@link Error}
1708
1757
  */
1709
- registerBrushShape(
1710
- name: string,
1711
- icon: string,
1712
- rebuild: () => minecraftserver.CompoundBlockVolume,
1713
- getSettingsUIElements: () => SettingsUIElement[],
1714
- ): void;
1758
+ getBrushShapeOffset(): minecraftserver.Vector3;
1715
1759
  /**
1716
1760
  * @remarks
1717
1761
  * This function can't be called in read-only mode.
@@ -1726,7 +1770,7 @@ export class BrushShapeManager {
1726
1770
  * This function can't be called in read-only mode.
1727
1771
  *
1728
1772
  */
1729
- setBrushShape(shape: minecraftserver.Vector3[] | minecraftserver.CompoundBlockVolume): void;
1773
+ setBrushShape(shape: minecraftserver.Vector3[] | RelativeVolumeListBlockVolume): void;
1730
1774
  /**
1731
1775
  * @remarks
1732
1776
  * This function can't be called in read-only mode.
@@ -1772,24 +1816,6 @@ export class BrushShapeManager {
1772
1816
  *
1773
1817
  */
1774
1818
  switchBrushPaintMode(paintMode: PaintMode): void;
1775
- /**
1776
- * @remarks
1777
- * This function can't be called in read-only mode.
1778
- *
1779
- * @throws This function can throw errors.
1780
- *
1781
- * {@link minecraftserver.Error}
1782
- */
1783
- switchBrushShape(name: string): minecraftserver.CompoundBlockVolume;
1784
- /**
1785
- * @remarks
1786
- * This function can't be called in read-only mode.
1787
- *
1788
- * @throws This function can throw errors.
1789
- *
1790
- * {@link Error}
1791
- */
1792
- uiSettingValueChanged(elementName: string, newValue: boolean | number | string | minecraftserver.Vector3): boolean;
1793
1819
  }
1794
1820
 
1795
1821
  export class ClipboardChangeAfterEvent {
@@ -1830,9 +1856,9 @@ export class ClipboardItem {
1830
1856
  * @remarks
1831
1857
  * Return whether there is any block content in the item
1832
1858
  *
1833
- * @throws This property can throw when used.
1834
1859
  */
1835
1860
  readonly isEmpty: boolean;
1861
+ readonly size: minecraftserver.Vector3;
1836
1862
  /**
1837
1863
  * @remarks
1838
1864
  * Clear the contents of the item
@@ -1844,87 +1870,21 @@ export class ClipboardItem {
1844
1870
  clear(): void;
1845
1871
  /**
1846
1872
  * @remarks
1847
- * Create a {@link minecraftserver.CompoundBlockVolume}
1848
- * container which represents the occupied block volumes within
1849
- * the ClipboardItem.
1850
- * This function does not perform any write operations, and
1851
- * instead returns only a prediction of the volume area which
1852
- * would be affected as part of a write operation with a given
1853
- * set of write options.
1854
- *
1855
1873
  * This function can't be called in read-only mode.
1856
1874
  *
1857
- * @param location
1858
- * A world location to which the ClipboardItem may potentially
1859
- * be written (nothing is actually written as part of this
1860
- * operation)
1861
- * @param options
1862
- * An optional set of write parameters which govern how the
1863
- * ClipboardItem should be potentially applied to the world
1864
- * @returns
1865
- * A {@link minecraftserver.CompoundBlockVolume} which
1866
- * represents the occupied block volumes within the
1867
- * ClipboardItem as they would be written to the world with the
1868
- * specified {@link ClipboardWriteOptions}
1869
1875
  * @throws This function can throw errors.
1876
+ *
1877
+ * {@link Error}
1870
1878
  */
1871
- getPredictedWriteAsCompoundBlockVolume(
1879
+ getPredictedWriteVolume(
1872
1880
  location: minecraftserver.Vector3,
1873
1881
  options?: ClipboardWriteOptions,
1874
- ): minecraftserver.CompoundBlockVolume;
1875
- /**
1876
- * @remarks
1877
- * Create a {@link Selection} container which represents the
1878
- * occupied block volumes within the ClipboardItem.
1879
- * This function does not perform any write operations, and
1880
- * instead returns only a prediction of the volume area which
1881
- * would be affected as part of a write operation with a given
1882
- * set of write options.
1883
- *
1884
- * This function can't be called in read-only mode.
1885
- *
1886
- * @param location
1887
- * A world location to which the ClipboardItem may potentially
1888
- * be written (nothing is actually written as part of this
1889
- * operation)
1890
- * @param options
1891
- * An optional set of write parameters which govern how the
1892
- * ClipboardItem should be potentially applied to the world
1893
- * @returns
1894
- * A {@link Selection} which represents the occupied block
1895
- * volumes within the ClipboardItem as they would be written to
1896
- * the world with the specified {@link ClipboardWriteOptions}
1897
- * @throws This function can throw errors.
1898
- */
1899
- getPredictedWriteAsSelection(location: minecraftserver.Vector3, options?: ClipboardWriteOptions): Selection;
1900
- /**
1901
- * @remarks
1902
- * Get the bounding size of the ClipboardItem
1903
- *
1904
- * This function can't be called in read-only mode.
1905
- *
1906
- * @throws This function can throw errors.
1907
- */
1908
- getSize(): minecraftserver.Vector3;
1909
- /**
1910
- * @remarks
1911
- * Copy the contents of the area represented by a {@link
1912
- * Selection} volume into the ClipboardItem
1913
- *
1914
- * This function can't be called in read-only mode.
1915
- *
1916
- * @param selection
1917
- * A volume which represents the area to be copied
1918
- * @throws This function can throw errors.
1919
- */
1920
- readFromSelection(selection: Selection): void;
1882
+ ): RelativeVolumeListBlockVolume;
1921
1883
  /**
1922
1884
  * @remarks
1923
1885
  * This function can't be called in read-only mode.
1924
1886
  *
1925
1887
  * @throws This function can throw errors.
1926
- *
1927
- * {@link Error}
1928
1888
  */
1929
1889
  readFromStructure(structure: EditorStructure): void;
1930
1890
  /**
@@ -1934,14 +1894,9 @@ export class ClipboardItem {
1934
1894
  *
1935
1895
  * This function can't be called in read-only mode.
1936
1896
  *
1937
- * @param from
1938
- * The world location of one corner of a bounding volume
1939
- * @param to
1940
- * The world location of the opposite corner of a bounding
1941
- * volume
1942
1897
  * @throws This function can throw errors.
1943
1898
  */
1944
- readFromWorld(from: minecraftserver.Vector3, to: minecraftserver.Vector3): void;
1899
+ readFromWorld(source: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume): void;
1945
1900
  /**
1946
1901
  * @remarks
1947
1902
  * Apply the contents of a ClipboardItem to the world at a
@@ -1961,6 +1916,8 @@ export class ClipboardItem {
1961
1916
  * @returns
1962
1917
  * Success or Failure
1963
1918
  * @throws This function can throw errors.
1919
+ *
1920
+ * {@link Error}
1964
1921
  */
1965
1922
  writeToWorld(location: minecraftserver.Vector3, options?: ClipboardWriteOptions): boolean;
1966
1923
  }
@@ -1996,6 +1953,37 @@ export class ClipboardManager {
1996
1953
  create(): ClipboardItem;
1997
1954
  }
1998
1955
 
1956
+ // @ts-ignore Class inheritance allowed for native defined classes
1957
+ export declare class ConeBrushShape extends BrushShape {
1958
+ /**
1959
+ * @remarks
1960
+ * Constructs a new instance of the `ConeBrushShape` class
1961
+ *
1962
+ */
1963
+ constructor(settings?: { uniform?: boolean; radius?: number; width?: number; height?: number; depth?: number });
1964
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
1965
+ createShape(): RelativeVolumeListBlockVolume;
1966
+ }
1967
+
1968
+ // @ts-ignore Class inheritance allowed for native defined classes
1969
+ export declare class CuboidBrushShape extends BrushShape {
1970
+ /**
1971
+ * @remarks
1972
+ * Constructs a new instance of the `CuboidBrushShape` class
1973
+ *
1974
+ */
1975
+ constructor(settings?: {
1976
+ uniform?: boolean;
1977
+ length?: number;
1978
+ width?: number;
1979
+ height?: number;
1980
+ depth?: number;
1981
+ minLength?: number;
1982
+ });
1983
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
1984
+ createShape(): RelativeVolumeListBlockVolume;
1985
+ }
1986
+
1999
1987
  export class CurrentThemeChangeAfterEvent {
2000
1988
  private constructor();
2001
1989
  readonly id: string;
@@ -2209,6 +2197,32 @@ export class CursorPropertyChangeAfterEventSignal {
2209
2197
  unsubscribe(callback: (arg0: CursorPropertiesChangeAfterEvent) => void): void;
2210
2198
  }
2211
2199
 
2200
+ // @ts-ignore Class inheritance allowed for native defined classes
2201
+ export declare class CylinderBrushShape extends BrushShape {
2202
+ /**
2203
+ * @remarks
2204
+ * Constructs a new instance of the `CylinderBrushShape` class
2205
+ *
2206
+ */
2207
+ constructor(settings?: {
2208
+ uniform?: boolean;
2209
+ radius?: number;
2210
+ width?: number;
2211
+ height?: number;
2212
+ depth?: number;
2213
+ minRadius?: number;
2214
+ });
2215
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2216
+ createShape(): RelativeVolumeListBlockVolume;
2217
+ }
2218
+
2219
+ export class EditorConstants {
2220
+ private constructor();
2221
+ readonly maxSelectionSize: minecraftserver.Vector3;
2222
+ readonly maxStructureOffset: minecraftserver.Vector3;
2223
+ readonly minStructureOffset: minecraftserver.Vector3;
2224
+ }
2225
+
2212
2226
  export class EditorStructureManager {
2213
2227
  private constructor();
2214
2228
  /**
@@ -2248,6 +2262,25 @@ export class EditorStructureManager {
2248
2262
  searchStructures(options?: EditorStructureSearchOptions): EditorStructure[];
2249
2263
  }
2250
2264
 
2265
+ // @ts-ignore Class inheritance allowed for native defined classes
2266
+ export declare class EllipsoidBrushShape extends BrushShape {
2267
+ /**
2268
+ * @remarks
2269
+ * Constructs a new instance of the `EllipsoidBrushShape` class
2270
+ *
2271
+ */
2272
+ constructor(settings?: {
2273
+ uniform?: boolean;
2274
+ radius?: number;
2275
+ width?: number;
2276
+ height?: number;
2277
+ depth?: number;
2278
+ minRadius?: number;
2279
+ });
2280
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2281
+ createShape(): RelativeVolumeListBlockVolume;
2282
+ }
2283
+
2251
2284
  /**
2252
2285
  * Validates observable objects that support string as
2253
2286
  * EntityType
@@ -2477,7 +2510,7 @@ export class ExtensionContextAfterEvents {
2477
2510
  * This property can be read in early-execution mode.
2478
2511
  *
2479
2512
  */
2480
- readonly primarySelectionChange: PrimarySelectionChangeAfterEventSignal;
2513
+ readonly SelectionChange: SelectionChangeAfterEventSignal;
2481
2514
  }
2482
2515
 
2483
2516
  /**
@@ -2626,6 +2659,7 @@ export class Logger {
2626
2659
  */
2627
2660
  export class MinecraftEditor {
2628
2661
  private constructor();
2662
+ readonly constants: EditorConstants;
2629
2663
  /**
2630
2664
  * @remarks
2631
2665
  * A global instance of the log output class object. This is
@@ -2748,31 +2782,6 @@ export class PlaytestManager {
2748
2782
  getPlaytestSessionAvailability(): PlaytestSessionResult;
2749
2783
  }
2750
2784
 
2751
- export class PrimarySelectionChangeAfterEventSignal {
2752
- private constructor();
2753
- /**
2754
- * @remarks
2755
- * This function can't be called in read-only mode.
2756
- *
2757
- * This function can be called in early-execution mode.
2758
- *
2759
- */
2760
- subscribe(callback: (arg0: SelectionEventAfterEvent) => void): (arg0: SelectionEventAfterEvent) => void;
2761
- /**
2762
- * @remarks
2763
- * This function can't be called in read-only mode.
2764
- *
2765
- * This function can be called in early-execution mode.
2766
- *
2767
- */
2768
- unsubscribe(callback: (arg0: SelectionEventAfterEvent) => void): void;
2769
- }
2770
-
2771
- export class PrimarySelectionChangedEvent {
2772
- private constructor();
2773
- readonly volume?: minecraftserver.CompoundBlockVolume;
2774
- }
2775
-
2776
2785
  // @ts-ignore Class inheritance allowed for native defined classes
2777
2786
  export class ProbabilityBlockPaletteItem extends IBlockPaletteItem {
2778
2787
  constructor(displayName?: string);
@@ -2799,251 +2808,217 @@ export class ProbabilityBlockPaletteItem extends IBlockPaletteItem {
2799
2808
  removeBlockAt(index: number): void;
2800
2809
  }
2801
2810
 
2802
- /**
2803
- * The Selection represents a volume in space, which may
2804
- * potentially be made up of one or more block locations.
2805
- * These block locations do not need to be contiguous, and a
2806
- * Selection represent an irregular shape.
2807
- * It's important to note that a Selection is only a
2808
- * representation of the volume shape space - and does NOT
2809
- * represent the actual contents of the space.
2810
- */
2811
- export class Selection {
2812
- private constructor();
2811
+ // @ts-ignore Class inheritance allowed for native defined classes
2812
+ export declare class PyramidBrushShape extends BrushShape {
2813
2813
  /**
2814
2814
  * @remarks
2815
- * Returns a boolean representing whether or not there are any
2816
- * volumes pushed to the selection stack
2815
+ * Constructs a new instance of the `PyramidBrushShape` class
2817
2816
  *
2818
- * @throws This property can throw when used.
2819
2817
  */
2818
+ constructor(settings?: { uniform?: boolean; width?: number; height?: number; depth?: number });
2819
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2820
+ createShape(): RelativeVolumeListBlockVolume;
2821
+ }
2822
+
2823
+ // @ts-ignore Class inheritance allowed for native defined classes
2824
+ export class RelativeVolumeListBlockVolume extends minecraftserver.BlockVolumeBase {
2820
2825
  readonly isEmpty: boolean;
2821
2826
  /**
2822
2827
  * @remarks
2823
- * Set whether or not the selection volume is visible to the
2824
- * client user.
2825
- * NOTE: Use this option carefully - Selection volumes are
2826
- * generally server-only, but marking a volume as visible
2827
- * causes the volume (and all volume operations) to be
2828
- * synchronized with the client game which can potentially
2829
- * generate excessive network traffic.
2830
- *
2831
- *
2832
2828
  * This property can't be edited in read-only mode.
2833
2829
  *
2834
2830
  */
2835
- visible: boolean;
2831
+ origin?: minecraftserver.Vector3;
2832
+ readonly volumeCount: number;
2833
+ constructor(origin?: minecraftserver.Vector3);
2836
2834
  /**
2837
2835
  * @remarks
2838
- * Clear the contents of the Selection
2836
+ * This function can't be called in read-only mode.
2839
2837
  *
2838
+ */
2839
+ add(
2840
+ toAdd:
2841
+ | minecraftserver.Vector3[]
2842
+ | minecraftserver.BlockVolume
2843
+ | minecraftserver.BlockVolumeBase
2844
+ | RelativeVolumeListBlockVolume
2845
+ | minecraftserver.Vector3,
2846
+ ): void;
2847
+ /**
2848
+ * @remarks
2840
2849
  * This function can't be called in read-only mode.
2841
2850
  *
2842
- * @throws This function can throw errors.
2843
2851
  */
2844
2852
  clear(): void;
2845
2853
  /**
2846
2854
  * @remarks
2847
- * Fetch a block iterator which can be used to step across the
2848
- * Selection shape. Each call to the iterator will return the
2849
- * next block location within the Selection bounds which is
2850
- * actually selected.
2851
- * Block iteration is not guaranteed to be contiguous - it is
2852
- * possible to create irregular selection shapes by adding
2853
- * volumes to a selection which may or may not be contiguous or
2854
- * adjacent to other volumes within the selection.
2855
- * The Block iterator will return only selected volume
2856
- * locations
2857
- *
2858
2855
  * This function can't be called in read-only mode.
2859
2856
  *
2860
2857
  */
2861
- getBlockLocationIterator(): minecraftserver.BlockLocationIterator;
2858
+ getVolumeList(): minecraftserver.BlockVolume[];
2859
+ hasAdjacent(location: minecraftserver.Vector3, normalizedOffset: minecraftserver.Vector3): boolean;
2862
2860
  /**
2863
2861
  * @remarks
2864
- * Return a bounding rectangle that contains all of the volumes
2865
- * within the selection (the bounding rectangle does NOT
2866
- * represent the shape of the selection, only the largest
2867
- * rectangle that will fit all of the volumes)
2868
- *
2869
2862
  * This function can't be called in read-only mode.
2870
2863
  *
2871
- * @throws This function can throw errors.
2872
2864
  */
2873
- getBoundingBox(): minecraftserver.BoundingBox;
2865
+ moveTo(location: minecraftserver.Vector3): void;
2874
2866
  /**
2875
2867
  * @remarks
2876
- * Return the color of the on-screen selection container hull
2877
- *
2878
2868
  * This function can't be called in read-only mode.
2879
2869
  *
2880
- * @throws This function can throw errors.
2881
2870
  */
2882
- getFillColor(): minecraftserver.RGBA;
2871
+ remove(
2872
+ toRemove:
2873
+ | minecraftserver.Vector3[]
2874
+ | minecraftserver.BlockVolume
2875
+ | minecraftserver.BlockVolumeBase
2876
+ | RelativeVolumeListBlockVolume
2877
+ | minecraftserver.Vector3,
2878
+ ): void;
2883
2879
  /**
2884
2880
  * @remarks
2885
- * Return the color of the on-screen selection container
2886
- * outline
2887
- *
2888
2881
  * This function can't be called in read-only mode.
2889
2882
  *
2890
- * @throws This function can throw errors.
2891
2883
  */
2892
- getOutlineColor(): minecraftserver.RGBA;
2884
+ set(
2885
+ toSet:
2886
+ | minecraftserver.Vector3[]
2887
+ | minecraftserver.BlockVolume
2888
+ | minecraftserver.BlockVolumeBase
2889
+ | RelativeVolumeListBlockVolume
2890
+ | minecraftserver.Vector3,
2891
+ ): void;
2893
2892
  /**
2894
2893
  * @remarks
2895
- * Get the origin of the CompoundBlockVolume that makes up the
2896
- * block component part of selection
2897
- *
2898
2894
  * This function can't be called in read-only mode.
2899
2895
  *
2900
2896
  */
2901
- getVolumeOrigin(): minecraftserver.Vector3;
2897
+ translate(offset: minecraftserver.Vector3): void;
2898
+ }
2899
+
2900
+ export class SelectionChangeAfterEventSignal {
2901
+ private constructor();
2902
2902
  /**
2903
2903
  * @remarks
2904
- * Translate a selection by a given amount (this causes all of
2905
- * the volumes within the selection to be moved by the
2906
- * specified offset)
2907
- *
2908
2904
  * This function can't be called in read-only mode.
2909
2905
  *
2910
- * @param delta
2911
- * The amount by which to move
2912
- * @returns
2913
- * Return the newly moved position
2914
- * @throws This function can throw errors.
2906
+ * This function can be called in early-execution mode.
2907
+ *
2915
2908
  */
2916
- moveBy(delta: minecraftserver.Vector3): minecraftserver.Vector3;
2909
+ subscribe(callback: (arg0: SelectionEventAfterEvent) => void): (arg0: SelectionEventAfterEvent) => void;
2917
2910
  /**
2918
2911
  * @remarks
2919
- * Move the selection to an absolute world location (causing
2920
- * all of the volumes within the selection to be moved to a
2921
- * location relative to the world location)
2922
- *
2923
2912
  * This function can't be called in read-only mode.
2924
2913
  *
2925
- * @param location
2926
- * The world location to which to relocate the selection
2927
- * @returns
2928
- * Return the newly moved position
2929
- * @throws This function can throw errors.
2914
+ * This function can be called in early-execution mode.
2915
+ *
2930
2916
  */
2931
- moveTo(location: minecraftserver.Vector3): minecraftserver.Vector3;
2917
+ unsubscribe(callback: (arg0: SelectionEventAfterEvent) => void): void;
2918
+ }
2919
+
2920
+ export class SelectionContainerBase {
2921
+ private constructor();
2922
+ }
2923
+
2924
+ // @ts-ignore Class inheritance allowed for native defined classes
2925
+ export class SelectionContainerEntity extends SelectionContainerBase {
2926
+ private constructor();
2927
+ }
2928
+
2929
+ // @ts-ignore Class inheritance allowed for native defined classes
2930
+ export class SelectionContainerVolume extends SelectionContainerBase {
2931
+ private constructor();
2932
+ readonly isEmpty: boolean;
2933
+ readonly volumeCount: number;
2932
2934
  /**
2933
2935
  * @remarks
2934
- * Fetch the volume information of the last compound volume
2935
- * that was pushed to the volume stack without affecting the
2936
- * stack itself
2937
- *
2938
2936
  * This function can't be called in read-only mode.
2939
2937
  *
2940
- * @param forceRelativity
2941
- * See the description for {@link
2942
- * minecraftserver.CompoundBlockVolume.peekLastVolume}
2943
- * @returns
2944
- * Returns undefined if the stack is empty
2945
2938
  */
2946
- peekLastVolume(
2947
- forceRelativity?: minecraftserver.CompoundBlockVolumePositionRelativity,
2948
- ): minecraftserver.CompoundBlockVolumeItem | undefined;
2939
+ add(
2940
+ volume:
2941
+ | minecraftserver.Vector3[]
2942
+ | minecraftserver.BlockVolume
2943
+ | minecraftserver.BlockVolumeBase
2944
+ | RelativeVolumeListBlockVolume
2945
+ | minecraftserver.Vector3,
2946
+ ): void;
2949
2947
  /**
2950
2948
  * @remarks
2951
- * Remove the volume information that was last pushed to the
2952
- * volume stack. This will reduce the stack item length by 1
2953
- *
2954
2949
  * This function can't be called in read-only mode.
2955
2950
  *
2951
+ */
2952
+ clear(): void;
2953
+ get(): RelativeVolumeListBlockVolume;
2954
+ /**
2956
2955
  * @throws This function can throw errors.
2956
+ *
2957
+ * {@link Error}
2957
2958
  */
2958
- popVolume(): void;
2959
+ getBoundingBox(): minecraftserver.BoundingBox;
2959
2960
  /**
2960
2961
  * @remarks
2961
- * Push a compound volume item (a volume and action pair) to
2962
- * the volume stack.
2963
- *
2964
2962
  * This function can't be called in read-only mode.
2965
2963
  *
2966
- * @param item
2967
- * Item to push to the stack
2968
- * @throws This function can throw errors.
2969
2964
  */
2970
- pushVolume(item: minecraftserver.CompoundBlockVolumeItem): void;
2965
+ moveTo(location: minecraftserver.Vector3): void;
2971
2966
  /**
2972
2967
  * @remarks
2973
- * Replace the contents of the current selection with a new
2974
- * specified selection. This operation will delete the current
2975
- * contents and copy the contents of the new selection to the
2976
- * target selection - it does this by content, not by
2977
- * reference.
2978
- *
2979
2968
  * This function can't be called in read-only mode.
2980
2969
  *
2981
- * @param other
2982
- * {@link minecraftserver.CompoundBlockVolume} - set the block
2983
- * component part of this selection to the specified compound
2984
- * block volume. This will completely replace all block volume
2985
- * definitions in the selection.
2986
- * {@link Selection} - replace the selection with the specified
2987
- * selection
2988
- * @throws This function can throw errors.
2989
2970
  */
2990
- set(other: minecraftserver.CompoundBlockVolume | Selection): void;
2971
+ remove(
2972
+ volume:
2973
+ | minecraftserver.Vector3[]
2974
+ | minecraftserver.BlockVolume
2975
+ | minecraftserver.BlockVolumeBase
2976
+ | RelativeVolumeListBlockVolume
2977
+ | minecraftserver.Vector3,
2978
+ ): void;
2991
2979
  /**
2992
2980
  * @remarks
2993
- * Set the color of the hull of the selection object if it is
2994
- * visible.
2995
- *
2996
2981
  * This function can't be called in read-only mode.
2997
2982
  *
2998
- * @throws This function can throw errors.
2999
2983
  */
3000
- setFillColor(color: minecraftserver.RGBA): void;
2984
+ set(
2985
+ volume:
2986
+ | minecraftserver.Vector3[]
2987
+ | minecraftserver.BlockVolume
2988
+ | minecraftserver.BlockVolumeBase
2989
+ | RelativeVolumeListBlockVolume
2990
+ | minecraftserver.Vector3,
2991
+ ): void;
3001
2992
  /**
3002
2993
  * @remarks
3003
- * Set the color of the outline around the selection object if
3004
- * it is visible
3005
- *
3006
2994
  * This function can't be called in read-only mode.
3007
2995
  *
3008
- * @throws This function can throw errors.
3009
2996
  */
3010
- setOutlineColor(color: minecraftserver.RGBA): void;
2997
+ translate(offset: minecraftserver.Vector3): void;
2998
+ }
2999
+
3000
+ export class SelectionContainerVolumeEvent {
3001
+ private constructor();
3002
+ readonly 'type': SelectionVolumeEventType;
3011
3003
  }
3012
3004
 
3013
3005
  export class SelectionEventAfterEvent {
3014
3006
  private constructor();
3015
- readonly selectionEvent: PrimarySelectionChangedEvent;
3007
+ readonly volumeEventData?: SelectionContainerVolumeEvent;
3016
3008
  }
3017
3009
 
3018
3010
  /**
3019
3011
  * The SelectionManager (accessible from the {@link
3020
3012
  * ExtensionContext}) is responsible for the management of all
3021
- * {@link Selection} objects, and provides the user the ability
3022
- * to create new {@link Selection} objects for use within an
3023
- * extension.
3013
+ * {@link @minecraft/server-editor.Selection} objects, and
3014
+ * provides the user the ability to create new {@link
3015
+ * @minecraft/server-editor.Selection} objects for use within
3016
+ * an extension.
3024
3017
  */
3025
3018
  export class SelectionManager {
3026
3019
  private constructor();
3027
- /**
3028
- * @remarks
3029
- * The primary {@link Selection} object is always present (even
3030
- * if it's empty) and cannot be deleted. This object
3031
- * represents the main selection object which is always
3032
- * accessible through the UI, and by default is synchronized
3033
- * between the client and server.
3034
- *
3035
- * @throws This property can throw when used.
3036
- */
3037
- readonly selection: Selection;
3038
- /**
3039
- * @remarks
3040
- * Create a new, empty {@link Selection} object
3041
- *
3042
- * This function can't be called in read-only mode.
3043
- *
3044
- * @throws This function can throw errors.
3045
- */
3046
- create(): Selection;
3020
+ readonly entity: SelectionContainerEntity;
3021
+ readonly volume: SelectionContainerVolume;
3047
3022
  }
3048
3023
 
3049
3024
  /**
@@ -3063,19 +3038,6 @@ export class SettingsManager {
3063
3038
  readonly theme: ThemeSettings;
3064
3039
  }
3065
3040
 
3066
- export class SettingsUIElement {
3067
- readonly initialValue: boolean | number | string | minecraftserver.Vector3;
3068
- readonly name: string;
3069
- readonly onChange: (arg0: boolean | number | string | minecraftserver.Vector3) => void;
3070
- readonly options: SettingsUIElementOptions;
3071
- constructor(
3072
- name: string,
3073
- initialValue: boolean | number | string | minecraftserver.Vector3,
3074
- onChange: (arg0: boolean | number | string | minecraftserver.Vector3) => void,
3075
- options?: SettingsUIElementOptions,
3076
- );
3077
- }
3078
-
3079
3041
  // @ts-ignore Class inheritance allowed for native defined classes
3080
3042
  export class SimpleBlockPaletteItem extends IBlockPaletteItem {
3081
3043
  constructor(displayName?: string);
@@ -3146,6 +3108,19 @@ export class SimulationState {
3146
3108
  setPaused(isPaused: boolean): void;
3147
3109
  }
3148
3110
 
3111
+ // @ts-ignore Class inheritance allowed for native defined classes
3112
+ export declare class SingleBlockBrushShape extends BrushShape {
3113
+ /**
3114
+ * @remarks
3115
+ * Constructs a new instance of the `SingleBlockBrushShape`
3116
+ * class
3117
+ *
3118
+ */
3119
+ constructor();
3120
+ createSettingsPane(): undefined;
3121
+ createShape(): RelativeVolumeListBlockVolume;
3122
+ }
3123
+
3149
3124
  export class SpeedSettings {
3150
3125
  private constructor();
3151
3126
  get<T extends keyof SpeedSettingsPropertyTypeMap>(property: T): SpeedSettingsPropertyTypeMap[T] | undefined;
@@ -3381,23 +3356,6 @@ export class TransactionManager {
3381
3356
  * @throws This function can throw errors.
3382
3357
  */
3383
3358
  trackBlockChangeArea(from: minecraftserver.Vector3, to: minecraftserver.Vector3): boolean;
3384
- /**
3385
- * @remarks
3386
- * Begin tracking block changes in an area defined by a {@link
3387
- * minecraftserver.CompoundBlockVolume}. These will be added
3388
- * to a pending changes list.
3389
- * The pending list will be added to the open transaction
3390
- * record when a commit has been issued.
3391
- *
3392
- * This function can't be called in read-only mode.
3393
- *
3394
- * @param compoundBlockVolume
3395
- * {@link minecraftserver.CompoundBlockVolume} to track. Only
3396
- * non-void block locations will be tracked -- any changes
3397
- * falling into a void/negative space will not be tracked
3398
- * @throws This function can throw errors.
3399
- */
3400
- trackBlockChangeCompoundBlockVolume(compoundBlockVolume: minecraftserver.CompoundBlockVolume): boolean;
3401
3359
  /**
3402
3360
  * @remarks
3403
3361
  * Begin tracking block changes in a list of specified block
@@ -3412,28 +3370,11 @@ export class TransactionManager {
3412
3370
  trackBlockChangeList(locations: minecraftserver.Vector3[]): boolean;
3413
3371
  /**
3414
3372
  * @remarks
3415
- * Begin tracking block changes that may happen in a selection
3416
- * volume.
3417
- * The volume is copied, so tracking will not move if the
3418
- * selection volume is translated after this instruction is
3419
- * issued.
3420
- * Selection Volumes can also represent irregular shapes with
3421
- * non-contiguous blocks and this tracking call will honor the
3422
- * actual selected areas in the volume (and not the negative
3423
- * space) (see {@link minecraftserver.CompoundBlockVolume} for
3424
- * more details
3425
- *
3426
3373
  * This function can't be called in read-only mode.
3427
3374
  *
3428
- * @param selection
3429
- * A collection of block location volumes represented by a
3430
- * Selection volume to monitor for changes.
3431
- * The Selection Volume is copied, so further changes to the
3432
- * volume after this call will not be reflected in the tracking
3433
- * list.
3434
3375
  * @throws This function can throw errors.
3435
3376
  */
3436
- trackBlockChangeSelection(selection: Selection): boolean;
3377
+ trackBlockChangeVolume(blockVolume: minecraftserver.BlockVolumeBase): boolean;
3437
3378
  /**
3438
3379
  * @remarks
3439
3380
  * Perform an undo operation. This will take the last
@@ -3564,6 +3505,12 @@ export class Widget {
3564
3505
  *
3565
3506
  */
3566
3507
  collisionRadius: number;
3508
+ /**
3509
+ * @throws This property can throw when used.
3510
+ *
3511
+ * {@link InvalidWidgetError}
3512
+ */
3513
+ readonly group: WidgetGroup;
3567
3514
  /**
3568
3515
  * @remarks
3569
3516
  * This property can't be edited in read-only mode.
@@ -3592,6 +3539,22 @@ export class Widget {
3592
3539
  */
3593
3540
  snapToBlockLocation: boolean;
3594
3541
  visible: boolean;
3542
+ readonly widgetName: string;
3543
+ /**
3544
+ * @remarks
3545
+ * This function can't be called in read-only mode.
3546
+ *
3547
+ * @throws This function can throw errors.
3548
+ *
3549
+ * {@link Error}
3550
+ *
3551
+ * {@link InvalidWidgetError}
3552
+ */
3553
+ addBoundingBox(
3554
+ componentName: string,
3555
+ size: minecraftserver.Vector3,
3556
+ options?: WidgetComponentBoundingBoxOptions,
3557
+ ): WidgetComponentBoundingBox;
3595
3558
  /**
3596
3559
  * @remarks
3597
3560
  * This function can't be called in read-only mode.
@@ -3685,6 +3648,21 @@ export class Widget {
3685
3648
  * {@link InvalidWidgetError}
3686
3649
  */
3687
3650
  addTextComponent(componentName: string, label: string, options?: WidgetComponentTextOptions): WidgetComponentText;
3651
+ /**
3652
+ * @remarks
3653
+ * This function can't be called in read-only mode.
3654
+ *
3655
+ * @throws This function can throw errors.
3656
+ *
3657
+ * {@link Error}
3658
+ *
3659
+ * {@link InvalidWidgetError}
3660
+ */
3661
+ addVolumeOutline(
3662
+ componentName: string,
3663
+ volume?: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
3664
+ options?: WidgetComponentVolumeOutlineOptions,
3665
+ ): WidgetComponentVolumeOutline;
3688
3666
  /**
3689
3667
  * @remarks
3690
3668
  * This function can't be called in read-only mode.
@@ -3753,7 +3731,7 @@ export class WidgetComponentBase {
3753
3731
  /**
3754
3732
  * @throws This property can throw when used.
3755
3733
  *
3756
- * {@link minecraftserver.InvalidWidgetComponentError}
3734
+ * {@link InvalidWidgetComponentError}
3757
3735
  */
3758
3736
  readonly location: minecraftserver.Vector3;
3759
3737
  /**
@@ -3791,6 +3769,86 @@ export class WidgetComponentBase {
3791
3769
  * {@link InvalidWidgetComponentError}
3792
3770
  */
3793
3771
  delete(): void;
3772
+ }
3773
+
3774
+ // @ts-ignore Class inheritance allowed for native defined classes
3775
+ export class WidgetComponentBoundingBox extends WidgetComponentBase {
3776
+ private constructor();
3777
+ /**
3778
+ * @remarks
3779
+ * This property can't be edited in read-only mode.
3780
+ *
3781
+ */
3782
+ boundsOffset: minecraftserver.Vector3;
3783
+ /**
3784
+ * @remarks
3785
+ * This property can't be edited in read-only mode.
3786
+ *
3787
+ */
3788
+ enableResizeHandles: Axis;
3789
+ /**
3790
+ * @remarks
3791
+ * This property can't be edited in read-only mode.
3792
+ *
3793
+ */
3794
+ hullColor: minecraftserver.RGBA;
3795
+ /**
3796
+ * @remarks
3797
+ * This property can't be edited in read-only mode.
3798
+ *
3799
+ */
3800
+ mirror: minecraftserver.StructureMirrorAxis;
3801
+ /**
3802
+ * @remarks
3803
+ * This property can't be edited in read-only mode.
3804
+ *
3805
+ */
3806
+ normalizedOrigin: minecraftserver.Vector3;
3807
+ /**
3808
+ * @remarks
3809
+ * This property can't be edited in read-only mode.
3810
+ *
3811
+ */
3812
+ outlineColor: minecraftserver.RGBA;
3813
+ /**
3814
+ * @remarks
3815
+ * This property can't be edited in read-only mode.
3816
+ *
3817
+ */
3818
+ rotation: minecraftserver.StructureRotation;
3819
+ /**
3820
+ * @remarks
3821
+ * This property can't be edited in read-only mode.
3822
+ *
3823
+ */
3824
+ showWorldIntersections: boolean;
3825
+ /**
3826
+ * @remarks
3827
+ * This property can't be edited in read-only mode.
3828
+ *
3829
+ */
3830
+ size: minecraftserver.Vector3;
3831
+ /**
3832
+ * @throws This property can throw when used.
3833
+ *
3834
+ * {@link InvalidWidgetComponentError}
3835
+ */
3836
+ readonly transformedWorldVolume: minecraftserver.BlockVolume;
3837
+ /**
3838
+ * @remarks
3839
+ * This property can't be edited in read-only mode.
3840
+ *
3841
+ */
3842
+ visibleHull: boolean;
3843
+ /**
3844
+ * @remarks
3845
+ * This function can't be called in read-only mode.
3846
+ *
3847
+ * @throws This function can throw errors.
3848
+ *
3849
+ * {@link InvalidWidgetComponentError}
3850
+ */
3851
+ deactivateHandles(): void;
3794
3852
  /**
3795
3853
  * @remarks
3796
3854
  * This function can't be called in read-only mode.
@@ -3799,19 +3857,35 @@ export class WidgetComponentBase {
3799
3857
  *
3800
3858
  * {@link InvalidWidgetComponentError}
3801
3859
  */
3802
- setStateChangeEvent(eventFunction?: (arg0: WidgetComponentStateChangeEventData) => void): void;
3860
+ setStateChangeEvent(eventFunction?: (arg0: WidgetComponentBoundingBoxStateChangeEventParameters) => void): void;
3861
+ }
3862
+
3863
+ export class WidgetComponentBoundingBoxStateChangeEventParameters {
3864
+ private constructor();
3865
+ readonly boundsOffset?: minecraftserver.Vector3;
3866
+ readonly boundsSize?: minecraftserver.Vector3;
3867
+ readonly component: WidgetComponentBoundingBox;
3868
+ readonly eventType: WidgetGizmoEventType;
3869
+ readonly widget: Widget;
3803
3870
  }
3804
3871
 
3805
3872
  // @ts-ignore Class inheritance allowed for native defined classes
3806
3873
  export class WidgetComponentClipboard extends WidgetComponentBase {
3807
3874
  private constructor();
3808
- clipboardMirror: minecraftserver.StructureMirrorAxis;
3809
- clipboardNormalizedOrigin: minecraftserver.Vector3;
3875
+ /**
3876
+ * @remarks
3877
+ * This property can't be edited in read-only mode.
3878
+ *
3879
+ */
3810
3880
  clipboardOffset: minecraftserver.Vector3;
3811
- clipboardRotation: minecraftserver.StructureRotation;
3812
- fillColor: minecraftserver.RGBA;
3881
+ highlightHullColor: minecraftserver.RGBA;
3882
+ highlightOutlineColor: minecraftserver.RGBA;
3883
+ hullColor: minecraftserver.RGBA;
3884
+ mirror: minecraftserver.StructureMirrorAxis;
3885
+ normalizedOrigin: minecraftserver.Vector3;
3813
3886
  outlineColor: minecraftserver.RGBA;
3814
- showBounds: boolean;
3887
+ rotation: minecraftserver.StructureRotation;
3888
+ showOutline: boolean;
3815
3889
  }
3816
3890
 
3817
3891
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -3838,6 +3912,34 @@ export class WidgetComponentEntity extends WidgetComponentBase {
3838
3912
  export class WidgetComponentGizmo extends WidgetComponentBase {
3839
3913
  private constructor();
3840
3914
  activated: boolean;
3915
+ /**
3916
+ * @remarks
3917
+ * This property can't be edited in read-only mode.
3918
+ *
3919
+ */
3920
+ enabledAxes: Axis;
3921
+ /**
3922
+ * @remarks
3923
+ * This property can't be edited in read-only mode.
3924
+ *
3925
+ */
3926
+ normalizedOffsetOverride?: minecraftserver.Vector3;
3927
+ /**
3928
+ * @remarks
3929
+ * This function can't be called in read-only mode.
3930
+ *
3931
+ * @throws This function can throw errors.
3932
+ *
3933
+ * {@link InvalidWidgetComponentError}
3934
+ */
3935
+ setStateChangeEvent(eventFunction?: (arg0: WidgetComponentGizmoStateChangeEventParameters) => void): void;
3936
+ }
3937
+
3938
+ export class WidgetComponentGizmoStateChangeEventParameters {
3939
+ private constructor();
3940
+ readonly component: WidgetComponentGizmo;
3941
+ readonly eventType?: WidgetGizmoEventType;
3942
+ readonly widget: Widget;
3841
3943
  }
3842
3944
 
3843
3945
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -3956,57 +4058,156 @@ export class WidgetComponentRenderPrimitiveTypeLine extends WidgetComponentRende
3956
4058
  * This property can't be edited in read-only mode.
3957
4059
  *
3958
4060
  */
3959
- color: minecraftserver.RGBA;
4061
+ color: minecraftserver.RGBA;
4062
+ /**
4063
+ * @remarks
4064
+ * This property can't be edited in read-only mode.
4065
+ *
4066
+ */
4067
+ end: minecraftserver.Vector3;
4068
+ /**
4069
+ * @remarks
4070
+ * This property can't be edited in read-only mode.
4071
+ *
4072
+ */
4073
+ start: minecraftserver.Vector3;
4074
+ constructor(start: minecraftserver.Vector3, end: minecraftserver.Vector3, color: minecraftserver.RGBA);
4075
+ }
4076
+
4077
+ // @ts-ignore Class inheritance allowed for native defined classes
4078
+ export class WidgetComponentSpline extends WidgetComponentBase {
4079
+ private constructor();
4080
+ /**
4081
+ * @remarks
4082
+ * This property can't be edited in read-only mode.
4083
+ *
4084
+ */
4085
+ splineType: SplineType;
4086
+ /**
4087
+ * @remarks
4088
+ * This function can't be called in read-only mode.
4089
+ *
4090
+ * @throws This function can throw errors.
4091
+ *
4092
+ * {@link Error}
4093
+ *
4094
+ * {@link InvalidWidgetComponentError}
4095
+ *
4096
+ * {@link InvalidWidgetError}
4097
+ */
4098
+ getControlPoints(): Widget[];
4099
+ /**
4100
+ * @remarks
4101
+ * This function can't be called in read-only mode.
4102
+ *
4103
+ * @throws This function can throw errors.
4104
+ *
4105
+ * {@link Error}
4106
+ *
4107
+ * {@link InvalidWidgetComponentError}
4108
+ *
4109
+ * {@link InvalidWidgetError}
4110
+ */
4111
+ getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
4112
+ /**
4113
+ * @remarks
4114
+ * This function can't be called in read-only mode.
4115
+ *
4116
+ * @throws This function can throw errors.
4117
+ *
4118
+ * {@link InvalidWidgetComponentError}
4119
+ *
4120
+ * {@link InvalidWidgetError}
4121
+ */
4122
+ setControlPoints(widgetList: Widget[]): void;
4123
+ }
4124
+
4125
+ // @ts-ignore Class inheritance allowed for native defined classes
4126
+ export class WidgetComponentText extends WidgetComponentBase {
4127
+ private constructor();
4128
+ /**
4129
+ * @remarks
4130
+ * This property can't be edited in read-only mode.
4131
+ *
4132
+ */
4133
+ color: minecraftserver.RGBA;
4134
+ /**
4135
+ * @remarks
4136
+ * This property can't be edited in read-only mode.
4137
+ *
4138
+ */
4139
+ label: string;
4140
+ }
4141
+
4142
+ // @ts-ignore Class inheritance allowed for native defined classes
4143
+ export class WidgetComponentVolumeOutline extends WidgetComponentBase {
4144
+ private constructor();
4145
+ /**
4146
+ * @remarks
4147
+ * This property can't be edited in read-only mode.
4148
+ *
4149
+ */
4150
+ highlightHullColor: minecraftserver.RGBA;
4151
+ /**
4152
+ * @remarks
4153
+ * This property can't be edited in read-only mode.
4154
+ *
4155
+ */
4156
+ highlightOutlineColor: minecraftserver.RGBA;
4157
+ /**
4158
+ * @remarks
4159
+ * This property can't be edited in read-only mode.
4160
+ *
4161
+ */
4162
+ hullColor: minecraftserver.RGBA;
4163
+ /**
4164
+ * @remarks
4165
+ * This property can't be edited in read-only mode.
4166
+ *
4167
+ */
4168
+ mirror: minecraftserver.StructureMirrorAxis;
4169
+ /**
4170
+ * @remarks
4171
+ * This property can't be edited in read-only mode.
4172
+ *
4173
+ */
4174
+ normalizedOrigin: minecraftserver.Vector3;
3960
4175
  /**
3961
4176
  * @remarks
3962
4177
  * This property can't be edited in read-only mode.
3963
4178
  *
3964
4179
  */
3965
- end: minecraftserver.Vector3;
4180
+ outlineColor: minecraftserver.RGBA;
3966
4181
  /**
3967
4182
  * @remarks
3968
4183
  * This property can't be edited in read-only mode.
3969
4184
  *
3970
4185
  */
3971
- start: minecraftserver.Vector3;
3972
- constructor(start: minecraftserver.Vector3, end: minecraftserver.Vector3, color: minecraftserver.RGBA);
3973
- }
3974
-
3975
- // @ts-ignore Class inheritance allowed for native defined classes
3976
- export class WidgetComponentSpline extends WidgetComponentBase {
3977
- private constructor();
4186
+ rotation: minecraftserver.StructureRotation;
3978
4187
  /**
3979
4188
  * @remarks
3980
4189
  * This property can't be edited in read-only mode.
3981
4190
  *
3982
4191
  */
3983
- splineType: SplineType;
4192
+ showHighlightOutline: boolean;
3984
4193
  /**
3985
4194
  * @remarks
3986
- * This function can't be called in read-only mode.
3987
- *
3988
- * @throws This function can throw errors.
4195
+ * This property can't be edited in read-only mode.
3989
4196
  *
3990
- * {@link Error}
4197
+ */
4198
+ showOutline: boolean;
4199
+ /**
4200
+ * @throws This property can throw when used.
3991
4201
  *
3992
4202
  * {@link InvalidWidgetComponentError}
3993
- *
3994
- * {@link InvalidWidgetError}
3995
4203
  */
3996
- getControlPoints(): Widget[];
4204
+ readonly transformedWorldVolume: minecraftserver.BlockVolume;
3997
4205
  /**
3998
4206
  * @remarks
3999
- * This function can't be called in read-only mode.
4000
- *
4001
- * @throws This function can throw errors.
4002
- *
4003
- * {@link Error}
4004
- *
4005
- * {@link InvalidWidgetComponentError}
4207
+ * This property can't be edited in read-only mode.
4006
4208
  *
4007
- * {@link InvalidWidgetError}
4008
4209
  */
4009
- getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
4210
+ volumeOffset: minecraftserver.Vector3;
4010
4211
  /**
4011
4212
  * @remarks
4012
4213
  * This function can't be called in read-only mode.
@@ -4014,35 +4215,24 @@ export class WidgetComponentSpline extends WidgetComponentBase {
4014
4215
  * @throws This function can throw errors.
4015
4216
  *
4016
4217
  * {@link InvalidWidgetComponentError}
4017
- *
4018
- * {@link InvalidWidgetError}
4019
4218
  */
4020
- setControlPoints(widgetList: Widget[]): void;
4021
- }
4022
-
4023
- export class WidgetComponentStateChangeEventData {
4024
- private constructor();
4025
- readonly component: WidgetComponentBase;
4026
- readonly gizmoActivated?: boolean;
4027
- readonly group: WidgetGroup;
4028
- readonly widget: Widget;
4029
- }
4030
-
4031
- // @ts-ignore Class inheritance allowed for native defined classes
4032
- export class WidgetComponentText extends WidgetComponentBase {
4033
- private constructor();
4219
+ getVolume(): RelativeVolumeListBlockVolume | undefined;
4034
4220
  /**
4035
4221
  * @remarks
4036
- * This property can't be edited in read-only mode.
4222
+ * This function can't be called in read-only mode.
4037
4223
  *
4038
- */
4039
- color: minecraftserver.RGBA;
4040
- /**
4041
- * @remarks
4042
- * This property can't be edited in read-only mode.
4224
+ * @throws This function can throw errors.
4043
4225
  *
4226
+ * {@link InvalidWidgetComponentError}
4044
4227
  */
4045
- label: string;
4228
+ setVolume(
4229
+ volumeToSet?:
4230
+ | minecraftserver.Vector3[]
4231
+ | minecraftserver.BlockVolume
4232
+ | minecraftserver.BlockVolumeBase
4233
+ | RelativeVolumeListBlockVolume
4234
+ | minecraftserver.Vector3,
4235
+ ): void;
4046
4236
  }
4047
4237
 
4048
4238
  export class WidgetGroup {
@@ -4071,6 +4261,8 @@ export class WidgetGroup {
4071
4261
  *
4072
4262
  * @throws This function can throw errors.
4073
4263
  *
4264
+ * {@link Error}
4265
+ *
4074
4266
  * {@link InvalidWidgetGroupError}
4075
4267
  */
4076
4268
  createWidget(location: minecraftserver.Vector3, options?: WidgetCreateOptions): Widget;
@@ -4177,11 +4369,6 @@ export interface BlockMaskList {
4177
4369
  maskType: BlockMaskListType;
4178
4370
  }
4179
4371
 
4180
- export interface BrushShape {
4181
- icon: string;
4182
- name: string;
4183
- }
4184
-
4185
4372
  /**
4186
4373
  * Represents a UI session for a given player
4187
4374
  */
@@ -4425,20 +4612,29 @@ export interface GameOptions {
4425
4612
  bonusChest?: boolean;
4426
4613
  cheats?: boolean;
4427
4614
  commandBlockEnabled?: boolean;
4615
+ commandBlockOutput?: boolean;
4428
4616
  daylightCycle?: DaylightCycle;
4429
4617
  difficulty?: minecraftserver.Difficulty;
4430
4618
  dimensionId?: string;
4431
4619
  disableWeather?: boolean;
4620
+ drowningDamage?: boolean;
4432
4621
  educationEdition?: boolean;
4433
4622
  entitiesDropLoot?: boolean;
4434
4623
  exportType?: ProjectExportType;
4624
+ fallDamage?: boolean;
4625
+ fireDamage?: boolean;
4435
4626
  fireSpreads?: boolean;
4627
+ freezeDamage?: boolean;
4436
4628
  friendlyFire?: boolean;
4629
+ functionCommandLimit?: number;
4437
4630
  gameMode?: minecraftserver.GameMode;
4438
4631
  hardcore?: boolean;
4439
4632
  immediateRespawn?: boolean;
4633
+ insomnia?: boolean;
4440
4634
  keepInventory?: boolean;
4441
4635
  lanVisibility?: boolean;
4636
+ limitedCrafting?: boolean;
4637
+ maxCommandChainLength?: number;
4442
4638
  mobGriefing?: boolean;
4443
4639
  mobLoot?: boolean;
4444
4640
  mobSpawning?: boolean;
@@ -4450,8 +4646,12 @@ export interface GameOptions {
4450
4646
  recipeUnlocking?: boolean;
4451
4647
  respawnBlocksExplode?: boolean;
4452
4648
  respawnRadius?: number;
4649
+ sendCommandFeedback?: boolean;
4650
+ showBorderEffect?: boolean;
4453
4651
  showCoordinates?: boolean;
4454
4652
  showDaysPlayed?: boolean;
4653
+ showDeathMessage?: boolean;
4654
+ showItemTags?: boolean;
4455
4655
  simulationDistance?: number;
4456
4656
  sleepSkipPercent?: number;
4457
4657
  spawnPosition?: minecraftserver.Vector3;
@@ -5106,24 +5306,6 @@ export interface IDisposable {
5106
5306
  teardown(): void;
5107
5307
  }
5108
5308
 
5109
- /**
5110
- * Properties of dropdown property item children
5111
- */
5112
- export interface IDropdownItem {
5113
- /**
5114
- * @remarks
5115
- * Localized display text of the dropdown item.
5116
- *
5117
- */
5118
- readonly label: string;
5119
- /**
5120
- * @remarks
5121
- * The selectable value of the dropdown item.
5122
- *
5123
- */
5124
- readonly value: number;
5125
- }
5126
-
5127
5309
  /**
5128
5310
  * A property item which supports Dropdown properties
5129
5311
  */
@@ -5204,20 +5386,6 @@ export interface IDropdownPropertyItemEntry {
5204
5386
  readonly value: number;
5205
5387
  }
5206
5388
 
5207
- /**
5208
- * Dropdown property item specific functionality
5209
- */
5210
- export interface IDropdownPropertyItemMixIn {
5211
- /**
5212
- * @remarks
5213
- * Used to update the Dropdown options in the control. Will
5214
- * trigger onChange with -1 as the old value due to the list
5215
- * changing entries.
5216
- *
5217
- */
5218
- updateDropdownItems(dropdownItems: IDropdownItem[], newValue: number): void;
5219
- }
5220
-
5221
5389
  /**
5222
5390
  * Optional properties for Dropdown property item
5223
5391
  */
@@ -5845,29 +6013,6 @@ export interface IProgressIndicatorPropertyItemOptions extends IPropertyItemOpti
5845
6013
  variant?: ProgressIndicatorPropertyItemVariant;
5846
6014
  }
5847
6015
 
5848
- // @ts-ignore Class inheritance allowed for native defined classes
5849
- export interface IPropertyItem<T extends PropertyBag, Prop extends keyof T & string> extends IPropertyItemBase {
5850
- /**
5851
- * @remarks
5852
- * The object associated.
5853
- *
5854
- */
5855
- readonly obj: T;
5856
- /**
5857
- * @remarks
5858
- * The target property of the object associated.
5859
- *
5860
- */
5861
- readonly property: Prop;
5862
- /**
5863
- * @remarks
5864
- * The value of the property.
5865
- *
5866
- */
5867
- readonly value: T[Prop];
5868
- dispose(): void;
5869
- }
5870
-
5871
6016
  /**
5872
6017
  * Common base for all property items
5873
6018
  */
@@ -5904,33 +6049,6 @@ export interface IPropertyItemBase {
5904
6049
  visible: boolean;
5905
6050
  }
5906
6051
 
5907
- export interface IPropertyItemOptions {
5908
- /**
5909
- * @remarks
5910
- * If the item is enabled in the UI.
5911
- *
5912
- */
5913
- enable?: boolean;
5914
- /**
5915
- * @remarks
5916
- * Callback to execute when the value is updated.
5917
- *
5918
- */
5919
- onChange?: OnChangeCallback<PropertyBag, string>;
5920
- /**
5921
- * @remarks
5922
- * Localized title of the property item
5923
- *
5924
- */
5925
- title?: string;
5926
- /**
5927
- * @remarks
5928
- * If the item should be visible in the UI.
5929
- *
5930
- */
5931
- visible?: boolean;
5932
- }
5933
-
5934
6052
  /**
5935
6053
  * Common optional properties for property items
5936
6054
  */
@@ -5951,117 +6069,6 @@ export interface IPropertyItemOptionsBase {
5951
6069
  visible?: boolean;
5952
6070
  }
5953
6071
 
5954
- // @ts-ignore Class inheritance allowed for native defined classes
5955
- export interface IPropertyItemOptionsBool extends IPropertyItemOptions {
5956
- /**
5957
- * @remarks
5958
- * controls appearance of the boolean. checkbox or toggleswitch
5959
- *
5960
- */
5961
- displayAsToggleSwitch?: boolean;
5962
- }
5963
-
5964
- // @ts-ignore Class inheritance allowed for native defined classes
5965
- export interface IPropertyItemOptionsColorPicker_deprecated extends IPropertyItemOptions {
5966
- showAlpha?: boolean;
5967
- variant?: ColorPickerPropertyItemVariant;
5968
- }
5969
-
5970
- // @ts-ignore Class inheritance allowed for native defined classes
5971
- export interface IPropertyItemOptionsDropdown extends IPropertyItemOptions {
5972
- /**
5973
- * @remarks
5974
- * The possible options for the drop down control.
5975
- *
5976
- */
5977
- dropdownItems: IDropdownItem[];
5978
- }
5979
-
5980
- // @ts-ignore Class inheritance allowed for native defined classes
5981
- export interface IPropertyItemOptionsNumber extends IPropertyItemOptions {
5982
- /**
5983
- * @remarks
5984
- * If we should treat the number as floating point. By default
5985
- * is false
5986
- *
5987
- */
5988
- isFloat?: boolean;
5989
- /**
5990
- * @remarks
5991
- * The min possible value for the number.
5992
- *
5993
- */
5994
- max?: number;
5995
- /**
5996
- * @remarks
5997
- * The max possible value for the number.
5998
- *
5999
- */
6000
- min?: number;
6001
- /**
6002
- * @remarks
6003
- * If UI should show slider control.
6004
- *
6005
- */
6006
- showSlider?: boolean;
6007
- }
6008
-
6009
- // @ts-ignore Class inheritance allowed for native defined classes
6010
- export interface IPropertyItemOptionsSubPane extends IPropertyItemOptions {
6011
- /**
6012
- * @remarks
6013
- * The sub pane to render in UI.
6014
- *
6015
- */
6016
- pane: IPropertyPane;
6017
- }
6018
-
6019
- // @ts-ignore Class inheritance allowed for native defined classes
6020
- export interface IPropertyItemOptionsVector3 extends IPropertyItemOptions {
6021
- /**
6022
- * @remarks
6023
- * The max possible value for the X axis. By default
6024
- * Number.MAX_SAFE_INTEGER
6025
- *
6026
- */
6027
- maxX?: number;
6028
- /**
6029
- * @remarks
6030
- * The max possible value for the Y axis. By default
6031
- * Number.MAX_SAFE_INTEGER
6032
- *
6033
- */
6034
- maxY?: number;
6035
- /**
6036
- * @remarks
6037
- * The max possible value for the z axis. By default
6038
- * Number.MAX_SAFE_INTEGER
6039
- *
6040
- */
6041
- maxZ?: number;
6042
- /**
6043
- * @remarks
6044
- * The min possible value for the X axis. By default
6045
- * Number.MIN_SAFE_INTEGER
6046
- *
6047
- */
6048
- minX?: number;
6049
- /**
6050
- * @remarks
6051
- * The min possible value for the Y axis. By default
6052
- * Number.MIN_SAFE_INTEGER
6053
- *
6054
- */
6055
- minY?: number;
6056
- /**
6057
- * @remarks
6058
- * The min possible value for the Z axis. By default
6059
- * Number.MIN_SAFE_INTEGER
6060
- *
6061
- */
6062
- minZ?: number;
6063
- }
6064
-
6065
6072
  /**
6066
6073
  * Property pane present dynamic content. It can be associated
6067
6074
  * with an object and presented with different kind of
@@ -6099,16 +6106,6 @@ export interface IPropertyPane extends IPane {
6099
6106
  *
6100
6107
  */
6101
6108
  addBool(value: IObservableProp<boolean>, options?: IBoolPropertyItemOptions): IBoolPropertyItem;
6102
- /**
6103
- * @remarks
6104
- * Adds a boolean item to the pane.
6105
- *
6106
- */
6107
- addBool_deprecated<T extends PropertyBag, Prop extends keyof T & string>(
6108
- obj: T,
6109
- property: Prop,
6110
- options?: IPropertyItemOptionsBool,
6111
- ): IPropertyItem<T, Prop>;
6112
6109
  /**
6113
6110
  * @remarks
6114
6111
  * Adds a button to the pane and binds the specified action to
@@ -6134,16 +6131,6 @@ export interface IPropertyPane extends IPane {
6134
6131
  value: IObservableProp<minecraftserver.RGBA>,
6135
6132
  options?: IColorPickerPropertyItemOptions,
6136
6133
  ): IColorPickerPropertyItem;
6137
- /**
6138
- * @remarks
6139
- * Adds a color picker item to the pane.
6140
- *
6141
- */
6142
- addColorPicker_deprecated<T extends PropertyBag, Prop extends keyof T & string>(
6143
- obj: T,
6144
- property: Prop,
6145
- options?: IPropertyItemOptionsColorPicker_deprecated,
6146
- ): IPropertyItem<T, Prop>;
6147
6134
  /**
6148
6135
  * @remarks
6149
6136
  * Adds a combo box item to the pane.
@@ -6168,21 +6155,6 @@ export interface IPropertyPane extends IPane {
6168
6155
  *
6169
6156
  */
6170
6157
  addDropdown(value: IObservableProp<number>, options?: IDropdownPropertyItemOptions): IDropdownPropertyItem;
6171
- /**
6172
- * @remarks
6173
- * Adds an DropDown item to the pane.
6174
- *
6175
- */
6176
- addDropdown_deprecated<
6177
- T extends Omit<PropertyBag, Prop> & {
6178
- [key in Prop]: number;
6179
- },
6180
- Prop extends keyof T & string,
6181
- >(
6182
- obj: T,
6183
- property: Prop,
6184
- options?: IPropertyItemOptionsDropdown,
6185
- ): IDropdownPropertyItem_deprecated<T, Prop>;
6186
6158
  /**
6187
6159
  * @remarks
6188
6160
  * Adds an image item to the pane.
@@ -6204,16 +6176,6 @@ export interface IPropertyPane extends IPane {
6204
6176
  *
6205
6177
  */
6206
6178
  addNumber(value: IObservableProp<number>, options?: INumberPropertyItemOptions): INumberPropertyItem;
6207
- /**
6208
- * @remarks
6209
- * Adds a number item to the pane.
6210
- *
6211
- */
6212
- addNumber_deprecated<T extends PropertyBag, Prop extends keyof T & string>(
6213
- obj: T,
6214
- property: Prop,
6215
- options?: IPropertyItemOptionsNumber,
6216
- ): IPropertyItem<T, Prop>;
6217
6179
  /**
6218
6180
  * @remarks
6219
6181
  * Adds a Progress Indicator item to the pane.
@@ -6226,16 +6188,6 @@ export interface IPropertyPane extends IPane {
6226
6188
  *
6227
6189
  */
6228
6190
  addString(value: IObservableProp<string>, options?: IStringPropertyItemOptions): IStringPropertyItem;
6229
- /**
6230
- * @remarks
6231
- * Adds a string item to the pane
6232
- *
6233
- */
6234
- addString_deprecated<T extends PropertyBag, Prop extends keyof T & string>(
6235
- obj: T,
6236
- property: Prop,
6237
- options?: IPropertyItemOptions,
6238
- ): IPropertyItem<T, Prop>;
6239
6191
  /**
6240
6192
  * @remarks
6241
6193
  * Adds a multiline Text item to the pane.
@@ -6257,16 +6209,6 @@ export interface IPropertyPane extends IPane {
6257
6209
  value: IObservableProp<minecraftserver.Vector3>,
6258
6210
  options?: IVector3PropertyItemOptions,
6259
6211
  ): IVector3PropertyItem;
6260
- /**
6261
- * @remarks
6262
- * Adds a Vec3 item to the pane.
6263
- *
6264
- */
6265
- addVector3_deprecated<T extends PropertyBag, Prop extends keyof T & string>(
6266
- obj: T,
6267
- property: Prop,
6268
- options?: IPropertyItemOptionsVector3,
6269
- ): IVector3PropertyItem_deprecated<T, Prop>;
6270
6212
  /**
6271
6213
  * @remarks
6272
6214
  * Collapse the pane.
@@ -7504,13 +7446,6 @@ export interface QuickExtrudeProperties {
7504
7446
  startingLocation?: minecraftserver.Vector3;
7505
7447
  }
7506
7448
 
7507
- export interface SettingsUIElementOptions {
7508
- dropdownItems?: string[];
7509
- max?: number;
7510
- min?: number;
7511
- refreshOnChange?: boolean;
7512
- }
7513
-
7514
7449
  export interface WeightedBlock {
7515
7450
  block: minecraftserver.BlockType;
7516
7451
  weight: number;
@@ -7519,19 +7454,36 @@ export interface WeightedBlock {
7519
7454
  export interface WidgetComponentBaseOptions {
7520
7455
  lockToSurface?: boolean;
7521
7456
  offset?: minecraftserver.Vector3;
7522
- stateChangeEvent?: (arg0: WidgetComponentStateChangeEventData) => void;
7523
7457
  visible?: boolean;
7524
7458
  }
7525
7459
 
7460
+ // @ts-ignore Class inheritance allowed for native defined classes
7461
+ export interface WidgetComponentBoundingBoxOptions extends WidgetComponentBaseOptions {
7462
+ boundsOffset?: minecraftserver.Vector3;
7463
+ enableResizeHandles?: Axis;
7464
+ hullColor?: minecraftserver.RGBA;
7465
+ maxSize?: minecraftserver.Vector3;
7466
+ minSize?: minecraftserver.Vector3;
7467
+ mirror?: minecraftserver.StructureMirrorAxis;
7468
+ normalizedOrigin?: minecraftserver.Vector3;
7469
+ outlineColor?: minecraftserver.RGBA;
7470
+ rotation?: minecraftserver.StructureRotation;
7471
+ showWorldIntersections?: boolean;
7472
+ stateChangeEvent?: (arg0: WidgetComponentBoundingBoxStateChangeEventParameters) => void;
7473
+ visibleHull?: boolean;
7474
+ }
7475
+
7526
7476
  // @ts-ignore Class inheritance allowed for native defined classes
7527
7477
  export interface WidgetComponentClipboardOptions extends WidgetComponentBaseOptions {
7528
- boundsFillColor?: minecraftserver.RGBA;
7529
- boundsOutlineColor?: minecraftserver.RGBA;
7530
- clipboardMirror?: minecraftserver.StructureMirrorAxis;
7531
- clipboardNormalizedOrigin?: minecraftserver.Vector3;
7532
7478
  clipboardOffset?: minecraftserver.Vector3;
7533
- clipboardRotation?: minecraftserver.StructureRotation;
7534
- showBounds?: boolean;
7479
+ highlightHullColor?: minecraftserver.RGBA;
7480
+ highlightOutlineColor?: minecraftserver.RGBA;
7481
+ hullColor?: minecraftserver.RGBA;
7482
+ mirror?: minecraftserver.StructureMirrorAxis;
7483
+ normalizedOrigin?: minecraftserver.Vector3;
7484
+ outlineColor?: minecraftserver.RGBA;
7485
+ rotation?: minecraftserver.StructureRotation;
7486
+ showOutline?: boolean;
7535
7487
  }
7536
7488
 
7537
7489
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -7545,6 +7497,8 @@ export interface WidgetComponentEntityOptions extends WidgetComponentBaseOptions
7545
7497
  export interface WidgetComponentGizmoOptions extends WidgetComponentBaseOptions {
7546
7498
  axes?: Axis;
7547
7499
  enablePlanes?: boolean;
7500
+ normalizedAutoOffset?: minecraftserver.Vector3;
7501
+ stateChangeEvent?: (arg0: WidgetComponentGizmoStateChangeEventParameters) => void;
7548
7502
  }
7549
7503
 
7550
7504
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -7564,6 +7518,20 @@ export interface WidgetComponentTextOptions extends WidgetComponentBaseOptions {
7564
7518
  color?: minecraftserver.RGBA;
7565
7519
  }
7566
7520
 
7521
+ // @ts-ignore Class inheritance allowed for native defined classes
7522
+ export interface WidgetComponentVolumeOutlineOptions extends WidgetComponentBaseOptions {
7523
+ highlightHullColor?: minecraftserver.RGBA;
7524
+ highlightOutlineColor?: minecraftserver.RGBA;
7525
+ hullColor?: minecraftserver.RGBA;
7526
+ mirror?: minecraftserver.StructureMirrorAxis;
7527
+ normalizedOrigin?: minecraftserver.Vector3;
7528
+ outlineColor?: minecraftserver.RGBA;
7529
+ rotation?: minecraftserver.StructureRotation;
7530
+ showHighlightOutline?: boolean;
7531
+ showOutline?: boolean;
7532
+ volumeOffset?: minecraftserver.Vector3;
7533
+ }
7534
+
7567
7535
  export interface WidgetCreateOptions {
7568
7536
  bindPositionToBlockCursor?: boolean;
7569
7537
  collisionOffset?: minecraftserver.Vector3;
@@ -7573,6 +7541,9 @@ export interface WidgetCreateOptions {
7573
7541
  snapToBlockLocation?: boolean;
7574
7542
  stateChangeEvent?: (arg0: WidgetStateChangeEventData) => void;
7575
7543
  visible?: boolean;
7544
+ widgetName?: string;
7545
+ worldBoundsMax?: minecraftserver.Vector3;
7546
+ worldBoundsMin?: minecraftserver.Vector3;
7576
7547
  }
7577
7548
 
7578
7549
  export interface WidgetGroupCreateOptions {
@@ -7596,22 +7567,6 @@ export class InvalidWidgetGroupError extends Error {
7596
7567
  private constructor();
7597
7568
  }
7598
7569
 
7599
- /**
7600
- * @remarks
7601
- * Takes the input object (a property bag of values) and bind
7602
- * it to the pane as a data source. UI child elements of the
7603
- * pane will be updated when the values in the object change,
7604
- * and vice versa.
7605
- *
7606
- * @param propertyPane
7607
- * The property pane to bind the property bag to.
7608
- * @param target
7609
- * The property bag to bind to the pane.
7610
- */
7611
- export declare function bindDataSource<T extends PropertyBag, Prop extends keyof T & string>(
7612
- propertyPane: IPropertyPane,
7613
- target: T,
7614
- ): T;
7615
7570
  /**
7616
7571
  * @remarks
7617
7572
  * Deserialize anything, defaults to the same behavior as
@@ -7625,13 +7580,11 @@ export declare function deserialize(s: string): unknown;
7625
7580
  * Executes an operation over a selection via chunks to allow
7626
7581
  * splitting operation over multiple game ticks
7627
7582
  *
7628
- * @param selection
7629
- * the selection to iterator over
7630
7583
  * @param operation
7631
7584
  * the operation to apply over each block location
7632
7585
  */
7633
7586
  export declare function executeLargeOperation(
7634
- selection: Selection,
7587
+ volume: RelativeVolumeListBlockVolume,
7635
7588
  operation: (blockLocation: minecraftserver.Vector3) => void,
7636
7589
  ): Promise<void>;
7637
7590
  /**
@@ -7658,6 +7611,14 @@ export declare function executeLargeOperationFromIterator(
7658
7611
  * Default allowed block list
7659
7612
  */
7660
7613
  export declare function getDefaultAllowBlockList(): string[];
7614
+ /**
7615
+ * @remarks
7616
+ * Returns a list of default core brush shapes
7617
+ *
7618
+ * @param excludeList
7619
+ * List of shape types to exclude
7620
+ */
7621
+ export declare function getDefaultBrushShapes(excludeList?: CoreBrushShapeType[]): BrushShape[];
7661
7622
  /**
7662
7623
  * @remarks
7663
7624
  * Creates an observable object that stores a value state.