@minecraft/server-editor 0.1.0-beta.1.21.70-preview.25 → 0.1.0-beta.1.21.80-preview.20

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 +631 -739
  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,
@@ -125,6 +126,19 @@ export declare enum CoreActionBarItemType {
125
126
  Undo = 'editor:actionBarItem:undo',
126
127
  }
127
128
 
129
+ /**
130
+ * Core brush shape types
131
+ */
132
+ export declare enum CoreBrushShapeType {
133
+ Cone = 'editor:brushShape:cone',
134
+ Cuboid = 'editor:brushShape:cuboid',
135
+ Cylinder = 'editor:brushShape:cylinder',
136
+ Ellipsoid = 'editor:brushShape:ellipsoid',
137
+ Pyramid = 'editor:brushShape:pyramid',
138
+ SingleBlock = 'editor:brushShape:singleBlock',
139
+ Star = 'editor:brushShape:star',
140
+ }
141
+
128
142
  /**
129
143
  * Predefined top level menus for core editor
130
144
  */
@@ -971,6 +985,7 @@ export enum PaintMode {
971
985
  }
972
986
 
973
987
  export enum Plane {
988
+ None = 0,
974
989
  XY = 1,
975
990
  XZ = 2,
976
991
  YZ = 4,
@@ -1045,6 +1060,15 @@ export declare enum PropertyItemType {
1045
1060
  Vector3 = 'editorUI:Vector3',
1046
1061
  }
1047
1062
 
1063
+ export enum SelectionVolumeEventType {
1064
+ Set = 1,
1065
+ Add = 2,
1066
+ Remove = 3,
1067
+ Translate = 4,
1068
+ Move = 5,
1069
+ Clear = 6,
1070
+ }
1071
+
1048
1072
  /**
1049
1073
  * Define the visibility of the status bar item If the tool
1050
1074
  * does not have an `ISimpleToolPropertyPane` component, then
@@ -1132,12 +1156,15 @@ export enum ThemeSettingsColorKey {
1132
1156
  SecondaryMute = 'SecondaryMute',
1133
1157
  SelectionVolumeBorder = 'SelectionVolumeBorder',
1134
1158
  SelectionVolumeFill = 'SelectionVolumeFill',
1159
+ SelectionVolumeOutlineBorder = 'SelectionVolumeOutlineBorder',
1160
+ SelectionVolumeOutlineFill = 'SelectionVolumeOutlineFill',
1135
1161
  TitleBarBackground = 'TitleBarBackground',
1136
1162
  ViewportOutline = 'ViewportOutline',
1137
1163
  Warning = 'Warning',
1138
1164
  }
1139
1165
 
1140
1166
  export enum WidgetComponentType {
1167
+ BoundingBox = 'BoundingBox',
1141
1168
  Clipboard = 'Clipboard',
1142
1169
  Entity = 'Entity',
1143
1170
  Gizmo = 'Gizmo',
@@ -1145,6 +1172,18 @@ export enum WidgetComponentType {
1145
1172
  RenderPrim = 'RenderPrim',
1146
1173
  Spline = 'Spline',
1147
1174
  Text = 'Text',
1175
+ VolumeOutline = 'VolumeOutline',
1176
+ }
1177
+
1178
+ export enum WidgetGizmoEventType {
1179
+ CornerGrabbed = 'CornerGrabbed',
1180
+ CornerMoved = 'CornerMoved',
1181
+ CornerReleased = 'CornerReleased',
1182
+ OriginActivated = 'OriginActivated',
1183
+ OriginDeactivated = 'OriginDeactivated',
1184
+ OriginGrabbed = 'OriginGrabbed',
1185
+ OriginMoved = 'OriginMoved',
1186
+ OriginReleased = 'OriginReleased',
1148
1187
  }
1149
1188
 
1150
1189
  export enum WidgetGroupSelectionMode {
@@ -1212,16 +1251,6 @@ export type GraphicsSettingsPropertyTypeMap = {
1212
1251
  [GraphicsSettingsProperty.NightVision]?: boolean;
1213
1252
  };
1214
1253
 
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
1254
  /**
1226
1255
  * Animation properties for a horizontally laid out sprite
1227
1256
  * sheet image
@@ -1270,23 +1299,6 @@ export type IPlayerUISession<PerPlayerStorage = Record<string, never>> = {
1270
1299
  scratchStorage: PerPlayerStorage | undefined;
1271
1300
  };
1272
1301
 
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
1302
  /**
1291
1303
  * Keyboard binding properties.
1292
1304
  */
@@ -1359,17 +1371,6 @@ export type NoArgsAction = {
1359
1371
  readonly onExecute: () => void;
1360
1372
  };
1361
1373
 
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
1374
  export type PropertyBag = Record<string, unknown>;
1374
1375
 
1375
1376
  /**
@@ -1618,7 +1619,7 @@ export class BlockUtilities {
1618
1619
  * @throws This function can throw errors.
1619
1620
  */
1620
1621
  fillVolume(
1621
- volume: minecraftserver.BlockVolumeBase | minecraftserver.CompoundBlockVolume | Selection,
1622
+ volume: minecraftserver.BlockVolumeBase | minecraftserver.CompoundBlockVolume | RelativeVolumeListBlockVolume,
1622
1623
  block?: minecraftserver.BlockPermutation | minecraftserver.BlockType | string,
1623
1624
  ): void;
1624
1625
  /**
@@ -1627,7 +1628,7 @@ export class BlockUtilities {
1627
1628
  *
1628
1629
  * @throws This function can throw errors.
1629
1630
  *
1630
- * {@link minecraftserver.Error}
1631
+ * {@link Error}
1631
1632
  */
1632
1633
  getContiguousSelection(properties?: ContiguousSelectionProperties): minecraftserver.CompoundBlockVolume;
1633
1634
  /**
@@ -1636,7 +1637,7 @@ export class BlockUtilities {
1636
1637
  *
1637
1638
  * @throws This function can throw errors.
1638
1639
  *
1639
- * {@link minecraftserver.Error}
1640
+ * {@link Error}
1640
1641
  */
1641
1642
  getFacePreviewSelection(properties?: QuickExtrudeProperties): minecraftserver.ListBlockVolume;
1642
1643
  /**
@@ -1648,11 +1649,29 @@ export class BlockUtilities {
1648
1649
  quickExtrude(properties?: QuickExtrudeProperties): void;
1649
1650
  }
1650
1651
 
1652
+ /**
1653
+ * Base for creating new brush shapes
1654
+ */
1655
+ export declare abstract class BrushShape {
1656
+ get displayName(): string;
1657
+ get icon(): string;
1658
+ get id(): string;
1659
+ /**
1660
+ * @remarks
1661
+ * Constructs a new instance of the `BrushShape` class
1662
+ *
1663
+ */
1664
+ constructor(_id: string, _displayName: string, _icon: string);
1665
+ abstract createSettingsPane(
1666
+ parentPane: IPropertyPane,
1667
+ onSettingsChange?: () => void,
1668
+ ): ISubPanePropertyItem | undefined;
1669
+ abstract createShape(): RelativeVolumeListBlockVolume;
1670
+ }
1671
+
1651
1672
  export class BrushShapeManager {
1652
1673
  private constructor();
1653
- readonly activeBrushShape?: BrushShape;
1654
- readonly activeBrushVolume?: minecraftserver.CompoundBlockVolume;
1655
- readonly brushShapeList: BrushShape[];
1674
+ readonly activeBrushVolume?: RelativeVolumeListBlockVolume;
1656
1675
  /**
1657
1676
  * @remarks
1658
1677
  * This function can't be called in read-only mode.
@@ -1689,29 +1708,6 @@ export class BrushShapeManager {
1689
1708
  *
1690
1709
  */
1691
1710
  getBrushShapeOffset(): minecraftserver.Vector3;
1692
- /**
1693
- * @remarks
1694
- * This function can't be called in read-only mode.
1695
- *
1696
- * @throws This function can throw errors.
1697
- *
1698
- * {@link Error}
1699
- */
1700
- getSettingsUIElements(brushName: string): SettingsUIElement[];
1701
- /**
1702
- * @remarks
1703
- * This function can't be called in read-only mode.
1704
- *
1705
- * @throws This function can throw errors.
1706
- *
1707
- * {@link Error}
1708
- */
1709
- registerBrushShape(
1710
- name: string,
1711
- icon: string,
1712
- rebuild: () => minecraftserver.CompoundBlockVolume,
1713
- getSettingsUIElements: () => SettingsUIElement[],
1714
- ): void;
1715
1711
  /**
1716
1712
  * @remarks
1717
1713
  * This function can't be called in read-only mode.
@@ -1726,7 +1722,7 @@ export class BrushShapeManager {
1726
1722
  * This function can't be called in read-only mode.
1727
1723
  *
1728
1724
  */
1729
- setBrushShape(shape: minecraftserver.Vector3[] | minecraftserver.CompoundBlockVolume): void;
1725
+ setBrushShape(shape: minecraftserver.Vector3[] | RelativeVolumeListBlockVolume): void;
1730
1726
  /**
1731
1727
  * @remarks
1732
1728
  * This function can't be called in read-only mode.
@@ -1772,24 +1768,6 @@ export class BrushShapeManager {
1772
1768
  *
1773
1769
  */
1774
1770
  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
1771
  }
1794
1772
 
1795
1773
  export class ClipboardChangeAfterEvent {
@@ -1830,9 +1808,9 @@ export class ClipboardItem {
1830
1808
  * @remarks
1831
1809
  * Return whether there is any block content in the item
1832
1810
  *
1833
- * @throws This property can throw when used.
1834
1811
  */
1835
1812
  readonly isEmpty: boolean;
1813
+ readonly size: minecraftserver.Vector3;
1836
1814
  /**
1837
1815
  * @remarks
1838
1816
  * Clear the contents of the item
@@ -1844,87 +1822,21 @@ export class ClipboardItem {
1844
1822
  clear(): void;
1845
1823
  /**
1846
1824
  * @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
1825
  * This function can't be called in read-only mode.
1856
1826
  *
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
1827
  * @throws This function can throw errors.
1828
+ *
1829
+ * {@link Error}
1870
1830
  */
1871
- getPredictedWriteAsCompoundBlockVolume(
1831
+ getPredictedWriteVolume(
1872
1832
  location: minecraftserver.Vector3,
1873
1833
  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;
1834
+ ): RelativeVolumeListBlockVolume;
1921
1835
  /**
1922
1836
  * @remarks
1923
1837
  * This function can't be called in read-only mode.
1924
1838
  *
1925
1839
  * @throws This function can throw errors.
1926
- *
1927
- * {@link Error}
1928
1840
  */
1929
1841
  readFromStructure(structure: EditorStructure): void;
1930
1842
  /**
@@ -1934,14 +1846,9 @@ export class ClipboardItem {
1934
1846
  *
1935
1847
  * This function can't be called in read-only mode.
1936
1848
  *
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
1849
  * @throws This function can throw errors.
1943
1850
  */
1944
- readFromWorld(from: minecraftserver.Vector3, to: minecraftserver.Vector3): void;
1851
+ readFromWorld(source: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume): void;
1945
1852
  /**
1946
1853
  * @remarks
1947
1854
  * Apply the contents of a ClipboardItem to the world at a
@@ -1961,6 +1868,8 @@ export class ClipboardItem {
1961
1868
  * @returns
1962
1869
  * Success or Failure
1963
1870
  * @throws This function can throw errors.
1871
+ *
1872
+ * {@link Error}
1964
1873
  */
1965
1874
  writeToWorld(location: minecraftserver.Vector3, options?: ClipboardWriteOptions): boolean;
1966
1875
  }
@@ -1996,6 +1905,37 @@ export class ClipboardManager {
1996
1905
  create(): ClipboardItem;
1997
1906
  }
1998
1907
 
1908
+ // @ts-ignore Class inheritance allowed for native defined classes
1909
+ export declare class ConeBrushShape extends BrushShape {
1910
+ /**
1911
+ * @remarks
1912
+ * Constructs a new instance of the `ConeBrushShape` class
1913
+ *
1914
+ */
1915
+ constructor(settings?: { uniform?: boolean; radius?: number; width?: number; height?: number; depth?: number });
1916
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
1917
+ createShape(): RelativeVolumeListBlockVolume;
1918
+ }
1919
+
1920
+ // @ts-ignore Class inheritance allowed for native defined classes
1921
+ export declare class CuboidBrushShape extends BrushShape {
1922
+ /**
1923
+ * @remarks
1924
+ * Constructs a new instance of the `CuboidBrushShape` class
1925
+ *
1926
+ */
1927
+ constructor(settings?: {
1928
+ uniform?: boolean;
1929
+ length?: number;
1930
+ width?: number;
1931
+ height?: number;
1932
+ depth?: number;
1933
+ minLength?: number;
1934
+ });
1935
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
1936
+ createShape(): RelativeVolumeListBlockVolume;
1937
+ }
1938
+
1999
1939
  export class CurrentThemeChangeAfterEvent {
2000
1940
  private constructor();
2001
1941
  readonly id: string;
@@ -2209,6 +2149,25 @@ export class CursorPropertyChangeAfterEventSignal {
2209
2149
  unsubscribe(callback: (arg0: CursorPropertiesChangeAfterEvent) => void): void;
2210
2150
  }
2211
2151
 
2152
+ // @ts-ignore Class inheritance allowed for native defined classes
2153
+ export declare class CylinderBrushShape extends BrushShape {
2154
+ /**
2155
+ * @remarks
2156
+ * Constructs a new instance of the `CylinderBrushShape` class
2157
+ *
2158
+ */
2159
+ constructor(settings?: {
2160
+ uniform?: boolean;
2161
+ radius?: number;
2162
+ width?: number;
2163
+ height?: number;
2164
+ depth?: number;
2165
+ minRadius?: number;
2166
+ });
2167
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2168
+ createShape(): RelativeVolumeListBlockVolume;
2169
+ }
2170
+
2212
2171
  export class EditorStructureManager {
2213
2172
  private constructor();
2214
2173
  /**
@@ -2248,6 +2207,25 @@ export class EditorStructureManager {
2248
2207
  searchStructures(options?: EditorStructureSearchOptions): EditorStructure[];
2249
2208
  }
2250
2209
 
2210
+ // @ts-ignore Class inheritance allowed for native defined classes
2211
+ export declare class EllipsoidBrushShape extends BrushShape {
2212
+ /**
2213
+ * @remarks
2214
+ * Constructs a new instance of the `EllipsoidBrushShape` class
2215
+ *
2216
+ */
2217
+ constructor(settings?: {
2218
+ uniform?: boolean;
2219
+ radius?: number;
2220
+ width?: number;
2221
+ height?: number;
2222
+ depth?: number;
2223
+ minRadius?: number;
2224
+ });
2225
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2226
+ createShape(): RelativeVolumeListBlockVolume;
2227
+ }
2228
+
2251
2229
  /**
2252
2230
  * Validates observable objects that support string as
2253
2231
  * EntityType
@@ -2477,7 +2455,7 @@ export class ExtensionContextAfterEvents {
2477
2455
  * This property can be read in early-execution mode.
2478
2456
  *
2479
2457
  */
2480
- readonly primarySelectionChange: PrimarySelectionChangeAfterEventSignal;
2458
+ readonly SelectionChange: SelectionChangeAfterEventSignal;
2481
2459
  }
2482
2460
 
2483
2461
  /**
@@ -2748,31 +2726,6 @@ export class PlaytestManager {
2748
2726
  getPlaytestSessionAvailability(): PlaytestSessionResult;
2749
2727
  }
2750
2728
 
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
2729
  // @ts-ignore Class inheritance allowed for native defined classes
2777
2730
  export class ProbabilityBlockPaletteItem extends IBlockPaletteItem {
2778
2731
  constructor(displayName?: string);
@@ -2799,251 +2752,217 @@ export class ProbabilityBlockPaletteItem extends IBlockPaletteItem {
2799
2752
  removeBlockAt(index: number): void;
2800
2753
  }
2801
2754
 
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();
2755
+ // @ts-ignore Class inheritance allowed for native defined classes
2756
+ export declare class PyramidBrushShape extends BrushShape {
2813
2757
  /**
2814
2758
  * @remarks
2815
- * Returns a boolean representing whether or not there are any
2816
- * volumes pushed to the selection stack
2759
+ * Constructs a new instance of the `PyramidBrushShape` class
2817
2760
  *
2818
- * @throws This property can throw when used.
2819
2761
  */
2762
+ constructor(settings?: { uniform?: boolean; width?: number; height?: number; depth?: number });
2763
+ createSettingsPane(parentPane: IPropertyPane, onSettingsChange?: () => void): ISubPanePropertyItem;
2764
+ createShape(): RelativeVolumeListBlockVolume;
2765
+ }
2766
+
2767
+ // @ts-ignore Class inheritance allowed for native defined classes
2768
+ export class RelativeVolumeListBlockVolume extends minecraftserver.BlockVolumeBase {
2820
2769
  readonly isEmpty: boolean;
2821
2770
  /**
2822
2771
  * @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
2772
  * This property can't be edited in read-only mode.
2833
2773
  *
2834
2774
  */
2835
- visible: boolean;
2775
+ origin?: minecraftserver.Vector3;
2776
+ readonly volumeCount: number;
2777
+ constructor(origin?: minecraftserver.Vector3);
2836
2778
  /**
2837
2779
  * @remarks
2838
- * Clear the contents of the Selection
2780
+ * This function can't be called in read-only mode.
2839
2781
  *
2782
+ */
2783
+ add(
2784
+ toAdd:
2785
+ | minecraftserver.Vector3[]
2786
+ | minecraftserver.BlockVolume
2787
+ | minecraftserver.BlockVolumeBase
2788
+ | RelativeVolumeListBlockVolume
2789
+ | minecraftserver.Vector3,
2790
+ ): void;
2791
+ /**
2792
+ * @remarks
2840
2793
  * This function can't be called in read-only mode.
2841
2794
  *
2842
- * @throws This function can throw errors.
2843
2795
  */
2844
2796
  clear(): void;
2845
2797
  /**
2846
2798
  * @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
2799
  * This function can't be called in read-only mode.
2859
2800
  *
2860
2801
  */
2861
- getBlockLocationIterator(): minecraftserver.BlockLocationIterator;
2802
+ getVolumeList(): minecraftserver.BlockVolume[];
2803
+ hasAdjacent(location: minecraftserver.Vector3, normalizedOffset: minecraftserver.Vector3): boolean;
2862
2804
  /**
2863
2805
  * @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
2806
  * This function can't be called in read-only mode.
2870
2807
  *
2871
- * @throws This function can throw errors.
2872
2808
  */
2873
- getBoundingBox(): minecraftserver.BoundingBox;
2809
+ moveTo(location: minecraftserver.Vector3): void;
2874
2810
  /**
2875
2811
  * @remarks
2876
- * Return the color of the on-screen selection container hull
2877
- *
2878
2812
  * This function can't be called in read-only mode.
2879
2813
  *
2880
- * @throws This function can throw errors.
2881
2814
  */
2882
- getFillColor(): minecraftserver.RGBA;
2815
+ remove(
2816
+ toRemove:
2817
+ | minecraftserver.Vector3[]
2818
+ | minecraftserver.BlockVolume
2819
+ | minecraftserver.BlockVolumeBase
2820
+ | RelativeVolumeListBlockVolume
2821
+ | minecraftserver.Vector3,
2822
+ ): void;
2883
2823
  /**
2884
2824
  * @remarks
2885
- * Return the color of the on-screen selection container
2886
- * outline
2887
- *
2888
2825
  * This function can't be called in read-only mode.
2889
2826
  *
2890
- * @throws This function can throw errors.
2891
2827
  */
2892
- getOutlineColor(): minecraftserver.RGBA;
2828
+ set(
2829
+ toSet:
2830
+ | minecraftserver.Vector3[]
2831
+ | minecraftserver.BlockVolume
2832
+ | minecraftserver.BlockVolumeBase
2833
+ | RelativeVolumeListBlockVolume
2834
+ | minecraftserver.Vector3,
2835
+ ): void;
2893
2836
  /**
2894
2837
  * @remarks
2895
- * Get the origin of the CompoundBlockVolume that makes up the
2896
- * block component part of selection
2897
- *
2898
2838
  * This function can't be called in read-only mode.
2899
2839
  *
2900
2840
  */
2901
- getVolumeOrigin(): minecraftserver.Vector3;
2841
+ translate(offset: minecraftserver.Vector3): void;
2842
+ }
2843
+
2844
+ export class SelectionChangeAfterEventSignal {
2845
+ private constructor();
2902
2846
  /**
2903
2847
  * @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
2848
  * This function can't be called in read-only mode.
2909
2849
  *
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.
2850
+ * This function can be called in early-execution mode.
2851
+ *
2915
2852
  */
2916
- moveBy(delta: minecraftserver.Vector3): minecraftserver.Vector3;
2853
+ subscribe(callback: (arg0: SelectionEventAfterEvent) => void): (arg0: SelectionEventAfterEvent) => void;
2917
2854
  /**
2918
2855
  * @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
2856
  * This function can't be called in read-only mode.
2924
2857
  *
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.
2858
+ * This function can be called in early-execution mode.
2859
+ *
2930
2860
  */
2931
- moveTo(location: minecraftserver.Vector3): minecraftserver.Vector3;
2861
+ unsubscribe(callback: (arg0: SelectionEventAfterEvent) => void): void;
2862
+ }
2863
+
2864
+ export class SelectionContainerBase {
2865
+ private constructor();
2866
+ }
2867
+
2868
+ // @ts-ignore Class inheritance allowed for native defined classes
2869
+ export class SelectionContainerEntity extends SelectionContainerBase {
2870
+ private constructor();
2871
+ }
2872
+
2873
+ // @ts-ignore Class inheritance allowed for native defined classes
2874
+ export class SelectionContainerVolume extends SelectionContainerBase {
2875
+ private constructor();
2876
+ readonly isEmpty: boolean;
2877
+ readonly volumeCount: number;
2932
2878
  /**
2933
2879
  * @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
2880
  * This function can't be called in read-only mode.
2939
2881
  *
2940
- * @param forceRelativity
2941
- * See the description for {@link
2942
- * minecraftserver.CompoundBlockVolume.peekLastVolume}
2943
- * @returns
2944
- * Returns undefined if the stack is empty
2945
2882
  */
2946
- peekLastVolume(
2947
- forceRelativity?: minecraftserver.CompoundBlockVolumePositionRelativity,
2948
- ): minecraftserver.CompoundBlockVolumeItem | undefined;
2883
+ add(
2884
+ volume:
2885
+ | minecraftserver.Vector3[]
2886
+ | minecraftserver.BlockVolume
2887
+ | minecraftserver.BlockVolumeBase
2888
+ | RelativeVolumeListBlockVolume
2889
+ | minecraftserver.Vector3,
2890
+ ): void;
2949
2891
  /**
2950
2892
  * @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
2893
  * This function can't be called in read-only mode.
2955
2894
  *
2895
+ */
2896
+ clear(): void;
2897
+ get(): RelativeVolumeListBlockVolume;
2898
+ /**
2956
2899
  * @throws This function can throw errors.
2900
+ *
2901
+ * {@link Error}
2957
2902
  */
2958
- popVolume(): void;
2903
+ getBoundingBox(): minecraftserver.BoundingBox;
2959
2904
  /**
2960
2905
  * @remarks
2961
- * Push a compound volume item (a volume and action pair) to
2962
- * the volume stack.
2963
- *
2964
2906
  * This function can't be called in read-only mode.
2965
2907
  *
2966
- * @param item
2967
- * Item to push to the stack
2968
- * @throws This function can throw errors.
2969
2908
  */
2970
- pushVolume(item: minecraftserver.CompoundBlockVolumeItem): void;
2909
+ moveTo(location: minecraftserver.Vector3): void;
2971
2910
  /**
2972
2911
  * @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
2912
  * This function can't be called in read-only mode.
2980
2913
  *
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
2914
  */
2990
- set(other: minecraftserver.CompoundBlockVolume | Selection): void;
2915
+ remove(
2916
+ volume:
2917
+ | minecraftserver.Vector3[]
2918
+ | minecraftserver.BlockVolume
2919
+ | minecraftserver.BlockVolumeBase
2920
+ | RelativeVolumeListBlockVolume
2921
+ | minecraftserver.Vector3,
2922
+ ): void;
2991
2923
  /**
2992
2924
  * @remarks
2993
- * Set the color of the hull of the selection object if it is
2994
- * visible.
2995
- *
2996
2925
  * This function can't be called in read-only mode.
2997
2926
  *
2998
- * @throws This function can throw errors.
2999
2927
  */
3000
- setFillColor(color: minecraftserver.RGBA): void;
2928
+ set(
2929
+ volume:
2930
+ | minecraftserver.Vector3[]
2931
+ | minecraftserver.BlockVolume
2932
+ | minecraftserver.BlockVolumeBase
2933
+ | RelativeVolumeListBlockVolume
2934
+ | minecraftserver.Vector3,
2935
+ ): void;
3001
2936
  /**
3002
2937
  * @remarks
3003
- * Set the color of the outline around the selection object if
3004
- * it is visible
3005
- *
3006
2938
  * This function can't be called in read-only mode.
3007
2939
  *
3008
- * @throws This function can throw errors.
3009
2940
  */
3010
- setOutlineColor(color: minecraftserver.RGBA): void;
2941
+ translate(offset: minecraftserver.Vector3): void;
2942
+ }
2943
+
2944
+ export class SelectionContainerVolumeEvent {
2945
+ private constructor();
2946
+ readonly 'type': SelectionVolumeEventType;
3011
2947
  }
3012
2948
 
3013
2949
  export class SelectionEventAfterEvent {
3014
2950
  private constructor();
3015
- readonly selectionEvent: PrimarySelectionChangedEvent;
2951
+ readonly volumeEventData?: SelectionContainerVolumeEvent;
3016
2952
  }
3017
2953
 
3018
2954
  /**
3019
2955
  * The SelectionManager (accessible from the {@link
3020
2956
  * 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.
2957
+ * {@link @minecraft/server-editor.Selection} objects, and
2958
+ * provides the user the ability to create new {@link
2959
+ * @minecraft/server-editor.Selection} objects for use within
2960
+ * an extension.
3024
2961
  */
3025
2962
  export class SelectionManager {
3026
2963
  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;
2964
+ readonly entity: SelectionContainerEntity;
2965
+ readonly volume: SelectionContainerVolume;
3047
2966
  }
3048
2967
 
3049
2968
  /**
@@ -3063,19 +2982,6 @@ export class SettingsManager {
3063
2982
  readonly theme: ThemeSettings;
3064
2983
  }
3065
2984
 
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
2985
  // @ts-ignore Class inheritance allowed for native defined classes
3080
2986
  export class SimpleBlockPaletteItem extends IBlockPaletteItem {
3081
2987
  constructor(displayName?: string);
@@ -3146,6 +3052,19 @@ export class SimulationState {
3146
3052
  setPaused(isPaused: boolean): void;
3147
3053
  }
3148
3054
 
3055
+ // @ts-ignore Class inheritance allowed for native defined classes
3056
+ export declare class SingleBlockBrushShape extends BrushShape {
3057
+ /**
3058
+ * @remarks
3059
+ * Constructs a new instance of the `SingleBlockBrushShape`
3060
+ * class
3061
+ *
3062
+ */
3063
+ constructor();
3064
+ createSettingsPane(): undefined;
3065
+ createShape(): RelativeVolumeListBlockVolume;
3066
+ }
3067
+
3149
3068
  export class SpeedSettings {
3150
3069
  private constructor();
3151
3070
  get<T extends keyof SpeedSettingsPropertyTypeMap>(property: T): SpeedSettingsPropertyTypeMap[T] | undefined;
@@ -3381,23 +3300,6 @@ export class TransactionManager {
3381
3300
  * @throws This function can throw errors.
3382
3301
  */
3383
3302
  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
3303
  /**
3402
3304
  * @remarks
3403
3305
  * Begin tracking block changes in a list of specified block
@@ -3412,28 +3314,11 @@ export class TransactionManager {
3412
3314
  trackBlockChangeList(locations: minecraftserver.Vector3[]): boolean;
3413
3315
  /**
3414
3316
  * @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
3317
  * This function can't be called in read-only mode.
3427
3318
  *
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
3319
  * @throws This function can throw errors.
3435
3320
  */
3436
- trackBlockChangeSelection(selection: Selection): boolean;
3321
+ trackBlockChangeVolume(blockVolume: minecraftserver.BlockVolumeBase): boolean;
3437
3322
  /**
3438
3323
  * @remarks
3439
3324
  * Perform an undo operation. This will take the last
@@ -3564,6 +3449,12 @@ export class Widget {
3564
3449
  *
3565
3450
  */
3566
3451
  collisionRadius: number;
3452
+ /**
3453
+ * @throws This property can throw when used.
3454
+ *
3455
+ * {@link InvalidWidgetError}
3456
+ */
3457
+ readonly group: WidgetGroup;
3567
3458
  /**
3568
3459
  * @remarks
3569
3460
  * This property can't be edited in read-only mode.
@@ -3592,6 +3483,22 @@ export class Widget {
3592
3483
  */
3593
3484
  snapToBlockLocation: boolean;
3594
3485
  visible: boolean;
3486
+ readonly widgetName: string;
3487
+ /**
3488
+ * @remarks
3489
+ * This function can't be called in read-only mode.
3490
+ *
3491
+ * @throws This function can throw errors.
3492
+ *
3493
+ * {@link Error}
3494
+ *
3495
+ * {@link InvalidWidgetError}
3496
+ */
3497
+ addBoundingBox(
3498
+ componentName: string,
3499
+ size: minecraftserver.Vector3,
3500
+ options?: WidgetComponentBoundingBoxOptions,
3501
+ ): WidgetComponentBoundingBox;
3595
3502
  /**
3596
3503
  * @remarks
3597
3504
  * This function can't be called in read-only mode.
@@ -3685,6 +3592,21 @@ export class Widget {
3685
3592
  * {@link InvalidWidgetError}
3686
3593
  */
3687
3594
  addTextComponent(componentName: string, label: string, options?: WidgetComponentTextOptions): WidgetComponentText;
3595
+ /**
3596
+ * @remarks
3597
+ * This function can't be called in read-only mode.
3598
+ *
3599
+ * @throws This function can throw errors.
3600
+ *
3601
+ * {@link Error}
3602
+ *
3603
+ * {@link InvalidWidgetError}
3604
+ */
3605
+ addVolumeOutline(
3606
+ componentName: string,
3607
+ volume?: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
3608
+ options?: WidgetComponentVolumeOutlineOptions,
3609
+ ): WidgetComponentVolumeOutline;
3688
3610
  /**
3689
3611
  * @remarks
3690
3612
  * This function can't be called in read-only mode.
@@ -3753,7 +3675,7 @@ export class WidgetComponentBase {
3753
3675
  /**
3754
3676
  * @throws This property can throw when used.
3755
3677
  *
3756
- * {@link minecraftserver.InvalidWidgetComponentError}
3678
+ * {@link InvalidWidgetComponentError}
3757
3679
  */
3758
3680
  readonly location: minecraftserver.Vector3;
3759
3681
  /**
@@ -3791,6 +3713,86 @@ export class WidgetComponentBase {
3791
3713
  * {@link InvalidWidgetComponentError}
3792
3714
  */
3793
3715
  delete(): void;
3716
+ }
3717
+
3718
+ // @ts-ignore Class inheritance allowed for native defined classes
3719
+ export class WidgetComponentBoundingBox extends WidgetComponentBase {
3720
+ private constructor();
3721
+ /**
3722
+ * @remarks
3723
+ * This property can't be edited in read-only mode.
3724
+ *
3725
+ */
3726
+ boundsOffset: minecraftserver.Vector3;
3727
+ /**
3728
+ * @remarks
3729
+ * This property can't be edited in read-only mode.
3730
+ *
3731
+ */
3732
+ enableResizeHandles: Axis;
3733
+ /**
3734
+ * @remarks
3735
+ * This property can't be edited in read-only mode.
3736
+ *
3737
+ */
3738
+ hullColor: minecraftserver.RGBA;
3739
+ /**
3740
+ * @remarks
3741
+ * This property can't be edited in read-only mode.
3742
+ *
3743
+ */
3744
+ mirror: minecraftserver.StructureMirrorAxis;
3745
+ /**
3746
+ * @remarks
3747
+ * This property can't be edited in read-only mode.
3748
+ *
3749
+ */
3750
+ normalizedOrigin: minecraftserver.Vector3;
3751
+ /**
3752
+ * @remarks
3753
+ * This property can't be edited in read-only mode.
3754
+ *
3755
+ */
3756
+ outlineColor: minecraftserver.RGBA;
3757
+ /**
3758
+ * @remarks
3759
+ * This property can't be edited in read-only mode.
3760
+ *
3761
+ */
3762
+ rotation: minecraftserver.StructureRotation;
3763
+ /**
3764
+ * @remarks
3765
+ * This property can't be edited in read-only mode.
3766
+ *
3767
+ */
3768
+ showWorldIntersections: boolean;
3769
+ /**
3770
+ * @remarks
3771
+ * This property can't be edited in read-only mode.
3772
+ *
3773
+ */
3774
+ size: minecraftserver.Vector3;
3775
+ /**
3776
+ * @throws This property can throw when used.
3777
+ *
3778
+ * {@link InvalidWidgetComponentError}
3779
+ */
3780
+ readonly transformedWorldVolume: minecraftserver.BlockVolume;
3781
+ /**
3782
+ * @remarks
3783
+ * This property can't be edited in read-only mode.
3784
+ *
3785
+ */
3786
+ visibleHull: boolean;
3787
+ /**
3788
+ * @remarks
3789
+ * This function can't be called in read-only mode.
3790
+ *
3791
+ * @throws This function can throw errors.
3792
+ *
3793
+ * {@link InvalidWidgetComponentError}
3794
+ */
3795
+ deactivateHandles(): void;
3794
3796
  /**
3795
3797
  * @remarks
3796
3798
  * This function can't be called in read-only mode.
@@ -3799,19 +3801,35 @@ export class WidgetComponentBase {
3799
3801
  *
3800
3802
  * {@link InvalidWidgetComponentError}
3801
3803
  */
3802
- setStateChangeEvent(eventFunction?: (arg0: WidgetComponentStateChangeEventData) => void): void;
3804
+ setStateChangeEvent(eventFunction?: (arg0: WidgetComponentBoundingBoxStateChangeEventParameters) => void): void;
3805
+ }
3806
+
3807
+ export class WidgetComponentBoundingBoxStateChangeEventParameters {
3808
+ private constructor();
3809
+ readonly boundsOffset?: minecraftserver.Vector3;
3810
+ readonly boundsSize?: minecraftserver.Vector3;
3811
+ readonly component: WidgetComponentBoundingBox;
3812
+ readonly eventType: WidgetGizmoEventType;
3813
+ readonly widget: Widget;
3803
3814
  }
3804
3815
 
3805
3816
  // @ts-ignore Class inheritance allowed for native defined classes
3806
3817
  export class WidgetComponentClipboard extends WidgetComponentBase {
3807
3818
  private constructor();
3808
- clipboardMirror: minecraftserver.StructureMirrorAxis;
3809
- clipboardNormalizedOrigin: minecraftserver.Vector3;
3819
+ /**
3820
+ * @remarks
3821
+ * This property can't be edited in read-only mode.
3822
+ *
3823
+ */
3810
3824
  clipboardOffset: minecraftserver.Vector3;
3811
- clipboardRotation: minecraftserver.StructureRotation;
3812
- fillColor: minecraftserver.RGBA;
3825
+ highlightHullColor: minecraftserver.RGBA;
3826
+ highlightOutlineColor: minecraftserver.RGBA;
3827
+ hullColor: minecraftserver.RGBA;
3828
+ mirror: minecraftserver.StructureMirrorAxis;
3829
+ normalizedOrigin: minecraftserver.Vector3;
3813
3830
  outlineColor: minecraftserver.RGBA;
3814
- showBounds: boolean;
3831
+ rotation: minecraftserver.StructureRotation;
3832
+ showOutline: boolean;
3815
3833
  }
3816
3834
 
3817
3835
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -3838,6 +3856,34 @@ export class WidgetComponentEntity extends WidgetComponentBase {
3838
3856
  export class WidgetComponentGizmo extends WidgetComponentBase {
3839
3857
  private constructor();
3840
3858
  activated: boolean;
3859
+ /**
3860
+ * @remarks
3861
+ * This property can't be edited in read-only mode.
3862
+ *
3863
+ */
3864
+ enabledAxes: Axis;
3865
+ /**
3866
+ * @remarks
3867
+ * This property can't be edited in read-only mode.
3868
+ *
3869
+ */
3870
+ normalizedOffsetOverride?: minecraftserver.Vector3;
3871
+ /**
3872
+ * @remarks
3873
+ * This function can't be called in read-only mode.
3874
+ *
3875
+ * @throws This function can throw errors.
3876
+ *
3877
+ * {@link InvalidWidgetComponentError}
3878
+ */
3879
+ setStateChangeEvent(eventFunction?: (arg0: WidgetComponentGizmoStateChangeEventParameters) => void): void;
3880
+ }
3881
+
3882
+ export class WidgetComponentGizmoStateChangeEventParameters {
3883
+ private constructor();
3884
+ readonly component: WidgetComponentGizmo;
3885
+ readonly eventType?: WidgetGizmoEventType;
3886
+ readonly widget: Widget;
3841
3887
  }
3842
3888
 
3843
3889
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -3956,57 +4002,156 @@ export class WidgetComponentRenderPrimitiveTypeLine extends WidgetComponentRende
3956
4002
  * This property can't be edited in read-only mode.
3957
4003
  *
3958
4004
  */
3959
- color: minecraftserver.RGBA;
4005
+ color: minecraftserver.RGBA;
4006
+ /**
4007
+ * @remarks
4008
+ * This property can't be edited in read-only mode.
4009
+ *
4010
+ */
4011
+ end: minecraftserver.Vector3;
4012
+ /**
4013
+ * @remarks
4014
+ * This property can't be edited in read-only mode.
4015
+ *
4016
+ */
4017
+ start: minecraftserver.Vector3;
4018
+ constructor(start: minecraftserver.Vector3, end: minecraftserver.Vector3, color: minecraftserver.RGBA);
4019
+ }
4020
+
4021
+ // @ts-ignore Class inheritance allowed for native defined classes
4022
+ export class WidgetComponentSpline extends WidgetComponentBase {
4023
+ private constructor();
4024
+ /**
4025
+ * @remarks
4026
+ * This property can't be edited in read-only mode.
4027
+ *
4028
+ */
4029
+ splineType: SplineType;
4030
+ /**
4031
+ * @remarks
4032
+ * This function can't be called in read-only mode.
4033
+ *
4034
+ * @throws This function can throw errors.
4035
+ *
4036
+ * {@link Error}
4037
+ *
4038
+ * {@link InvalidWidgetComponentError}
4039
+ *
4040
+ * {@link InvalidWidgetError}
4041
+ */
4042
+ getControlPoints(): Widget[];
4043
+ /**
4044
+ * @remarks
4045
+ * This function can't be called in read-only mode.
4046
+ *
4047
+ * @throws This function can throw errors.
4048
+ *
4049
+ * {@link Error}
4050
+ *
4051
+ * {@link InvalidWidgetComponentError}
4052
+ *
4053
+ * {@link InvalidWidgetError}
4054
+ */
4055
+ getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
4056
+ /**
4057
+ * @remarks
4058
+ * This function can't be called in read-only mode.
4059
+ *
4060
+ * @throws This function can throw errors.
4061
+ *
4062
+ * {@link InvalidWidgetComponentError}
4063
+ *
4064
+ * {@link InvalidWidgetError}
4065
+ */
4066
+ setControlPoints(widgetList: Widget[]): void;
4067
+ }
4068
+
4069
+ // @ts-ignore Class inheritance allowed for native defined classes
4070
+ export class WidgetComponentText extends WidgetComponentBase {
4071
+ private constructor();
4072
+ /**
4073
+ * @remarks
4074
+ * This property can't be edited in read-only mode.
4075
+ *
4076
+ */
4077
+ color: minecraftserver.RGBA;
4078
+ /**
4079
+ * @remarks
4080
+ * This property can't be edited in read-only mode.
4081
+ *
4082
+ */
4083
+ label: string;
4084
+ }
4085
+
4086
+ // @ts-ignore Class inheritance allowed for native defined classes
4087
+ export class WidgetComponentVolumeOutline extends WidgetComponentBase {
4088
+ private constructor();
4089
+ /**
4090
+ * @remarks
4091
+ * This property can't be edited in read-only mode.
4092
+ *
4093
+ */
4094
+ highlightHullColor: minecraftserver.RGBA;
4095
+ /**
4096
+ * @remarks
4097
+ * This property can't be edited in read-only mode.
4098
+ *
4099
+ */
4100
+ highlightOutlineColor: minecraftserver.RGBA;
4101
+ /**
4102
+ * @remarks
4103
+ * This property can't be edited in read-only mode.
4104
+ *
4105
+ */
4106
+ hullColor: minecraftserver.RGBA;
4107
+ /**
4108
+ * @remarks
4109
+ * This property can't be edited in read-only mode.
4110
+ *
4111
+ */
4112
+ mirror: minecraftserver.StructureMirrorAxis;
4113
+ /**
4114
+ * @remarks
4115
+ * This property can't be edited in read-only mode.
4116
+ *
4117
+ */
4118
+ normalizedOrigin: minecraftserver.Vector3;
3960
4119
  /**
3961
4120
  * @remarks
3962
4121
  * This property can't be edited in read-only mode.
3963
4122
  *
3964
4123
  */
3965
- end: minecraftserver.Vector3;
4124
+ outlineColor: minecraftserver.RGBA;
3966
4125
  /**
3967
4126
  * @remarks
3968
4127
  * This property can't be edited in read-only mode.
3969
4128
  *
3970
4129
  */
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();
4130
+ rotation: minecraftserver.StructureRotation;
3978
4131
  /**
3979
4132
  * @remarks
3980
4133
  * This property can't be edited in read-only mode.
3981
4134
  *
3982
4135
  */
3983
- splineType: SplineType;
4136
+ showHighlightOutline: boolean;
3984
4137
  /**
3985
4138
  * @remarks
3986
- * This function can't be called in read-only mode.
3987
- *
3988
- * @throws This function can throw errors.
4139
+ * This property can't be edited in read-only mode.
3989
4140
  *
3990
- * {@link Error}
4141
+ */
4142
+ showOutline: boolean;
4143
+ /**
4144
+ * @throws This property can throw when used.
3991
4145
  *
3992
4146
  * {@link InvalidWidgetComponentError}
3993
- *
3994
- * {@link InvalidWidgetError}
3995
4147
  */
3996
- getControlPoints(): Widget[];
4148
+ readonly transformedWorldVolume: minecraftserver.BlockVolume;
3997
4149
  /**
3998
4150
  * @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}
4151
+ * This property can't be edited in read-only mode.
4006
4152
  *
4007
- * {@link InvalidWidgetError}
4008
4153
  */
4009
- getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
4154
+ volumeOffset: minecraftserver.Vector3;
4010
4155
  /**
4011
4156
  * @remarks
4012
4157
  * This function can't be called in read-only mode.
@@ -4014,35 +4159,24 @@ export class WidgetComponentSpline extends WidgetComponentBase {
4014
4159
  * @throws This function can throw errors.
4015
4160
  *
4016
4161
  * {@link InvalidWidgetComponentError}
4017
- *
4018
- * {@link InvalidWidgetError}
4019
4162
  */
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();
4163
+ getVolume(): RelativeVolumeListBlockVolume | undefined;
4034
4164
  /**
4035
4165
  * @remarks
4036
- * This property can't be edited in read-only mode.
4166
+ * This function can't be called in read-only mode.
4037
4167
  *
4038
- */
4039
- color: minecraftserver.RGBA;
4040
- /**
4041
- * @remarks
4042
- * This property can't be edited in read-only mode.
4168
+ * @throws This function can throw errors.
4043
4169
  *
4170
+ * {@link InvalidWidgetComponentError}
4044
4171
  */
4045
- label: string;
4172
+ setVolume(
4173
+ volumeToSet?:
4174
+ | minecraftserver.Vector3[]
4175
+ | minecraftserver.BlockVolume
4176
+ | minecraftserver.BlockVolumeBase
4177
+ | RelativeVolumeListBlockVolume
4178
+ | minecraftserver.Vector3,
4179
+ ): void;
4046
4180
  }
4047
4181
 
4048
4182
  export class WidgetGroup {
@@ -4071,6 +4205,8 @@ export class WidgetGroup {
4071
4205
  *
4072
4206
  * @throws This function can throw errors.
4073
4207
  *
4208
+ * {@link Error}
4209
+ *
4074
4210
  * {@link InvalidWidgetGroupError}
4075
4211
  */
4076
4212
  createWidget(location: minecraftserver.Vector3, options?: WidgetCreateOptions): Widget;
@@ -4177,11 +4313,6 @@ export interface BlockMaskList {
4177
4313
  maskType: BlockMaskListType;
4178
4314
  }
4179
4315
 
4180
- export interface BrushShape {
4181
- icon: string;
4182
- name: string;
4183
- }
4184
-
4185
4316
  /**
4186
4317
  * Represents a UI session for a given player
4187
4318
  */
@@ -5106,24 +5237,6 @@ export interface IDisposable {
5106
5237
  teardown(): void;
5107
5238
  }
5108
5239
 
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
5240
  /**
5128
5241
  * A property item which supports Dropdown properties
5129
5242
  */
@@ -5204,20 +5317,6 @@ export interface IDropdownPropertyItemEntry {
5204
5317
  readonly value: number;
5205
5318
  }
5206
5319
 
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
5320
  /**
5222
5321
  * Optional properties for Dropdown property item
5223
5322
  */
@@ -5845,29 +5944,6 @@ export interface IProgressIndicatorPropertyItemOptions extends IPropertyItemOpti
5845
5944
  variant?: ProgressIndicatorPropertyItemVariant;
5846
5945
  }
5847
5946
 
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
5947
  /**
5872
5948
  * Common base for all property items
5873
5949
  */
@@ -5904,33 +5980,6 @@ export interface IPropertyItemBase {
5904
5980
  visible: boolean;
5905
5981
  }
5906
5982
 
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
5983
  /**
5935
5984
  * Common optional properties for property items
5936
5985
  */
@@ -5951,117 +6000,6 @@ export interface IPropertyItemOptionsBase {
5951
6000
  visible?: boolean;
5952
6001
  }
5953
6002
 
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
6003
  /**
6066
6004
  * Property pane present dynamic content. It can be associated
6067
6005
  * with an object and presented with different kind of
@@ -6099,16 +6037,6 @@ export interface IPropertyPane extends IPane {
6099
6037
  *
6100
6038
  */
6101
6039
  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
6040
  /**
6113
6041
  * @remarks
6114
6042
  * Adds a button to the pane and binds the specified action to
@@ -6134,16 +6062,6 @@ export interface IPropertyPane extends IPane {
6134
6062
  value: IObservableProp<minecraftserver.RGBA>,
6135
6063
  options?: IColorPickerPropertyItemOptions,
6136
6064
  ): 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
6065
  /**
6148
6066
  * @remarks
6149
6067
  * Adds a combo box item to the pane.
@@ -6168,21 +6086,6 @@ export interface IPropertyPane extends IPane {
6168
6086
  *
6169
6087
  */
6170
6088
  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
6089
  /**
6187
6090
  * @remarks
6188
6091
  * Adds an image item to the pane.
@@ -6204,16 +6107,6 @@ export interface IPropertyPane extends IPane {
6204
6107
  *
6205
6108
  */
6206
6109
  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
6110
  /**
6218
6111
  * @remarks
6219
6112
  * Adds a Progress Indicator item to the pane.
@@ -6226,16 +6119,6 @@ export interface IPropertyPane extends IPane {
6226
6119
  *
6227
6120
  */
6228
6121
  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
6122
  /**
6240
6123
  * @remarks
6241
6124
  * Adds a multiline Text item to the pane.
@@ -6257,16 +6140,6 @@ export interface IPropertyPane extends IPane {
6257
6140
  value: IObservableProp<minecraftserver.Vector3>,
6258
6141
  options?: IVector3PropertyItemOptions,
6259
6142
  ): 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
6143
  /**
6271
6144
  * @remarks
6272
6145
  * Collapse the pane.
@@ -7504,13 +7377,6 @@ export interface QuickExtrudeProperties {
7504
7377
  startingLocation?: minecraftserver.Vector3;
7505
7378
  }
7506
7379
 
7507
- export interface SettingsUIElementOptions {
7508
- dropdownItems?: string[];
7509
- max?: number;
7510
- min?: number;
7511
- refreshOnChange?: boolean;
7512
- }
7513
-
7514
7380
  export interface WeightedBlock {
7515
7381
  block: minecraftserver.BlockType;
7516
7382
  weight: number;
@@ -7519,19 +7385,36 @@ export interface WeightedBlock {
7519
7385
  export interface WidgetComponentBaseOptions {
7520
7386
  lockToSurface?: boolean;
7521
7387
  offset?: minecraftserver.Vector3;
7522
- stateChangeEvent?: (arg0: WidgetComponentStateChangeEventData) => void;
7523
7388
  visible?: boolean;
7524
7389
  }
7525
7390
 
7391
+ // @ts-ignore Class inheritance allowed for native defined classes
7392
+ export interface WidgetComponentBoundingBoxOptions extends WidgetComponentBaseOptions {
7393
+ boundsOffset?: minecraftserver.Vector3;
7394
+ enableResizeHandles?: Axis;
7395
+ hullColor?: minecraftserver.RGBA;
7396
+ maxSize?: minecraftserver.Vector3;
7397
+ minSize?: minecraftserver.Vector3;
7398
+ mirror?: minecraftserver.StructureMirrorAxis;
7399
+ normalizedOrigin?: minecraftserver.Vector3;
7400
+ outlineColor?: minecraftserver.RGBA;
7401
+ rotation?: minecraftserver.StructureRotation;
7402
+ showWorldIntersections?: boolean;
7403
+ stateChangeEvent?: (arg0: WidgetComponentBoundingBoxStateChangeEventParameters) => void;
7404
+ visibleHull?: boolean;
7405
+ }
7406
+
7526
7407
  // @ts-ignore Class inheritance allowed for native defined classes
7527
7408
  export interface WidgetComponentClipboardOptions extends WidgetComponentBaseOptions {
7528
- boundsFillColor?: minecraftserver.RGBA;
7529
- boundsOutlineColor?: minecraftserver.RGBA;
7530
- clipboardMirror?: minecraftserver.StructureMirrorAxis;
7531
- clipboardNormalizedOrigin?: minecraftserver.Vector3;
7532
7409
  clipboardOffset?: minecraftserver.Vector3;
7533
- clipboardRotation?: minecraftserver.StructureRotation;
7534
- showBounds?: boolean;
7410
+ highlightHullColor?: minecraftserver.RGBA;
7411
+ highlightOutlineColor?: minecraftserver.RGBA;
7412
+ hullColor?: minecraftserver.RGBA;
7413
+ mirror?: minecraftserver.StructureMirrorAxis;
7414
+ normalizedOrigin?: minecraftserver.Vector3;
7415
+ outlineColor?: minecraftserver.RGBA;
7416
+ rotation?: minecraftserver.StructureRotation;
7417
+ showOutline?: boolean;
7535
7418
  }
7536
7419
 
7537
7420
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -7545,6 +7428,8 @@ export interface WidgetComponentEntityOptions extends WidgetComponentBaseOptions
7545
7428
  export interface WidgetComponentGizmoOptions extends WidgetComponentBaseOptions {
7546
7429
  axes?: Axis;
7547
7430
  enablePlanes?: boolean;
7431
+ normalizedAutoOffset?: minecraftserver.Vector3;
7432
+ stateChangeEvent?: (arg0: WidgetComponentGizmoStateChangeEventParameters) => void;
7548
7433
  }
7549
7434
 
7550
7435
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -7564,6 +7449,20 @@ export interface WidgetComponentTextOptions extends WidgetComponentBaseOptions {
7564
7449
  color?: minecraftserver.RGBA;
7565
7450
  }
7566
7451
 
7452
+ // @ts-ignore Class inheritance allowed for native defined classes
7453
+ export interface WidgetComponentVolumeOutlineOptions extends WidgetComponentBaseOptions {
7454
+ highlightHullColor?: minecraftserver.RGBA;
7455
+ highlightOutlineColor?: minecraftserver.RGBA;
7456
+ hullColor?: minecraftserver.RGBA;
7457
+ mirror?: minecraftserver.StructureMirrorAxis;
7458
+ normalizedOrigin?: minecraftserver.Vector3;
7459
+ outlineColor?: minecraftserver.RGBA;
7460
+ rotation?: minecraftserver.StructureRotation;
7461
+ showHighlightOutline?: boolean;
7462
+ showOutline?: boolean;
7463
+ volumeOffset?: minecraftserver.Vector3;
7464
+ }
7465
+
7567
7466
  export interface WidgetCreateOptions {
7568
7467
  bindPositionToBlockCursor?: boolean;
7569
7468
  collisionOffset?: minecraftserver.Vector3;
@@ -7573,6 +7472,9 @@ export interface WidgetCreateOptions {
7573
7472
  snapToBlockLocation?: boolean;
7574
7473
  stateChangeEvent?: (arg0: WidgetStateChangeEventData) => void;
7575
7474
  visible?: boolean;
7475
+ widgetName?: string;
7476
+ worldBoundsMax?: minecraftserver.Vector3;
7477
+ worldBoundsMin?: minecraftserver.Vector3;
7576
7478
  }
7577
7479
 
7578
7480
  export interface WidgetGroupCreateOptions {
@@ -7596,22 +7498,6 @@ export class InvalidWidgetGroupError extends Error {
7596
7498
  private constructor();
7597
7499
  }
7598
7500
 
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
7501
  /**
7616
7502
  * @remarks
7617
7503
  * Deserialize anything, defaults to the same behavior as
@@ -7625,13 +7511,11 @@ export declare function deserialize(s: string): unknown;
7625
7511
  * Executes an operation over a selection via chunks to allow
7626
7512
  * splitting operation over multiple game ticks
7627
7513
  *
7628
- * @param selection
7629
- * the selection to iterator over
7630
7514
  * @param operation
7631
7515
  * the operation to apply over each block location
7632
7516
  */
7633
7517
  export declare function executeLargeOperation(
7634
- selection: Selection,
7518
+ volume: RelativeVolumeListBlockVolume,
7635
7519
  operation: (blockLocation: minecraftserver.Vector3) => void,
7636
7520
  ): Promise<void>;
7637
7521
  /**
@@ -7658,6 +7542,14 @@ export declare function executeLargeOperationFromIterator(
7658
7542
  * Default allowed block list
7659
7543
  */
7660
7544
  export declare function getDefaultAllowBlockList(): string[];
7545
+ /**
7546
+ * @remarks
7547
+ * Returns a list of default core brush shapes
7548
+ *
7549
+ * @param excludeList
7550
+ * List of shape types to exclude
7551
+ */
7552
+ export declare function getDefaultBrushShapes(excludeList?: CoreBrushShapeType[]): BrushShape[];
7661
7553
  /**
7662
7554
  * @remarks
7663
7555
  * Creates an observable object that stores a value state.