@minecraft/server-editor 0.1.0-beta.1.21.120-preview.20 → 0.1.0-beta.1.21.120-preview.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +445 -228
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -339,6 +339,7 @@ export declare enum ImageResourceType {
|
|
|
339
339
|
Default = 0,
|
|
340
340
|
Block = 1,
|
|
341
341
|
Icon = 2,
|
|
342
|
+
Structure = 3,
|
|
342
343
|
}
|
|
343
344
|
|
|
344
345
|
/**
|
|
@@ -1105,6 +1106,7 @@ export declare enum PropertyItemType {
|
|
|
1105
1106
|
Dropdown = 'editorUI:Dropdown',
|
|
1106
1107
|
Image = 'editorUI:Image',
|
|
1107
1108
|
Link = 'editorUI:Link',
|
|
1109
|
+
Menu = 'editorUI:Menu',
|
|
1108
1110
|
Number = 'editorUI:Number',
|
|
1109
1111
|
NumberTimeline = 'editorUI:NumberTimeline',
|
|
1110
1112
|
ProgressIndicator = 'editorUI:ProgressIndicator',
|
|
@@ -1113,6 +1115,7 @@ export declare enum PropertyItemType {
|
|
|
1113
1115
|
SubPane = 'editorUI:SubPane',
|
|
1114
1116
|
Text = 'editorUI:Text',
|
|
1115
1117
|
ToggleGroup = 'editorUI:ToggleGroup',
|
|
1118
|
+
Vector2 = 'editorUI:Vector2',
|
|
1116
1119
|
Vector3 = 'editorUI:Vector3',
|
|
1117
1120
|
}
|
|
1118
1121
|
|
|
@@ -1693,7 +1696,7 @@ export class BlockPaletteManager {
|
|
|
1693
1696
|
/**
|
|
1694
1697
|
* @throws This function can throw errors.
|
|
1695
1698
|
*/
|
|
1696
|
-
getSelectedBlockType():
|
|
1699
|
+
getSelectedBlockType(): minecraftserver.BlockType;
|
|
1697
1700
|
getSelectedItem(): IBlockPaletteItem;
|
|
1698
1701
|
/**
|
|
1699
1702
|
* @remarks
|
|
@@ -1761,11 +1764,8 @@ export class BlockUtilities {
|
|
|
1761
1764
|
* @throws This function can throw errors.
|
|
1762
1765
|
*/
|
|
1763
1766
|
fillVolume(
|
|
1764
|
-
volume:
|
|
1765
|
-
|
|
1766
|
-
| minecraftserverbindings.CompoundBlockVolume
|
|
1767
|
-
| RelativeVolumeListBlockVolume,
|
|
1768
|
-
block?: minecraftserverbindings.BlockPermutation | minecraftserverbindings.BlockType | string,
|
|
1767
|
+
volume: minecraftserver.BlockVolumeBase | minecraftserver.CompoundBlockVolume | RelativeVolumeListBlockVolume,
|
|
1768
|
+
block?: minecraftserver.BlockPermutation | minecraftserver.BlockType | string,
|
|
1769
1769
|
): void;
|
|
1770
1770
|
/**
|
|
1771
1771
|
* @remarks
|
|
@@ -1773,7 +1773,7 @@ export class BlockUtilities {
|
|
|
1773
1773
|
*
|
|
1774
1774
|
*/
|
|
1775
1775
|
findObscuredBlocksWithinVolume(
|
|
1776
|
-
volume:
|
|
1776
|
+
volume: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
|
|
1777
1777
|
): RelativeVolumeListBlockVolume;
|
|
1778
1778
|
/**
|
|
1779
1779
|
* @remarks
|
|
@@ -1781,32 +1781,32 @@ export class BlockUtilities {
|
|
|
1781
1781
|
*
|
|
1782
1782
|
* @throws This function can throw errors.
|
|
1783
1783
|
*/
|
|
1784
|
-
getContiguousSelection(properties?: ContiguousSelectionProperties):
|
|
1784
|
+
getContiguousSelection(properties?: ContiguousSelectionProperties): minecraftserver.CompoundBlockVolume;
|
|
1785
1785
|
/**
|
|
1786
1786
|
* @remarks
|
|
1787
1787
|
* This function can't be called in read-only mode.
|
|
1788
1788
|
*
|
|
1789
1789
|
*/
|
|
1790
|
-
getDimensionLocationBoundingBox():
|
|
1790
|
+
getDimensionLocationBoundingBox(): minecraftserver.BlockBoundingBox;
|
|
1791
1791
|
/**
|
|
1792
1792
|
* @remarks
|
|
1793
1793
|
* This function can't be called in read-only mode.
|
|
1794
1794
|
*
|
|
1795
1795
|
*/
|
|
1796
|
-
getDimensionMaxLocation():
|
|
1796
|
+
getDimensionMaxLocation(): minecraftserver.Vector3;
|
|
1797
1797
|
/**
|
|
1798
1798
|
* @remarks
|
|
1799
1799
|
* This function can't be called in read-only mode.
|
|
1800
1800
|
*
|
|
1801
1801
|
*/
|
|
1802
|
-
getDimensionMinLocation():
|
|
1802
|
+
getDimensionMinLocation(): minecraftserver.Vector3;
|
|
1803
1803
|
/**
|
|
1804
1804
|
* @remarks
|
|
1805
1805
|
* This function can't be called in read-only mode.
|
|
1806
1806
|
*
|
|
1807
1807
|
* @throws This function can throw errors.
|
|
1808
1808
|
*/
|
|
1809
|
-
getFacePreviewSelection(properties?: QuickExtrudeProperties):
|
|
1809
|
+
getFacePreviewSelection(properties?: QuickExtrudeProperties): minecraftserver.ListBlockVolume;
|
|
1810
1810
|
/**
|
|
1811
1811
|
* @remarks
|
|
1812
1812
|
* This function can't be called in read-only mode.
|
|
@@ -1814,10 +1814,10 @@ export class BlockUtilities {
|
|
|
1814
1814
|
*/
|
|
1815
1815
|
isLocationInsideCurrentDimensionBounds(
|
|
1816
1816
|
locationOrVolumeOrBounds:
|
|
1817
|
-
|
|
|
1818
|
-
|
|
|
1817
|
+
| minecraftserver.BlockBoundingBox
|
|
1818
|
+
| minecraftserver.BlockVolumeBase
|
|
1819
1819
|
| RelativeVolumeListBlockVolume
|
|
1820
|
-
|
|
|
1820
|
+
| minecraftserver.Vector3,
|
|
1821
1821
|
): boolean;
|
|
1822
1822
|
/**
|
|
1823
1823
|
* @remarks
|
|
@@ -1832,7 +1832,7 @@ export class BlockUtilities {
|
|
|
1832
1832
|
*
|
|
1833
1833
|
*/
|
|
1834
1834
|
shrinkWrapVolume(
|
|
1835
|
-
volume:
|
|
1835
|
+
volume: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
|
|
1836
1836
|
): RelativeVolumeListBlockVolume;
|
|
1837
1837
|
/**
|
|
1838
1838
|
* @remarks
|
|
@@ -1841,7 +1841,7 @@ export class BlockUtilities {
|
|
|
1841
1841
|
* @throws This function can throw errors.
|
|
1842
1842
|
*/
|
|
1843
1843
|
trimVolumeToFitContents(
|
|
1844
|
-
volume:
|
|
1844
|
+
volume: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
|
|
1845
1845
|
retainMarqueeAfterTrimming: boolean,
|
|
1846
1846
|
ignoreLiquid: boolean,
|
|
1847
1847
|
ignoreNoCollision: boolean,
|
|
@@ -1908,7 +1908,7 @@ export class BrushShapeManager {
|
|
|
1908
1908
|
* This function can't be called in read-only mode.
|
|
1909
1909
|
*
|
|
1910
1910
|
*/
|
|
1911
|
-
enableItemPlacement(itemType:
|
|
1911
|
+
enableItemPlacement(itemType: minecraftserver.ItemType, data?: number): void;
|
|
1912
1912
|
/**
|
|
1913
1913
|
* @remarks
|
|
1914
1914
|
* This function can't be called in read-only mode.
|
|
@@ -1921,7 +1921,7 @@ export class BrushShapeManager {
|
|
|
1921
1921
|
* This function can't be called in read-only mode.
|
|
1922
1922
|
*
|
|
1923
1923
|
*/
|
|
1924
|
-
getBrushShapeOffset():
|
|
1924
|
+
getBrushShapeOffset(): minecraftserver.Vector3;
|
|
1925
1925
|
/**
|
|
1926
1926
|
* @remarks
|
|
1927
1927
|
* This function can't be called in read-only mode.
|
|
@@ -1967,13 +1967,13 @@ export class BrushShapeManager {
|
|
|
1967
1967
|
* This function can't be called in read-only mode.
|
|
1968
1968
|
*
|
|
1969
1969
|
*/
|
|
1970
|
-
setBrushShape(shape:
|
|
1970
|
+
setBrushShape(shape: minecraftserver.Vector3[] | RelativeVolumeListBlockVolume): void;
|
|
1971
1971
|
/**
|
|
1972
1972
|
* @remarks
|
|
1973
1973
|
* This function can't be called in read-only mode.
|
|
1974
1974
|
*
|
|
1975
1975
|
*/
|
|
1976
|
-
setBrushShapeOffset(offset:
|
|
1976
|
+
setBrushShapeOffset(offset: minecraftserver.Vector3): void;
|
|
1977
1977
|
/**
|
|
1978
1978
|
* @remarks
|
|
1979
1979
|
* This function can't be called in read-only mode.
|
|
@@ -2071,9 +2071,9 @@ export class ClipboardItem {
|
|
|
2071
2071
|
*
|
|
2072
2072
|
*/
|
|
2073
2073
|
readonly isEmpty: boolean;
|
|
2074
|
-
readonly normalizedOrigin:
|
|
2075
|
-
readonly originalWorldLocation:
|
|
2076
|
-
readonly size:
|
|
2074
|
+
readonly normalizedOrigin: minecraftserver.Vector3;
|
|
2075
|
+
readonly originalWorldLocation: minecraftserver.Vector3;
|
|
2076
|
+
readonly size: minecraftserver.Vector3;
|
|
2077
2077
|
/**
|
|
2078
2078
|
* @remarks
|
|
2079
2079
|
* Clear the contents of the item
|
|
@@ -2090,7 +2090,7 @@ export class ClipboardItem {
|
|
|
2090
2090
|
* @throws This function can throw errors.
|
|
2091
2091
|
*/
|
|
2092
2092
|
getPredictedWriteVolume(
|
|
2093
|
-
location:
|
|
2093
|
+
location: minecraftserver.Vector3,
|
|
2094
2094
|
options?: ClipboardWriteOptions,
|
|
2095
2095
|
): RelativeVolumeListBlockVolume;
|
|
2096
2096
|
/**
|
|
@@ -2109,7 +2109,7 @@ export class ClipboardItem {
|
|
|
2109
2109
|
*
|
|
2110
2110
|
* @throws This function can throw errors.
|
|
2111
2111
|
*/
|
|
2112
|
-
readFromWorld(source:
|
|
2112
|
+
readFromWorld(source: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume): void;
|
|
2113
2113
|
/**
|
|
2114
2114
|
* @remarks
|
|
2115
2115
|
* Apply the contents of a ClipboardItem to the world at a
|
|
@@ -2130,7 +2130,7 @@ export class ClipboardItem {
|
|
|
2130
2130
|
* Success or Failure
|
|
2131
2131
|
* @throws This function can throw errors.
|
|
2132
2132
|
*/
|
|
2133
|
-
writeToWorld(location:
|
|
2133
|
+
writeToWorld(location: minecraftserver.Vector3, options?: ClipboardWriteOptions): boolean;
|
|
2134
2134
|
}
|
|
2135
2135
|
|
|
2136
2136
|
/**
|
|
@@ -2234,7 +2234,7 @@ export class CurrentThemeChangeAfterEventSignal {
|
|
|
2234
2234
|
|
|
2235
2235
|
export class CurrentThemeColorChangeAfterEvent {
|
|
2236
2236
|
private constructor();
|
|
2237
|
-
readonly color:
|
|
2237
|
+
readonly color: minecraftserver.RGBA;
|
|
2238
2238
|
readonly colorKey: string;
|
|
2239
2239
|
}
|
|
2240
2240
|
|
|
@@ -2314,7 +2314,7 @@ export class Cursor {
|
|
|
2314
2314
|
*
|
|
2315
2315
|
* @throws This function can throw errors.
|
|
2316
2316
|
*/
|
|
2317
|
-
getPosition():
|
|
2317
|
+
getPosition(): minecraftserver.Vector3;
|
|
2318
2318
|
/**
|
|
2319
2319
|
* @remarks
|
|
2320
2320
|
* Get a property object which represents the current
|
|
@@ -2357,7 +2357,7 @@ export class Cursor {
|
|
|
2357
2357
|
* movement was restricted)
|
|
2358
2358
|
* @throws This function can throw errors.
|
|
2359
2359
|
*/
|
|
2360
|
-
moveBy(offset:
|
|
2360
|
+
moveBy(offset: minecraftserver.Vector3): minecraftserver.Vector3;
|
|
2361
2361
|
/**
|
|
2362
2362
|
* @remarks
|
|
2363
2363
|
* Reset the 3D block cursor to the system default state
|
|
@@ -2448,9 +2448,9 @@ export declare class CylinderBrushShape extends BrushShape {
|
|
|
2448
2448
|
|
|
2449
2449
|
export class EditorConstants {
|
|
2450
2450
|
private constructor();
|
|
2451
|
-
readonly maxSelectionSize:
|
|
2452
|
-
readonly maxStructureOffset:
|
|
2453
|
-
readonly minStructureOffset:
|
|
2451
|
+
readonly maxSelectionSize: minecraftserver.Vector3;
|
|
2452
|
+
readonly maxStructureOffset: minecraftserver.Vector3;
|
|
2453
|
+
readonly minStructureOffset: minecraftserver.Vector3;
|
|
2454
2454
|
}
|
|
2455
2455
|
|
|
2456
2456
|
export class EditorStructure {
|
|
@@ -2458,13 +2458,13 @@ export class EditorStructure {
|
|
|
2458
2458
|
/**
|
|
2459
2459
|
* @throws This property can throw when used.
|
|
2460
2460
|
*
|
|
2461
|
-
* {@link
|
|
2461
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2462
2462
|
*/
|
|
2463
2463
|
readonly description: string;
|
|
2464
2464
|
/**
|
|
2465
2465
|
* @throws This property can throw when used.
|
|
2466
2466
|
*
|
|
2467
|
-
* {@link
|
|
2467
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2468
2468
|
*/
|
|
2469
2469
|
readonly displayName: string;
|
|
2470
2470
|
readonly id: string;
|
|
@@ -2472,49 +2472,49 @@ export class EditorStructure {
|
|
|
2472
2472
|
/**
|
|
2473
2473
|
* @throws This property can throw when used.
|
|
2474
2474
|
*
|
|
2475
|
-
* {@link
|
|
2475
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2476
2476
|
*/
|
|
2477
|
-
readonly normalizedOrigin:
|
|
2477
|
+
readonly normalizedOrigin: minecraftserver.Vector3;
|
|
2478
2478
|
/**
|
|
2479
2479
|
* @throws This property can throw when used.
|
|
2480
2480
|
*
|
|
2481
|
-
* {@link
|
|
2481
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2482
2482
|
*/
|
|
2483
2483
|
readonly notes: string;
|
|
2484
2484
|
/**
|
|
2485
2485
|
* @throws This property can throw when used.
|
|
2486
2486
|
*
|
|
2487
|
-
* {@link
|
|
2487
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2488
2488
|
*/
|
|
2489
|
-
readonly offset:
|
|
2489
|
+
readonly offset: minecraftserver.Vector3;
|
|
2490
2490
|
/**
|
|
2491
2491
|
* @throws This property can throw when used.
|
|
2492
2492
|
*
|
|
2493
|
-
* {@link
|
|
2493
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2494
2494
|
*/
|
|
2495
|
-
readonly originalWorldLocation:
|
|
2495
|
+
readonly originalWorldLocation: minecraftserver.Vector3;
|
|
2496
2496
|
/**
|
|
2497
2497
|
* @throws This property can throw when used.
|
|
2498
2498
|
*
|
|
2499
|
-
* {@link
|
|
2499
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2500
2500
|
*/
|
|
2501
|
-
readonly size:
|
|
2501
|
+
readonly size: minecraftserver.Vector3;
|
|
2502
2502
|
/**
|
|
2503
2503
|
* @throws This property can throw when used.
|
|
2504
2504
|
*
|
|
2505
|
-
* {@link
|
|
2505
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2506
2506
|
*/
|
|
2507
2507
|
readonly structureFullName: string;
|
|
2508
2508
|
/**
|
|
2509
2509
|
* @throws This property can throw when used.
|
|
2510
2510
|
*
|
|
2511
|
-
* {@link
|
|
2511
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2512
2512
|
*/
|
|
2513
2513
|
readonly structureName: string;
|
|
2514
2514
|
/**
|
|
2515
2515
|
* @throws This property can throw when used.
|
|
2516
2516
|
*
|
|
2517
|
-
* {@link
|
|
2517
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2518
2518
|
*/
|
|
2519
2519
|
readonly structureNamespace: string;
|
|
2520
2520
|
/**
|
|
@@ -2522,23 +2522,21 @@ export class EditorStructure {
|
|
|
2522
2522
|
*
|
|
2523
2523
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
2524
2524
|
*
|
|
2525
|
-
* {@link
|
|
2525
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2526
2526
|
*/
|
|
2527
|
-
getBlockPermutation(
|
|
2528
|
-
location: minecraftserverbindings.Vector3,
|
|
2529
|
-
): minecraftserverbindings.BlockPermutation | undefined;
|
|
2527
|
+
getBlockPermutation(location: minecraftserver.Vector3): minecraftserver.BlockPermutation | undefined;
|
|
2530
2528
|
/**
|
|
2531
2529
|
* @throws This function can throw errors.
|
|
2532
2530
|
*
|
|
2533
2531
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
2534
2532
|
*
|
|
2535
|
-
* {@link
|
|
2533
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2536
2534
|
*/
|
|
2537
|
-
getIsWaterlogged(location:
|
|
2535
|
+
getIsWaterlogged(location: minecraftserver.Vector3): boolean;
|
|
2538
2536
|
/**
|
|
2539
2537
|
* @throws This function can throw errors.
|
|
2540
2538
|
*
|
|
2541
|
-
* {@link
|
|
2539
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2542
2540
|
*/
|
|
2543
2541
|
getTags(): string[];
|
|
2544
2542
|
/**
|
|
@@ -2551,11 +2549,11 @@ export class EditorStructure {
|
|
|
2551
2549
|
*
|
|
2552
2550
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
2553
2551
|
*
|
|
2554
|
-
* {@link
|
|
2552
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2555
2553
|
*/
|
|
2556
2554
|
setBlockPermutation(
|
|
2557
|
-
location:
|
|
2558
|
-
blockPermutation:
|
|
2555
|
+
location: minecraftserver.Vector3,
|
|
2556
|
+
blockPermutation: minecraftserver.BlockPermutation,
|
|
2559
2557
|
waterlogged?: boolean,
|
|
2560
2558
|
): void;
|
|
2561
2559
|
/**
|
|
@@ -2564,7 +2562,7 @@ export class EditorStructure {
|
|
|
2564
2562
|
*
|
|
2565
2563
|
* @throws This function can throw errors.
|
|
2566
2564
|
*
|
|
2567
|
-
* {@link
|
|
2565
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2568
2566
|
*/
|
|
2569
2567
|
setTags(tags: string[]): void;
|
|
2570
2568
|
}
|
|
@@ -2577,7 +2575,7 @@ export class EditorStructureManager {
|
|
|
2577
2575
|
*
|
|
2578
2576
|
* @throws This function can throw errors.
|
|
2579
2577
|
*/
|
|
2580
|
-
createEmpty(fullName: string, size:
|
|
2578
|
+
createEmpty(fullName: string, size: minecraftserver.Vector3): EditorStructure;
|
|
2581
2579
|
/**
|
|
2582
2580
|
* @remarks
|
|
2583
2581
|
* This function can't be called in read-only mode.
|
|
@@ -2790,7 +2788,7 @@ export class ExtensionContext {
|
|
|
2790
2788
|
* invocation
|
|
2791
2789
|
*
|
|
2792
2790
|
*/
|
|
2793
|
-
readonly player:
|
|
2791
|
+
readonly player: minecraftserver.Player;
|
|
2794
2792
|
readonly playtest: PlaytestManager;
|
|
2795
2793
|
/**
|
|
2796
2794
|
* @remarks
|
|
@@ -2927,7 +2925,7 @@ export class GraphicsSettings {
|
|
|
2927
2925
|
|
|
2928
2926
|
export class IBlockPaletteItem {
|
|
2929
2927
|
private constructor();
|
|
2930
|
-
getBlock():
|
|
2928
|
+
getBlock(): minecraftserver.BlockType | undefined;
|
|
2931
2929
|
getDisplayName(): string | undefined;
|
|
2932
2930
|
getType(): BlockPaletteItemType;
|
|
2933
2931
|
/**
|
|
@@ -2936,7 +2934,7 @@ export class IBlockPaletteItem {
|
|
|
2936
2934
|
*
|
|
2937
2935
|
* @throws This function can throw errors.
|
|
2938
2936
|
*/
|
|
2939
|
-
setBlock(block:
|
|
2937
|
+
setBlock(block: minecraftserver.BlockPermutation | minecraftserver.BlockType | string): void;
|
|
2940
2938
|
}
|
|
2941
2939
|
|
|
2942
2940
|
/**
|
|
@@ -3156,10 +3154,7 @@ export class ProbabilityBlockPaletteItem extends IBlockPaletteItem {
|
|
|
3156
3154
|
*
|
|
3157
3155
|
* @throws This function can throw errors.
|
|
3158
3156
|
*/
|
|
3159
|
-
addBlock(
|
|
3160
|
-
block: minecraftserverbindings.BlockPermutation | minecraftserverbindings.BlockType | string,
|
|
3161
|
-
weight: number,
|
|
3162
|
-
): void;
|
|
3157
|
+
addBlock(block: minecraftserver.BlockPermutation | minecraftserver.BlockType | string, weight: number): void;
|
|
3163
3158
|
getBlocks(): WeightedBlock[];
|
|
3164
3159
|
/**
|
|
3165
3160
|
* @remarks
|
|
@@ -3201,16 +3196,16 @@ export declare class PyramidBrushShape extends BrushShape {
|
|
|
3201
3196
|
}
|
|
3202
3197
|
|
|
3203
3198
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3204
|
-
export class RelativeVolumeListBlockVolume extends
|
|
3199
|
+
export class RelativeVolumeListBlockVolume extends minecraftserver.BlockVolumeBase {
|
|
3205
3200
|
readonly isEmpty: boolean;
|
|
3206
3201
|
/**
|
|
3207
3202
|
* @remarks
|
|
3208
3203
|
* This property can't be edited in read-only mode.
|
|
3209
3204
|
*
|
|
3210
3205
|
*/
|
|
3211
|
-
origin?:
|
|
3206
|
+
origin?: minecraftserver.Vector3;
|
|
3212
3207
|
readonly volumeCount: number;
|
|
3213
|
-
constructor(origin?:
|
|
3208
|
+
constructor(origin?: minecraftserver.Vector3);
|
|
3214
3209
|
/**
|
|
3215
3210
|
* @remarks
|
|
3216
3211
|
* This function can't be called in read-only mode.
|
|
@@ -3218,11 +3213,11 @@ export class RelativeVolumeListBlockVolume extends minecraftserverbindings.Block
|
|
|
3218
3213
|
*/
|
|
3219
3214
|
add(
|
|
3220
3215
|
toAdd:
|
|
3221
|
-
|
|
|
3222
|
-
|
|
|
3223
|
-
|
|
|
3216
|
+
| minecraftserver.Vector3[]
|
|
3217
|
+
| minecraftserver.BlockVolume
|
|
3218
|
+
| minecraftserver.BlockVolumeBase
|
|
3224
3219
|
| RelativeVolumeListBlockVolume
|
|
3225
|
-
|
|
|
3220
|
+
| minecraftserver.Vector3,
|
|
3226
3221
|
): void;
|
|
3227
3222
|
/**
|
|
3228
3223
|
* @remarks
|
|
@@ -3235,14 +3230,14 @@ export class RelativeVolumeListBlockVolume extends minecraftserverbindings.Block
|
|
|
3235
3230
|
* This function can't be called in read-only mode.
|
|
3236
3231
|
*
|
|
3237
3232
|
*/
|
|
3238
|
-
getVolumeList():
|
|
3239
|
-
hasAdjacent(location:
|
|
3233
|
+
getVolumeList(): minecraftserver.BlockVolume[];
|
|
3234
|
+
hasAdjacent(location: minecraftserver.Vector3, normalizedOffset: minecraftserver.Vector3): boolean;
|
|
3240
3235
|
/**
|
|
3241
3236
|
* @remarks
|
|
3242
3237
|
* This function can't be called in read-only mode.
|
|
3243
3238
|
*
|
|
3244
3239
|
*/
|
|
3245
|
-
moveTo(location:
|
|
3240
|
+
moveTo(location: minecraftserver.Vector3): void;
|
|
3246
3241
|
/**
|
|
3247
3242
|
* @remarks
|
|
3248
3243
|
* This function can't be called in read-only mode.
|
|
@@ -3250,11 +3245,11 @@ export class RelativeVolumeListBlockVolume extends minecraftserverbindings.Block
|
|
|
3250
3245
|
*/
|
|
3251
3246
|
remove(
|
|
3252
3247
|
toRemove:
|
|
3253
|
-
|
|
|
3254
|
-
|
|
|
3255
|
-
|
|
|
3248
|
+
| minecraftserver.Vector3[]
|
|
3249
|
+
| minecraftserver.BlockVolume
|
|
3250
|
+
| minecraftserver.BlockVolumeBase
|
|
3256
3251
|
| RelativeVolumeListBlockVolume
|
|
3257
|
-
|
|
|
3252
|
+
| minecraftserver.Vector3,
|
|
3258
3253
|
): void;
|
|
3259
3254
|
/**
|
|
3260
3255
|
* @remarks
|
|
@@ -3263,18 +3258,18 @@ export class RelativeVolumeListBlockVolume extends minecraftserverbindings.Block
|
|
|
3263
3258
|
*/
|
|
3264
3259
|
set(
|
|
3265
3260
|
toSet:
|
|
3266
|
-
|
|
|
3267
|
-
|
|
|
3268
|
-
|
|
|
3261
|
+
| minecraftserver.Vector3[]
|
|
3262
|
+
| minecraftserver.BlockVolume
|
|
3263
|
+
| minecraftserver.BlockVolumeBase
|
|
3269
3264
|
| RelativeVolumeListBlockVolume
|
|
3270
|
-
|
|
|
3265
|
+
| minecraftserver.Vector3,
|
|
3271
3266
|
): void;
|
|
3272
3267
|
/**
|
|
3273
3268
|
* @remarks
|
|
3274
3269
|
* This function can't be called in read-only mode.
|
|
3275
3270
|
*
|
|
3276
3271
|
*/
|
|
3277
|
-
translate(offset:
|
|
3272
|
+
translate(offset: minecraftserver.Vector3): void;
|
|
3278
3273
|
}
|
|
3279
3274
|
|
|
3280
3275
|
export class SelectionChangeAfterEventSignal {
|
|
@@ -3318,11 +3313,11 @@ export class SelectionContainerVolume extends SelectionContainerBase {
|
|
|
3318
3313
|
*/
|
|
3319
3314
|
add(
|
|
3320
3315
|
volume:
|
|
3321
|
-
|
|
|
3322
|
-
|
|
|
3323
|
-
|
|
|
3316
|
+
| minecraftserver.Vector3[]
|
|
3317
|
+
| minecraftserver.BlockVolume
|
|
3318
|
+
| minecraftserver.BlockVolumeBase
|
|
3324
3319
|
| RelativeVolumeListBlockVolume
|
|
3325
|
-
|
|
|
3320
|
+
| minecraftserver.Vector3,
|
|
3326
3321
|
): void;
|
|
3327
3322
|
/**
|
|
3328
3323
|
* @remarks
|
|
@@ -3334,13 +3329,13 @@ export class SelectionContainerVolume extends SelectionContainerBase {
|
|
|
3334
3329
|
/**
|
|
3335
3330
|
* @throws This function can throw errors.
|
|
3336
3331
|
*/
|
|
3337
|
-
getBoundingBox():
|
|
3332
|
+
getBoundingBox(): minecraftserver.BlockBoundingBox;
|
|
3338
3333
|
/**
|
|
3339
3334
|
* @remarks
|
|
3340
3335
|
* This function can't be called in read-only mode.
|
|
3341
3336
|
*
|
|
3342
3337
|
*/
|
|
3343
|
-
moveTo(location:
|
|
3338
|
+
moveTo(location: minecraftserver.Vector3): void;
|
|
3344
3339
|
/**
|
|
3345
3340
|
* @remarks
|
|
3346
3341
|
* This function can't be called in read-only mode.
|
|
@@ -3348,11 +3343,11 @@ export class SelectionContainerVolume extends SelectionContainerBase {
|
|
|
3348
3343
|
*/
|
|
3349
3344
|
remove(
|
|
3350
3345
|
volume:
|
|
3351
|
-
|
|
|
3352
|
-
|
|
|
3353
|
-
|
|
|
3346
|
+
| minecraftserver.Vector3[]
|
|
3347
|
+
| minecraftserver.BlockVolume
|
|
3348
|
+
| minecraftserver.BlockVolumeBase
|
|
3354
3349
|
| RelativeVolumeListBlockVolume
|
|
3355
|
-
|
|
|
3350
|
+
| minecraftserver.Vector3,
|
|
3356
3351
|
): void;
|
|
3357
3352
|
/**
|
|
3358
3353
|
* @remarks
|
|
@@ -3361,18 +3356,18 @@ export class SelectionContainerVolume extends SelectionContainerBase {
|
|
|
3361
3356
|
*/
|
|
3362
3357
|
set(
|
|
3363
3358
|
volume:
|
|
3364
|
-
|
|
|
3365
|
-
|
|
|
3366
|
-
|
|
|
3359
|
+
| minecraftserver.Vector3[]
|
|
3360
|
+
| minecraftserver.BlockVolume
|
|
3361
|
+
| minecraftserver.BlockVolumeBase
|
|
3367
3362
|
| RelativeVolumeListBlockVolume
|
|
3368
|
-
|
|
|
3363
|
+
| minecraftserver.Vector3,
|
|
3369
3364
|
): void;
|
|
3370
3365
|
/**
|
|
3371
3366
|
* @remarks
|
|
3372
3367
|
* This function can't be called in read-only mode.
|
|
3373
3368
|
*
|
|
3374
3369
|
*/
|
|
3375
|
-
translate(offset:
|
|
3370
|
+
translate(offset: minecraftserver.Vector3): void;
|
|
3376
3371
|
}
|
|
3377
3372
|
|
|
3378
3373
|
export class SelectionContainerVolumeEvent {
|
|
@@ -3522,13 +3517,13 @@ export class ThemeSettings {
|
|
|
3522
3517
|
*/
|
|
3523
3518
|
deleteTheme(id: string): void;
|
|
3524
3519
|
getCurrentTheme(): string;
|
|
3525
|
-
getThemeColors(id: string): Record<string,
|
|
3520
|
+
getThemeColors(id: string): Record<string, minecraftserver.RGBA> | undefined;
|
|
3526
3521
|
getThemeIdList(): string[];
|
|
3527
3522
|
/**
|
|
3528
3523
|
* @throws This function can throw errors.
|
|
3529
3524
|
*/
|
|
3530
3525
|
getThemeName(id: string): string;
|
|
3531
|
-
resolveColorKey(key: ThemeSettingsColorKey):
|
|
3526
|
+
resolveColorKey(key: ThemeSettingsColorKey): minecraftserver.RGBA;
|
|
3532
3527
|
/**
|
|
3533
3528
|
* @remarks
|
|
3534
3529
|
* This function can't be called in read-only mode.
|
|
@@ -3549,7 +3544,7 @@ export class ThemeSettings {
|
|
|
3549
3544
|
*
|
|
3550
3545
|
* @throws This function can throw errors.
|
|
3551
3546
|
*/
|
|
3552
|
-
updateThemeColor(id: string, key: ThemeSettingsColorKey, newColor:
|
|
3547
|
+
updateThemeColor(id: string, key: ThemeSettingsColorKey, newColor: minecraftserver.RGBA): void;
|
|
3553
3548
|
}
|
|
3554
3549
|
|
|
3555
3550
|
/**
|
|
@@ -3572,7 +3567,7 @@ export class TransactionManager {
|
|
|
3572
3567
|
*
|
|
3573
3568
|
* @throws This function can throw errors.
|
|
3574
3569
|
*/
|
|
3575
|
-
addEntityOperation(entity:
|
|
3570
|
+
addEntityOperation(entity: minecraftserver.Entity, type: EntityOperationType): boolean;
|
|
3576
3571
|
/**
|
|
3577
3572
|
* @remarks
|
|
3578
3573
|
* This function can't be called in read-only mode.
|
|
@@ -3711,7 +3706,7 @@ export class TransactionManager {
|
|
|
3711
3706
|
* Max block location of a bounding area
|
|
3712
3707
|
* @throws This function can throw errors.
|
|
3713
3708
|
*/
|
|
3714
|
-
trackBlockChangeArea(from:
|
|
3709
|
+
trackBlockChangeArea(from: minecraftserver.Vector3, to: minecraftserver.Vector3): boolean;
|
|
3715
3710
|
/**
|
|
3716
3711
|
* @remarks
|
|
3717
3712
|
* Begin tracking block changes in a list of specified block
|
|
@@ -3723,14 +3718,14 @@ export class TransactionManager {
|
|
|
3723
3718
|
* An array of block locations to monitor for changes
|
|
3724
3719
|
* @throws This function can throw errors.
|
|
3725
3720
|
*/
|
|
3726
|
-
trackBlockChangeList(locations:
|
|
3721
|
+
trackBlockChangeList(locations: minecraftserver.Vector3[]): boolean;
|
|
3727
3722
|
/**
|
|
3728
3723
|
* @remarks
|
|
3729
3724
|
* This function can't be called in read-only mode.
|
|
3730
3725
|
*
|
|
3731
3726
|
* @throws This function can throw errors.
|
|
3732
3727
|
*/
|
|
3733
|
-
trackBlockChangeVolume(blockVolume:
|
|
3728
|
+
trackBlockChangeVolume(blockVolume: minecraftserver.BlockVolumeBase): boolean;
|
|
3734
3729
|
/**
|
|
3735
3730
|
* @remarks
|
|
3736
3731
|
* Perform an undo operation. This will take the last
|
|
@@ -3807,6 +3802,40 @@ export class UserDefinedTransactionHandlerId {
|
|
|
3807
3802
|
private constructor();
|
|
3808
3803
|
}
|
|
3809
3804
|
|
|
3805
|
+
/**
|
|
3806
|
+
* Validates min/max limits of observable objects that support
|
|
3807
|
+
* Vector2
|
|
3808
|
+
*/
|
|
3809
|
+
export declare class Vector2LimitObservableValidator implements ObservableValidator<minecraftserver.Vector2> {
|
|
3810
|
+
/**
|
|
3811
|
+
* @remarks
|
|
3812
|
+
* This property can't be used in read-only mode.
|
|
3813
|
+
*
|
|
3814
|
+
*/
|
|
3815
|
+
protected _isInteger?: boolean;
|
|
3816
|
+
/**
|
|
3817
|
+
* @remarks
|
|
3818
|
+
* This property can't be used in read-only mode.
|
|
3819
|
+
*
|
|
3820
|
+
*/
|
|
3821
|
+
protected _max: Partial<minecraftserver.Vector2>;
|
|
3822
|
+
/**
|
|
3823
|
+
* @remarks
|
|
3824
|
+
* This property can't be used in read-only mode.
|
|
3825
|
+
*
|
|
3826
|
+
*/
|
|
3827
|
+
protected _min: Partial<minecraftserver.Vector2>;
|
|
3828
|
+
/**
|
|
3829
|
+
* @remarks
|
|
3830
|
+
* Constructs a new instance of the
|
|
3831
|
+
* `Vector2LimitObservableValidator` class
|
|
3832
|
+
*
|
|
3833
|
+
*/
|
|
3834
|
+
constructor(min: Partial<minecraftserver.Vector2>, max: Partial<minecraftserver.Vector2>, isInteger?: boolean);
|
|
3835
|
+
updateLimits(min: Partial<minecraftserver.Vector2>, max: Partial<minecraftserver.Vector2>): void;
|
|
3836
|
+
validate(newValue: minecraftserver.Vector2): minecraftserver.Vector2;
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3810
3839
|
/**
|
|
3811
3840
|
* Validates min/max limits of observable objects that support
|
|
3812
3841
|
* Vector3
|
|
@@ -3854,7 +3883,7 @@ export class Widget {
|
|
|
3854
3883
|
* This property can't be edited in read-only mode.
|
|
3855
3884
|
*
|
|
3856
3885
|
*/
|
|
3857
|
-
collisionOffset:
|
|
3886
|
+
collisionOffset: minecraftserver.Vector3;
|
|
3858
3887
|
/**
|
|
3859
3888
|
* @remarks
|
|
3860
3889
|
* This property can't be edited in read-only mode.
|
|
@@ -3878,7 +3907,7 @@ export class Widget {
|
|
|
3878
3907
|
* This property can't be edited in read-only mode.
|
|
3879
3908
|
*
|
|
3880
3909
|
*/
|
|
3881
|
-
location:
|
|
3910
|
+
location: minecraftserver.Vector3;
|
|
3882
3911
|
/**
|
|
3883
3912
|
* @remarks
|
|
3884
3913
|
* This property can't be edited in read-only mode.
|
|
@@ -3910,7 +3939,7 @@ export class Widget {
|
|
|
3910
3939
|
*/
|
|
3911
3940
|
addBoundingBox(
|
|
3912
3941
|
componentName: string,
|
|
3913
|
-
size:
|
|
3942
|
+
size: minecraftserver.Vector3,
|
|
3914
3943
|
options?: WidgetComponentBoundingBoxOptions,
|
|
3915
3944
|
): WidgetComponentBoundingBox;
|
|
3916
3945
|
/**
|
|
@@ -3993,7 +4022,7 @@ export class Widget {
|
|
|
3993
4022
|
*/
|
|
3994
4023
|
addVolumeOutline(
|
|
3995
4024
|
componentName: string,
|
|
3996
|
-
volume?:
|
|
4025
|
+
volume?: minecraftserver.BlockVolumeBase | RelativeVolumeListBlockVolume,
|
|
3997
4026
|
options?: WidgetComponentVolumeOutlineOptions,
|
|
3998
4027
|
): WidgetComponentVolumeOutline;
|
|
3999
4028
|
/**
|
|
@@ -4050,7 +4079,7 @@ export class WidgetComponentBase {
|
|
|
4050
4079
|
*
|
|
4051
4080
|
* {@link InvalidWidgetComponentError}
|
|
4052
4081
|
*/
|
|
4053
|
-
readonly location:
|
|
4082
|
+
readonly location: minecraftserver.Vector3;
|
|
4054
4083
|
/**
|
|
4055
4084
|
* @remarks
|
|
4056
4085
|
* This property can't be edited in read-only mode.
|
|
@@ -4068,7 +4097,7 @@ export class WidgetComponentBase {
|
|
|
4068
4097
|
* This property can't be edited in read-only mode.
|
|
4069
4098
|
*
|
|
4070
4099
|
*/
|
|
4071
|
-
offset:
|
|
4100
|
+
offset: minecraftserver.Vector3;
|
|
4072
4101
|
readonly valid: boolean;
|
|
4073
4102
|
visible: boolean;
|
|
4074
4103
|
/**
|
|
@@ -4096,7 +4125,7 @@ export class WidgetComponentBoundingBox extends WidgetComponentBase {
|
|
|
4096
4125
|
* This property can't be edited in read-only mode.
|
|
4097
4126
|
*
|
|
4098
4127
|
*/
|
|
4099
|
-
boundsOffset:
|
|
4128
|
+
boundsOffset: minecraftserver.Vector3;
|
|
4100
4129
|
/**
|
|
4101
4130
|
* @remarks
|
|
4102
4131
|
* This property can't be edited in read-only mode.
|
|
@@ -4108,31 +4137,31 @@ export class WidgetComponentBoundingBox extends WidgetComponentBase {
|
|
|
4108
4137
|
* This property can't be edited in read-only mode.
|
|
4109
4138
|
*
|
|
4110
4139
|
*/
|
|
4111
|
-
hullColor:
|
|
4140
|
+
hullColor: minecraftserver.RGBA;
|
|
4112
4141
|
/**
|
|
4113
4142
|
* @remarks
|
|
4114
4143
|
* This property can't be edited in read-only mode.
|
|
4115
4144
|
*
|
|
4116
4145
|
*/
|
|
4117
|
-
mirror:
|
|
4146
|
+
mirror: minecraftserver.StructureMirrorAxis;
|
|
4118
4147
|
/**
|
|
4119
4148
|
* @remarks
|
|
4120
4149
|
* This property can't be edited in read-only mode.
|
|
4121
4150
|
*
|
|
4122
4151
|
*/
|
|
4123
|
-
normalizedOrigin:
|
|
4152
|
+
normalizedOrigin: minecraftserver.Vector3;
|
|
4124
4153
|
/**
|
|
4125
4154
|
* @remarks
|
|
4126
4155
|
* This property can't be edited in read-only mode.
|
|
4127
4156
|
*
|
|
4128
4157
|
*/
|
|
4129
|
-
outlineColor:
|
|
4158
|
+
outlineColor: minecraftserver.RGBA;
|
|
4130
4159
|
/**
|
|
4131
4160
|
* @remarks
|
|
4132
4161
|
* This property can't be edited in read-only mode.
|
|
4133
4162
|
*
|
|
4134
4163
|
*/
|
|
4135
|
-
rotation:
|
|
4164
|
+
rotation: minecraftserver.StructureRotation;
|
|
4136
4165
|
/**
|
|
4137
4166
|
* @remarks
|
|
4138
4167
|
* This property can't be edited in read-only mode.
|
|
@@ -4144,13 +4173,13 @@ export class WidgetComponentBoundingBox extends WidgetComponentBase {
|
|
|
4144
4173
|
* This property can't be edited in read-only mode.
|
|
4145
4174
|
*
|
|
4146
4175
|
*/
|
|
4147
|
-
size:
|
|
4176
|
+
size: minecraftserver.Vector3;
|
|
4148
4177
|
/**
|
|
4149
4178
|
* @throws This property can throw when used.
|
|
4150
4179
|
*
|
|
4151
4180
|
* {@link InvalidWidgetComponentError}
|
|
4152
4181
|
*/
|
|
4153
|
-
readonly transformedWorldVolume:
|
|
4182
|
+
readonly transformedWorldVolume: minecraftserver.BlockVolume;
|
|
4154
4183
|
/**
|
|
4155
4184
|
* @remarks
|
|
4156
4185
|
* This property can't be edited in read-only mode.
|
|
@@ -4179,8 +4208,8 @@ export class WidgetComponentBoundingBox extends WidgetComponentBase {
|
|
|
4179
4208
|
|
|
4180
4209
|
export class WidgetComponentBoundingBoxStateChangeEventParameters {
|
|
4181
4210
|
private constructor();
|
|
4182
|
-
readonly boundsOffset?:
|
|
4183
|
-
readonly boundsSize?:
|
|
4211
|
+
readonly boundsOffset?: minecraftserver.Vector3;
|
|
4212
|
+
readonly boundsSize?: minecraftserver.Vector3;
|
|
4184
4213
|
readonly component: WidgetComponentBoundingBox;
|
|
4185
4214
|
readonly eventType: WidgetGizmoEventType;
|
|
4186
4215
|
readonly widget: Widget;
|
|
@@ -4194,14 +4223,14 @@ export class WidgetComponentClipboard extends WidgetComponentBase {
|
|
|
4194
4223
|
* This property can't be edited in read-only mode.
|
|
4195
4224
|
*
|
|
4196
4225
|
*/
|
|
4197
|
-
clipboardOffset:
|
|
4198
|
-
highlightHullColor:
|
|
4199
|
-
highlightOutlineColor:
|
|
4200
|
-
hullColor:
|
|
4201
|
-
mirror:
|
|
4202
|
-
normalizedOrigin:
|
|
4203
|
-
outlineColor:
|
|
4204
|
-
rotation:
|
|
4226
|
+
clipboardOffset: minecraftserver.Vector3;
|
|
4227
|
+
highlightHullColor: minecraftserver.RGBA;
|
|
4228
|
+
highlightOutlineColor: minecraftserver.RGBA;
|
|
4229
|
+
hullColor: minecraftserver.RGBA;
|
|
4230
|
+
mirror: minecraftserver.StructureMirrorAxis;
|
|
4231
|
+
normalizedOrigin: minecraftserver.Vector3;
|
|
4232
|
+
outlineColor: minecraftserver.RGBA;
|
|
4233
|
+
rotation: minecraftserver.StructureRotation;
|
|
4205
4234
|
showOutline: boolean;
|
|
4206
4235
|
}
|
|
4207
4236
|
|
|
@@ -4240,7 +4269,7 @@ export class WidgetComponentGizmo extends WidgetComponentBase {
|
|
|
4240
4269
|
* This property can't be edited in read-only mode.
|
|
4241
4270
|
*
|
|
4242
4271
|
*/
|
|
4243
|
-
normalizedOffsetOverride?:
|
|
4272
|
+
normalizedOffsetOverride?: minecraftserver.Vector3;
|
|
4244
4273
|
/**
|
|
4245
4274
|
* @remarks
|
|
4246
4275
|
* This function can't be called in read-only mode.
|
|
@@ -4267,19 +4296,19 @@ export class WidgetComponentGrid extends WidgetComponentBase {
|
|
|
4267
4296
|
* This property can't be edited in read-only mode.
|
|
4268
4297
|
*
|
|
4269
4298
|
*/
|
|
4270
|
-
gridColor:
|
|
4299
|
+
gridColor: minecraftserver.RGBA;
|
|
4271
4300
|
/**
|
|
4272
4301
|
* @remarks
|
|
4273
4302
|
* This property can't be edited in read-only mode.
|
|
4274
4303
|
*
|
|
4275
4304
|
*/
|
|
4276
|
-
gridCount:
|
|
4305
|
+
gridCount: minecraftserver.Vector2;
|
|
4277
4306
|
/**
|
|
4278
4307
|
* @remarks
|
|
4279
4308
|
* This property can't be edited in read-only mode.
|
|
4280
4309
|
*
|
|
4281
4310
|
*/
|
|
4282
|
-
gridSize:
|
|
4311
|
+
gridSize: minecraftserver.Vector2;
|
|
4283
4312
|
/**
|
|
4284
4313
|
* @remarks
|
|
4285
4314
|
* This property can't be edited in read-only mode.
|
|
@@ -4330,20 +4359,20 @@ export class WidgetComponentRenderPrimitiveTypeAxialSphere extends WidgetCompone
|
|
|
4330
4359
|
* This property can't be edited in read-only mode.
|
|
4331
4360
|
*
|
|
4332
4361
|
*/
|
|
4333
|
-
center:
|
|
4362
|
+
center: minecraftserver.Vector3;
|
|
4334
4363
|
/**
|
|
4335
4364
|
* @remarks
|
|
4336
4365
|
* This property can't be edited in read-only mode.
|
|
4337
4366
|
*
|
|
4338
4367
|
*/
|
|
4339
|
-
color?:
|
|
4368
|
+
color?: minecraftserver.RGBA;
|
|
4340
4369
|
/**
|
|
4341
4370
|
* @remarks
|
|
4342
4371
|
* This property can't be edited in read-only mode.
|
|
4343
4372
|
*
|
|
4344
4373
|
*/
|
|
4345
4374
|
radius: number;
|
|
4346
|
-
constructor(center:
|
|
4375
|
+
constructor(center: minecraftserver.Vector3, radius: number, color?: minecraftserver.RGBA);
|
|
4347
4376
|
}
|
|
4348
4377
|
|
|
4349
4378
|
export class WidgetComponentRenderPrimitiveTypeBase {
|
|
@@ -4364,24 +4393,20 @@ export class WidgetComponentRenderPrimitiveTypeBox extends WidgetComponentRender
|
|
|
4364
4393
|
* This property can't be edited in read-only mode.
|
|
4365
4394
|
*
|
|
4366
4395
|
*/
|
|
4367
|
-
center:
|
|
4396
|
+
center: minecraftserver.Vector3;
|
|
4368
4397
|
/**
|
|
4369
4398
|
* @remarks
|
|
4370
4399
|
* This property can't be edited in read-only mode.
|
|
4371
4400
|
*
|
|
4372
4401
|
*/
|
|
4373
|
-
color:
|
|
4402
|
+
color: minecraftserver.RGBA;
|
|
4374
4403
|
/**
|
|
4375
4404
|
* @remarks
|
|
4376
4405
|
* This property can't be edited in read-only mode.
|
|
4377
4406
|
*
|
|
4378
4407
|
*/
|
|
4379
|
-
size?:
|
|
4380
|
-
constructor(
|
|
4381
|
-
center: minecraftserverbindings.Vector3,
|
|
4382
|
-
color: minecraftserverbindings.RGBA,
|
|
4383
|
-
size?: minecraftserverbindings.Vector3,
|
|
4384
|
-
);
|
|
4408
|
+
size?: minecraftserver.Vector3;
|
|
4409
|
+
constructor(center: minecraftserver.Vector3, color: minecraftserver.RGBA, size?: minecraftserver.Vector3);
|
|
4385
4410
|
}
|
|
4386
4411
|
|
|
4387
4412
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -4391,20 +4416,20 @@ export class WidgetComponentRenderPrimitiveTypeDisc extends WidgetComponentRende
|
|
|
4391
4416
|
* This property can't be edited in read-only mode.
|
|
4392
4417
|
*
|
|
4393
4418
|
*/
|
|
4394
|
-
center:
|
|
4419
|
+
center: minecraftserver.Vector3;
|
|
4395
4420
|
/**
|
|
4396
4421
|
* @remarks
|
|
4397
4422
|
* This property can't be edited in read-only mode.
|
|
4398
4423
|
*
|
|
4399
4424
|
*/
|
|
4400
|
-
color:
|
|
4425
|
+
color: minecraftserver.RGBA;
|
|
4401
4426
|
/**
|
|
4402
4427
|
* @remarks
|
|
4403
4428
|
* This property can't be edited in read-only mode.
|
|
4404
4429
|
*
|
|
4405
4430
|
*/
|
|
4406
4431
|
radius: number;
|
|
4407
|
-
constructor(center:
|
|
4432
|
+
constructor(center: minecraftserver.Vector3, radius: number, color: minecraftserver.RGBA);
|
|
4408
4433
|
}
|
|
4409
4434
|
|
|
4410
4435
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -4414,24 +4439,20 @@ export class WidgetComponentRenderPrimitiveTypeLine extends WidgetComponentRende
|
|
|
4414
4439
|
* This property can't be edited in read-only mode.
|
|
4415
4440
|
*
|
|
4416
4441
|
*/
|
|
4417
|
-
color:
|
|
4442
|
+
color: minecraftserver.RGBA;
|
|
4418
4443
|
/**
|
|
4419
4444
|
* @remarks
|
|
4420
4445
|
* This property can't be edited in read-only mode.
|
|
4421
4446
|
*
|
|
4422
4447
|
*/
|
|
4423
|
-
end:
|
|
4448
|
+
end: minecraftserver.Vector3;
|
|
4424
4449
|
/**
|
|
4425
4450
|
* @remarks
|
|
4426
4451
|
* This property can't be edited in read-only mode.
|
|
4427
4452
|
*
|
|
4428
4453
|
*/
|
|
4429
|
-
start:
|
|
4430
|
-
constructor(
|
|
4431
|
-
start: minecraftserverbindings.Vector3,
|
|
4432
|
-
end: minecraftserverbindings.Vector3,
|
|
4433
|
-
color: minecraftserverbindings.RGBA,
|
|
4434
|
-
);
|
|
4454
|
+
start: minecraftserver.Vector3;
|
|
4455
|
+
constructor(start: minecraftserver.Vector3, end: minecraftserver.Vector3, color: minecraftserver.RGBA);
|
|
4435
4456
|
}
|
|
4436
4457
|
|
|
4437
4458
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -4462,7 +4483,7 @@ export class WidgetComponentSpline extends WidgetComponentBase {
|
|
|
4462
4483
|
*
|
|
4463
4484
|
* @throws This function can throw errors.
|
|
4464
4485
|
*/
|
|
4465
|
-
getInterpolatedPoints(maxPointsPerControlSegment?: number):
|
|
4486
|
+
getInterpolatedPoints(maxPointsPerControlSegment?: number): minecraftserver.Vector3[];
|
|
4466
4487
|
/**
|
|
4467
4488
|
* @remarks
|
|
4468
4489
|
* This function can't be called in read-only mode.
|
|
@@ -4484,7 +4505,7 @@ export class WidgetComponentText extends WidgetComponentBase {
|
|
|
4484
4505
|
* This property can't be edited in read-only mode.
|
|
4485
4506
|
*
|
|
4486
4507
|
*/
|
|
4487
|
-
color:
|
|
4508
|
+
color: minecraftserver.RGBA;
|
|
4488
4509
|
/**
|
|
4489
4510
|
* @remarks
|
|
4490
4511
|
* This property can't be edited in read-only mode.
|
|
@@ -4501,43 +4522,43 @@ export class WidgetComponentVolumeOutline extends WidgetComponentBase {
|
|
|
4501
4522
|
* This property can't be edited in read-only mode.
|
|
4502
4523
|
*
|
|
4503
4524
|
*/
|
|
4504
|
-
highlightHullColor:
|
|
4525
|
+
highlightHullColor: minecraftserver.RGBA;
|
|
4505
4526
|
/**
|
|
4506
4527
|
* @remarks
|
|
4507
4528
|
* This property can't be edited in read-only mode.
|
|
4508
4529
|
*
|
|
4509
4530
|
*/
|
|
4510
|
-
highlightOutlineColor:
|
|
4531
|
+
highlightOutlineColor: minecraftserver.RGBA;
|
|
4511
4532
|
/**
|
|
4512
4533
|
* @remarks
|
|
4513
4534
|
* This property can't be edited in read-only mode.
|
|
4514
4535
|
*
|
|
4515
4536
|
*/
|
|
4516
|
-
hullColor:
|
|
4537
|
+
hullColor: minecraftserver.RGBA;
|
|
4517
4538
|
/**
|
|
4518
4539
|
* @remarks
|
|
4519
4540
|
* This property can't be edited in read-only mode.
|
|
4520
4541
|
*
|
|
4521
4542
|
*/
|
|
4522
|
-
mirror:
|
|
4543
|
+
mirror: minecraftserver.StructureMirrorAxis;
|
|
4523
4544
|
/**
|
|
4524
4545
|
* @remarks
|
|
4525
4546
|
* This property can't be edited in read-only mode.
|
|
4526
4547
|
*
|
|
4527
4548
|
*/
|
|
4528
|
-
normalizedOrigin:
|
|
4549
|
+
normalizedOrigin: minecraftserver.Vector3;
|
|
4529
4550
|
/**
|
|
4530
4551
|
* @remarks
|
|
4531
4552
|
* This property can't be edited in read-only mode.
|
|
4532
4553
|
*
|
|
4533
4554
|
*/
|
|
4534
|
-
outlineColor:
|
|
4555
|
+
outlineColor: minecraftserver.RGBA;
|
|
4535
4556
|
/**
|
|
4536
4557
|
* @remarks
|
|
4537
4558
|
* This property can't be edited in read-only mode.
|
|
4538
4559
|
*
|
|
4539
4560
|
*/
|
|
4540
|
-
rotation:
|
|
4561
|
+
rotation: minecraftserver.StructureRotation;
|
|
4541
4562
|
/**
|
|
4542
4563
|
* @remarks
|
|
4543
4564
|
* This property can't be edited in read-only mode.
|
|
@@ -4555,13 +4576,13 @@ export class WidgetComponentVolumeOutline extends WidgetComponentBase {
|
|
|
4555
4576
|
*
|
|
4556
4577
|
* {@link InvalidWidgetComponentError}
|
|
4557
4578
|
*/
|
|
4558
|
-
readonly transformedWorldVolume:
|
|
4579
|
+
readonly transformedWorldVolume: minecraftserver.BlockVolume;
|
|
4559
4580
|
/**
|
|
4560
4581
|
* @remarks
|
|
4561
4582
|
* This property can't be edited in read-only mode.
|
|
4562
4583
|
*
|
|
4563
4584
|
*/
|
|
4564
|
-
volumeOffset:
|
|
4585
|
+
volumeOffset: minecraftserver.Vector3;
|
|
4565
4586
|
/**
|
|
4566
4587
|
* @remarks
|
|
4567
4588
|
* This function can't be called in read-only mode.
|
|
@@ -4581,11 +4602,11 @@ export class WidgetComponentVolumeOutline extends WidgetComponentBase {
|
|
|
4581
4602
|
*/
|
|
4582
4603
|
setVolume(
|
|
4583
4604
|
volumeToSet?:
|
|
4584
|
-
|
|
|
4585
|
-
|
|
|
4586
|
-
|
|
|
4605
|
+
| minecraftserver.Vector3[]
|
|
4606
|
+
| minecraftserver.BlockVolume
|
|
4607
|
+
| minecraftserver.BlockVolumeBase
|
|
4587
4608
|
| RelativeVolumeListBlockVolume
|
|
4588
|
-
|
|
|
4609
|
+
| minecraftserver.Vector3,
|
|
4589
4610
|
): void;
|
|
4590
4611
|
}
|
|
4591
4612
|
|
|
@@ -4615,7 +4636,7 @@ export class WidgetGroup {
|
|
|
4615
4636
|
*
|
|
4616
4637
|
* @throws This function can throw errors.
|
|
4617
4638
|
*/
|
|
4618
|
-
createWidget(location:
|
|
4639
|
+
createWidget(location: minecraftserver.Vector3, options?: WidgetCreateOptions): Widget;
|
|
4619
4640
|
/**
|
|
4620
4641
|
* @remarks
|
|
4621
4642
|
* This function can't be called in read-only mode.
|
|
@@ -4678,7 +4699,7 @@ export class WidgetMouseButtonEventData {
|
|
|
4678
4699
|
export class WidgetStateChangeEventData {
|
|
4679
4700
|
private constructor();
|
|
4680
4701
|
readonly group: WidgetGroup;
|
|
4681
|
-
readonly location?:
|
|
4702
|
+
readonly location?: minecraftserver.Vector3;
|
|
4682
4703
|
readonly mouseEvent?: WidgetMouseButtonEventData;
|
|
4683
4704
|
readonly selected?: boolean;
|
|
4684
4705
|
readonly visible?: boolean;
|
|
@@ -4703,7 +4724,7 @@ export interface ActionManager {
|
|
|
4703
4724
|
}
|
|
4704
4725
|
|
|
4705
4726
|
export interface BlockMaskList {
|
|
4706
|
-
blockList: (
|
|
4727
|
+
blockList: (minecraftserver.BlockPermutation | minecraftserver.BlockType | string)[];
|
|
4707
4728
|
maskType: BlockMaskListType;
|
|
4708
4729
|
}
|
|
4709
4730
|
|
|
@@ -4781,22 +4802,22 @@ export interface ClipboardWriteOptions {
|
|
|
4781
4802
|
* - XZ
|
|
4782
4803
|
*
|
|
4783
4804
|
*/
|
|
4784
|
-
mirror?:
|
|
4785
|
-
normalizedOrigin?:
|
|
4805
|
+
mirror?: minecraftserver.StructureMirrorAxis;
|
|
4806
|
+
normalizedOrigin?: minecraftserver.Vector3;
|
|
4786
4807
|
/**
|
|
4787
4808
|
* @remarks
|
|
4788
4809
|
* A position offset which should be applied to the paste
|
|
4789
4810
|
* location while the clipboard item is being written
|
|
4790
4811
|
*
|
|
4791
4812
|
*/
|
|
4792
|
-
offset?:
|
|
4813
|
+
offset?: minecraftserver.Vector3;
|
|
4793
4814
|
/**
|
|
4794
4815
|
* @remarks
|
|
4795
4816
|
* An enum representing the rotation around the Y-Axis which
|
|
4796
4817
|
* should be applied while the clipboard item is being written
|
|
4797
4818
|
*
|
|
4798
4819
|
*/
|
|
4799
|
-
rotation?:
|
|
4820
|
+
rotation?: minecraftserver.StructureRotation;
|
|
4800
4821
|
}
|
|
4801
4822
|
|
|
4802
4823
|
export interface ContiguousSelectionProperties {
|
|
@@ -4807,12 +4828,12 @@ export interface ContiguousSelectionProperties {
|
|
|
4807
4828
|
isFace?: boolean;
|
|
4808
4829
|
selectionDirection?: number;
|
|
4809
4830
|
size?: number;
|
|
4810
|
-
startingLocation?:
|
|
4831
|
+
startingLocation?: minecraftserver.Vector3;
|
|
4811
4832
|
}
|
|
4812
4833
|
|
|
4813
4834
|
export interface CursorPosition {
|
|
4814
4835
|
FaceDirection: number;
|
|
4815
|
-
Position:
|
|
4836
|
+
Position: minecraftserver.Vector3;
|
|
4816
4837
|
}
|
|
4817
4838
|
|
|
4818
4839
|
/**
|
|
@@ -4848,7 +4869,7 @@ export interface CursorProperties {
|
|
|
4848
4869
|
*
|
|
4849
4870
|
*/
|
|
4850
4871
|
controlMode?: CursorControlMode;
|
|
4851
|
-
fillColor?:
|
|
4872
|
+
fillColor?: minecraftserver.RGBA;
|
|
4852
4873
|
/**
|
|
4853
4874
|
* @remarks
|
|
4854
4875
|
* The fixed distance from the players feet at which the cursor
|
|
@@ -4863,7 +4884,7 @@ export interface CursorProperties {
|
|
|
4863
4884
|
* cursor object outline
|
|
4864
4885
|
*
|
|
4865
4886
|
*/
|
|
4866
|
-
outlineColor?:
|
|
4887
|
+
outlineColor?: minecraftserver.RGBA;
|
|
4867
4888
|
projectThroughLiquid?: boolean;
|
|
4868
4889
|
/**
|
|
4869
4890
|
* @remarks
|
|
@@ -4886,9 +4907,9 @@ export interface CursorProperties {
|
|
|
4886
4907
|
}
|
|
4887
4908
|
|
|
4888
4909
|
export interface CursorRay {
|
|
4889
|
-
end:
|
|
4910
|
+
end: minecraftserver.Vector3;
|
|
4890
4911
|
hit: boolean;
|
|
4891
|
-
start:
|
|
4912
|
+
start: minecraftserver.Vector3;
|
|
4892
4913
|
}
|
|
4893
4914
|
|
|
4894
4915
|
export interface EditorStructureSearchOptions {
|
|
@@ -4966,7 +4987,7 @@ export interface GameOptions {
|
|
|
4966
4987
|
commandBlockEnabled?: boolean;
|
|
4967
4988
|
commandBlockOutput?: boolean;
|
|
4968
4989
|
daylightCycle?: DaylightCycle;
|
|
4969
|
-
difficulty?:
|
|
4990
|
+
difficulty?: minecraftserver.Difficulty;
|
|
4970
4991
|
dimensionId?: string;
|
|
4971
4992
|
disableWeather?: boolean;
|
|
4972
4993
|
drowningDamage?: boolean;
|
|
@@ -4979,7 +5000,7 @@ export interface GameOptions {
|
|
|
4979
5000
|
freezeDamage?: boolean;
|
|
4980
5001
|
friendlyFire?: boolean;
|
|
4981
5002
|
functionCommandLimit?: number;
|
|
4982
|
-
gameMode?:
|
|
5003
|
+
gameMode?: minecraftserver.GameMode;
|
|
4983
5004
|
hardcore?: boolean;
|
|
4984
5005
|
immediateRespawn?: boolean;
|
|
4985
5006
|
insomnia?: boolean;
|
|
@@ -4994,7 +5015,7 @@ export interface GameOptions {
|
|
|
4994
5015
|
multiplayerGame?: boolean;
|
|
4995
5016
|
naturalRegeneration?: boolean;
|
|
4996
5017
|
playerAccess?: GamePublishSetting;
|
|
4997
|
-
playerPermissions?:
|
|
5018
|
+
playerPermissions?: minecraftserver.PlayerPermissionLevel;
|
|
4998
5019
|
randomTickSpeed?: number;
|
|
4999
5020
|
recipeUnlocking?: boolean;
|
|
5000
5021
|
respawnBlocksExplode?: boolean;
|
|
@@ -5007,7 +5028,7 @@ export interface GameOptions {
|
|
|
5007
5028
|
showItemTags?: boolean;
|
|
5008
5029
|
simulationDistance?: number;
|
|
5009
5030
|
sleepSkipPercent?: number;
|
|
5010
|
-
spawnPosition?:
|
|
5031
|
+
spawnPosition?: minecraftserver.Vector3;
|
|
5011
5032
|
startingMap?: boolean;
|
|
5012
5033
|
tileDrops?: boolean;
|
|
5013
5034
|
timeOfDay?: number;
|
|
@@ -5634,6 +5655,13 @@ export interface IColorTimelinePropertyItemOptions extends IPropertyItemOptionsB
|
|
|
5634
5655
|
*
|
|
5635
5656
|
*/
|
|
5636
5657
|
renderGradientBackground?: boolean;
|
|
5658
|
+
/**
|
|
5659
|
+
* @remarks
|
|
5660
|
+
* False means the alpha elements will not be shown in the
|
|
5661
|
+
* color picker
|
|
5662
|
+
*
|
|
5663
|
+
*/
|
|
5664
|
+
showAlpha?: boolean;
|
|
5637
5665
|
/**
|
|
5638
5666
|
* @remarks
|
|
5639
5667
|
* Localized title of the property item
|
|
@@ -6231,6 +6259,86 @@ export interface IMenuCreationParams {
|
|
|
6231
6259
|
uniqueId?: string;
|
|
6232
6260
|
}
|
|
6233
6261
|
|
|
6262
|
+
/**
|
|
6263
|
+
* A property item which supports Menu properties
|
|
6264
|
+
*/
|
|
6265
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6266
|
+
export interface IMenuPropertyItem extends IPropertyItemBase {
|
|
6267
|
+
/**
|
|
6268
|
+
* @remarks
|
|
6269
|
+
* Adds a new menu item entry to property item
|
|
6270
|
+
*
|
|
6271
|
+
* @param props
|
|
6272
|
+
* Menu creation parameters
|
|
6273
|
+
* @param action
|
|
6274
|
+
* Optional action to trigger on menu click
|
|
6275
|
+
*/
|
|
6276
|
+
addEntry(props: IMenuCreationParams, action?: RegisteredAction<NoArgsAction>): IMenu;
|
|
6277
|
+
/**
|
|
6278
|
+
* @remarks
|
|
6279
|
+
* @returns
|
|
6280
|
+
* All first level menu entries
|
|
6281
|
+
*/
|
|
6282
|
+
getEntries(): IMenu[];
|
|
6283
|
+
/**
|
|
6284
|
+
* @remarks
|
|
6285
|
+
* Find the menu item recursively if it exists
|
|
6286
|
+
*
|
|
6287
|
+
* @param menuId
|
|
6288
|
+
* Identifier of the menu.
|
|
6289
|
+
*/
|
|
6290
|
+
getMenu(menuId: string): IMenu | undefined;
|
|
6291
|
+
/**
|
|
6292
|
+
* @remarks
|
|
6293
|
+
* Removed the menu item entry if the id is found
|
|
6294
|
+
*
|
|
6295
|
+
* @param menuId
|
|
6296
|
+
* Menu id to remove
|
|
6297
|
+
*/
|
|
6298
|
+
removeEntry(menuId: string): void;
|
|
6299
|
+
/**
|
|
6300
|
+
* @remarks
|
|
6301
|
+
* Updates title of the property item.
|
|
6302
|
+
*
|
|
6303
|
+
* @param title
|
|
6304
|
+
* New title.
|
|
6305
|
+
*/
|
|
6306
|
+
setTitle(title: LocalizedString | undefined): void;
|
|
6307
|
+
/**
|
|
6308
|
+
* @remarks
|
|
6309
|
+
* Updates tooltip description of property item.
|
|
6310
|
+
*
|
|
6311
|
+
* @param tooltip
|
|
6312
|
+
* New tooltip.
|
|
6313
|
+
*/
|
|
6314
|
+
setTooltip(tooltip: BasicTooltipContent | undefined): void;
|
|
6315
|
+
}
|
|
6316
|
+
|
|
6317
|
+
/**
|
|
6318
|
+
* Optional properties for Menu property item
|
|
6319
|
+
*/
|
|
6320
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
6321
|
+
export interface IMenuPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
6322
|
+
/**
|
|
6323
|
+
* @remarks
|
|
6324
|
+
* Called when a menu item is clicked.
|
|
6325
|
+
*
|
|
6326
|
+
*/
|
|
6327
|
+
onMenuItemClick?: (menuId: string) => void;
|
|
6328
|
+
/**
|
|
6329
|
+
* @remarks
|
|
6330
|
+
* Localized title of the property item.
|
|
6331
|
+
*
|
|
6332
|
+
*/
|
|
6333
|
+
title?: LocalizedString;
|
|
6334
|
+
/**
|
|
6335
|
+
* @remarks
|
|
6336
|
+
* Tooltip description of the property item.
|
|
6337
|
+
*
|
|
6338
|
+
*/
|
|
6339
|
+
tooltip?: BasicTooltipContent;
|
|
6340
|
+
}
|
|
6341
|
+
|
|
6234
6342
|
/**
|
|
6235
6343
|
* A sub pane for modal control elements.
|
|
6236
6344
|
*/
|
|
@@ -7048,6 +7156,18 @@ export interface IPropertyPane extends IPane {
|
|
|
7048
7156
|
*
|
|
7049
7157
|
*/
|
|
7050
7158
|
addLink(value: IObservableProp<string>, options?: ILinkPropertyItemOptions): ILinkPropertyItem;
|
|
7159
|
+
/**
|
|
7160
|
+
* @remarks
|
|
7161
|
+
* Adds a menu button property item to the pane.
|
|
7162
|
+
*
|
|
7163
|
+
*/
|
|
7164
|
+
addMenu(
|
|
7165
|
+
defaultEntries: {
|
|
7166
|
+
params: IMenuCreationParams;
|
|
7167
|
+
action?: RegisteredAction<NoArgsAction>;
|
|
7168
|
+
}[],
|
|
7169
|
+
options?: IMenuPropertyItemOptions,
|
|
7170
|
+
): IMenuPropertyItem;
|
|
7051
7171
|
/**
|
|
7052
7172
|
* @remarks
|
|
7053
7173
|
* Adds a number item to the pane.
|
|
@@ -7095,7 +7215,16 @@ export interface IPropertyPane extends IPane {
|
|
|
7095
7215
|
addToggleGroup(value: IObservableProp<number>, options?: IToggleGroupPropertyItemOptions): IToggleGroupPropertyItem;
|
|
7096
7216
|
/**
|
|
7097
7217
|
* @remarks
|
|
7098
|
-
* Adds a
|
|
7218
|
+
* Adds a Vector2 item to the pane.
|
|
7219
|
+
*
|
|
7220
|
+
*/
|
|
7221
|
+
addVector2(
|
|
7222
|
+
value: IObservableProp<minecraftserver.Vector2>,
|
|
7223
|
+
options?: IVector2PropertyItemOptions,
|
|
7224
|
+
): IVector2PropertyItem;
|
|
7225
|
+
/**
|
|
7226
|
+
* @remarks
|
|
7227
|
+
* Adds a Vector3 item to the pane.
|
|
7099
7228
|
*
|
|
7100
7229
|
*/
|
|
7101
7230
|
addVector3(
|
|
@@ -7726,6 +7855,94 @@ export interface IToggleGroupPropertyItemOptions extends IPropertyItemOptionsBas
|
|
|
7726
7855
|
tooltip?: BasicTooltipContent;
|
|
7727
7856
|
}
|
|
7728
7857
|
|
|
7858
|
+
/**
|
|
7859
|
+
* A property item which supports Vector2 properties
|
|
7860
|
+
*/
|
|
7861
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7862
|
+
export interface IVector2PropertyItem extends IPropertyItemBase {
|
|
7863
|
+
/**
|
|
7864
|
+
* @remarks
|
|
7865
|
+
* Current value of the property item.
|
|
7866
|
+
*
|
|
7867
|
+
*/
|
|
7868
|
+
readonly value: Readonly<minecraftserver.Vector2>;
|
|
7869
|
+
/**
|
|
7870
|
+
* @remarks
|
|
7871
|
+
* Updates title of the button.
|
|
7872
|
+
*
|
|
7873
|
+
* @param title
|
|
7874
|
+
* New button title.
|
|
7875
|
+
*/
|
|
7876
|
+
setTitle(title: LocalizedString | undefined): void;
|
|
7877
|
+
/**
|
|
7878
|
+
* @remarks
|
|
7879
|
+
* Updates tooltip description of the button.
|
|
7880
|
+
*
|
|
7881
|
+
* @param tooltip
|
|
7882
|
+
* New button tooltip.
|
|
7883
|
+
*/
|
|
7884
|
+
setTooltip(tooltip: BasicTooltipContent | undefined): void;
|
|
7885
|
+
/**
|
|
7886
|
+
* @remarks
|
|
7887
|
+
* Updates Vector2 limits and clamps the current value.
|
|
7888
|
+
*
|
|
7889
|
+
*/
|
|
7890
|
+
updateAxisLimits(limits: { min?: Partial<minecraftserver.Vector2>; max?: Partial<minecraftserver.Vector2> }): void;
|
|
7891
|
+
}
|
|
7892
|
+
|
|
7893
|
+
/**
|
|
7894
|
+
* Optional properties for Vector2 property item
|
|
7895
|
+
*/
|
|
7896
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7897
|
+
export interface IVector2PropertyItemOptions extends IPropertyItemOptionsBase {
|
|
7898
|
+
/**
|
|
7899
|
+
* @remarks
|
|
7900
|
+
* If true label text will be hidden. It will be visible by
|
|
7901
|
+
* default.
|
|
7902
|
+
*
|
|
7903
|
+
*/
|
|
7904
|
+
hiddenLabel?: boolean;
|
|
7905
|
+
/**
|
|
7906
|
+
* @remarks
|
|
7907
|
+
* If we should treat the Vector2 properties as integer values.
|
|
7908
|
+
* By default is false.
|
|
7909
|
+
*
|
|
7910
|
+
*/
|
|
7911
|
+
isInteger?: boolean;
|
|
7912
|
+
/**
|
|
7913
|
+
* @remarks
|
|
7914
|
+
* The min possible limits. If undefined,
|
|
7915
|
+
* Number.MAX_SAFE_INTEGER will be used.
|
|
7916
|
+
*
|
|
7917
|
+
*/
|
|
7918
|
+
max?: Partial<minecraftserver.Vector2>;
|
|
7919
|
+
/**
|
|
7920
|
+
* @remarks
|
|
7921
|
+
* The min possible limits. If undefined,
|
|
7922
|
+
* Number.MIN_SAFE_INTEGER will be used.
|
|
7923
|
+
*
|
|
7924
|
+
*/
|
|
7925
|
+
min?: Partial<minecraftserver.Vector2>;
|
|
7926
|
+
/**
|
|
7927
|
+
* @remarks
|
|
7928
|
+
* This callback is called when UI control is changed.
|
|
7929
|
+
*
|
|
7930
|
+
*/
|
|
7931
|
+
onChange?: (newValue: minecraftserver.Vector2, oldValue: minecraftserver.Vector2) => void;
|
|
7932
|
+
/**
|
|
7933
|
+
* @remarks
|
|
7934
|
+
* Localized title of the property item
|
|
7935
|
+
*
|
|
7936
|
+
*/
|
|
7937
|
+
title?: LocalizedString;
|
|
7938
|
+
/**
|
|
7939
|
+
* @remarks
|
|
7940
|
+
* Tooltip description of the property item
|
|
7941
|
+
*
|
|
7942
|
+
*/
|
|
7943
|
+
tooltip?: BasicTooltipContent;
|
|
7944
|
+
}
|
|
7945
|
+
|
|
7729
7946
|
/**
|
|
7730
7947
|
* A property item which supports Vector3 properties
|
|
7731
7948
|
*/
|
|
@@ -7836,7 +8053,7 @@ export interface LogProperties {
|
|
|
7836
8053
|
* specified, then all players will receive the message
|
|
7837
8054
|
*
|
|
7838
8055
|
*/
|
|
7839
|
-
player?:
|
|
8056
|
+
player?: minecraftserver.Player;
|
|
7840
8057
|
/**
|
|
7841
8058
|
* @remarks
|
|
7842
8059
|
* Message to be shown under the message when toast channel is
|
|
@@ -7885,11 +8102,11 @@ export interface ModalToolCreationParameters {
|
|
|
7885
8102
|
|
|
7886
8103
|
export interface ProjectExportOptions {
|
|
7887
8104
|
alwaysDay?: boolean;
|
|
7888
|
-
difficulty?:
|
|
8105
|
+
difficulty?: minecraftserver.Difficulty;
|
|
7889
8106
|
disableWeather?: boolean;
|
|
7890
8107
|
exportName?: string;
|
|
7891
8108
|
exportType: ProjectExportType;
|
|
7892
|
-
gameMode?:
|
|
8109
|
+
gameMode?: minecraftserver.GameMode;
|
|
7893
8110
|
initialTimOfDay?: number;
|
|
7894
8111
|
}
|
|
7895
8112
|
|
|
@@ -7901,31 +8118,31 @@ export interface QuickExtrudeProperties {
|
|
|
7901
8118
|
layerCount?: number;
|
|
7902
8119
|
selectionDirection?: number;
|
|
7903
8120
|
size?: number;
|
|
7904
|
-
startingLocation?:
|
|
8121
|
+
startingLocation?: minecraftserver.Vector3;
|
|
7905
8122
|
}
|
|
7906
8123
|
|
|
7907
8124
|
export interface WeightedBlock {
|
|
7908
|
-
block:
|
|
8125
|
+
block: minecraftserver.BlockType;
|
|
7909
8126
|
weight: number;
|
|
7910
8127
|
}
|
|
7911
8128
|
|
|
7912
8129
|
export interface WidgetComponentBaseOptions {
|
|
7913
8130
|
lockToSurface?: boolean;
|
|
7914
|
-
offset?:
|
|
8131
|
+
offset?: minecraftserver.Vector3;
|
|
7915
8132
|
visible?: boolean;
|
|
7916
8133
|
}
|
|
7917
8134
|
|
|
7918
8135
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7919
8136
|
export interface WidgetComponentBoundingBoxOptions extends WidgetComponentBaseOptions {
|
|
7920
|
-
boundsOffset?:
|
|
8137
|
+
boundsOffset?: minecraftserver.Vector3;
|
|
7921
8138
|
enableResizeHandles?: Axis;
|
|
7922
|
-
hullColor?:
|
|
7923
|
-
maxSize?:
|
|
7924
|
-
minSize?:
|
|
7925
|
-
mirror?:
|
|
7926
|
-
normalizedOrigin?:
|
|
7927
|
-
outlineColor?:
|
|
7928
|
-
rotation?:
|
|
8139
|
+
hullColor?: minecraftserver.RGBA;
|
|
8140
|
+
maxSize?: minecraftserver.Vector3;
|
|
8141
|
+
minSize?: minecraftserver.Vector3;
|
|
8142
|
+
mirror?: minecraftserver.StructureMirrorAxis;
|
|
8143
|
+
normalizedOrigin?: minecraftserver.Vector3;
|
|
8144
|
+
outlineColor?: minecraftserver.RGBA;
|
|
8145
|
+
rotation?: minecraftserver.StructureRotation;
|
|
7929
8146
|
showWorldIntersections?: boolean;
|
|
7930
8147
|
stateChangeEvent?: (arg0: WidgetComponentBoundingBoxStateChangeEventParameters) => void;
|
|
7931
8148
|
visibleHull?: boolean;
|
|
@@ -7933,14 +8150,14 @@ export interface WidgetComponentBoundingBoxOptions extends WidgetComponentBaseOp
|
|
|
7933
8150
|
|
|
7934
8151
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7935
8152
|
export interface WidgetComponentClipboardOptions extends WidgetComponentBaseOptions {
|
|
7936
|
-
clipboardOffset?:
|
|
7937
|
-
highlightHullColor?:
|
|
7938
|
-
highlightOutlineColor?:
|
|
7939
|
-
hullColor?:
|
|
7940
|
-
mirror?:
|
|
7941
|
-
normalizedOrigin?:
|
|
7942
|
-
outlineColor?:
|
|
7943
|
-
rotation?:
|
|
8153
|
+
clipboardOffset?: minecraftserver.Vector3;
|
|
8154
|
+
highlightHullColor?: minecraftserver.RGBA;
|
|
8155
|
+
highlightOutlineColor?: minecraftserver.RGBA;
|
|
8156
|
+
hullColor?: minecraftserver.RGBA;
|
|
8157
|
+
mirror?: minecraftserver.StructureMirrorAxis;
|
|
8158
|
+
normalizedOrigin?: minecraftserver.Vector3;
|
|
8159
|
+
outlineColor?: minecraftserver.RGBA;
|
|
8160
|
+
rotation?: minecraftserver.StructureRotation;
|
|
7944
8161
|
showOutline?: boolean;
|
|
7945
8162
|
}
|
|
7946
8163
|
|
|
@@ -7955,15 +8172,15 @@ export interface WidgetComponentEntityOptions extends WidgetComponentBaseOptions
|
|
|
7955
8172
|
export interface WidgetComponentGizmoOptions extends WidgetComponentBaseOptions {
|
|
7956
8173
|
axes?: Axis;
|
|
7957
8174
|
enablePlanes?: boolean;
|
|
7958
|
-
normalizedAutoOffset?:
|
|
8175
|
+
normalizedAutoOffset?: minecraftserver.Vector3;
|
|
7959
8176
|
stateChangeEvent?: (arg0: WidgetComponentGizmoStateChangeEventParameters) => void;
|
|
7960
8177
|
}
|
|
7961
8178
|
|
|
7962
8179
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7963
8180
|
export interface WidgetComponentGridOptions extends WidgetComponentBaseOptions {
|
|
7964
|
-
color?:
|
|
7965
|
-
gridCount?:
|
|
7966
|
-
gridSize?:
|
|
8181
|
+
color?: minecraftserver.RGBA;
|
|
8182
|
+
gridCount?: minecraftserver.Vector2;
|
|
8183
|
+
gridSize?: minecraftserver.Vector2;
|
|
7967
8184
|
plane?: Plane;
|
|
7968
8185
|
}
|
|
7969
8186
|
|
|
@@ -7981,26 +8198,26 @@ export interface WidgetComponentSplineOptions extends WidgetComponentBaseOptions
|
|
|
7981
8198
|
|
|
7982
8199
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7983
8200
|
export interface WidgetComponentTextOptions extends WidgetComponentBaseOptions {
|
|
7984
|
-
color?:
|
|
8201
|
+
color?: minecraftserver.RGBA;
|
|
7985
8202
|
}
|
|
7986
8203
|
|
|
7987
8204
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
7988
8205
|
export interface WidgetComponentVolumeOutlineOptions extends WidgetComponentBaseOptions {
|
|
7989
|
-
highlightHullColor?:
|
|
7990
|
-
highlightOutlineColor?:
|
|
7991
|
-
hullColor?:
|
|
7992
|
-
mirror?:
|
|
7993
|
-
normalizedOrigin?:
|
|
7994
|
-
outlineColor?:
|
|
7995
|
-
rotation?:
|
|
8206
|
+
highlightHullColor?: minecraftserver.RGBA;
|
|
8207
|
+
highlightOutlineColor?: minecraftserver.RGBA;
|
|
8208
|
+
hullColor?: minecraftserver.RGBA;
|
|
8209
|
+
mirror?: minecraftserver.StructureMirrorAxis;
|
|
8210
|
+
normalizedOrigin?: minecraftserver.Vector3;
|
|
8211
|
+
outlineColor?: minecraftserver.RGBA;
|
|
8212
|
+
rotation?: minecraftserver.StructureRotation;
|
|
7996
8213
|
showHighlightOutline?: boolean;
|
|
7997
8214
|
showOutline?: boolean;
|
|
7998
|
-
volumeOffset?:
|
|
8215
|
+
volumeOffset?: minecraftserver.Vector3;
|
|
7999
8216
|
}
|
|
8000
8217
|
|
|
8001
8218
|
export interface WidgetCreateOptions {
|
|
8002
8219
|
bindPositionToBlockCursor?: boolean;
|
|
8003
|
-
collisionOffset?:
|
|
8220
|
+
collisionOffset?: minecraftserver.Vector3;
|
|
8004
8221
|
collisionRadius?: number;
|
|
8005
8222
|
collisionType?: WidgetCollisionType;
|
|
8006
8223
|
lockToSurface?: boolean;
|
|
@@ -8009,8 +8226,8 @@ export interface WidgetCreateOptions {
|
|
|
8009
8226
|
stateChangeEvent?: (arg0: WidgetStateChangeEventData) => void;
|
|
8010
8227
|
visible?: boolean;
|
|
8011
8228
|
widgetName?: string;
|
|
8012
|
-
worldBoundsMax?:
|
|
8013
|
-
worldBoundsMin?:
|
|
8229
|
+
worldBoundsMax?: minecraftserver.Vector3;
|
|
8230
|
+
worldBoundsMin?: minecraftserver.Vector3;
|
|
8014
8231
|
}
|
|
8015
8232
|
|
|
8016
8233
|
export interface WidgetGroupCreateOptions {
|