@minecraft/server-editor 0.1.0-beta.1.21.50-preview.24 → 0.1.0-beta.1.21.50-preview.26
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 +179 -127
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -901,9 +901,9 @@ export enum PaintMode {
|
|
|
901
901
|
}
|
|
902
902
|
|
|
903
903
|
export enum Plane {
|
|
904
|
-
XY =
|
|
905
|
-
XZ =
|
|
906
|
-
YZ =
|
|
904
|
+
XY = 0,
|
|
905
|
+
XZ = 1,
|
|
906
|
+
YZ = 2,
|
|
907
907
|
}
|
|
908
908
|
|
|
909
909
|
export enum PlayerPermissionLevel {
|
|
@@ -929,11 +929,11 @@ export enum PlaytestSessionResult {
|
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
export enum PrimitiveType {
|
|
932
|
-
|
|
933
|
-
Box =
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
932
|
+
Text = 0,
|
|
933
|
+
Box = 1,
|
|
934
|
+
Line = 2,
|
|
935
|
+
Disc = 4,
|
|
936
|
+
AxialSphere = 5,
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
export enum ProjectExportType {
|
|
@@ -974,8 +974,8 @@ export declare enum SimpleToolStatusBarVisibility {
|
|
|
974
974
|
}
|
|
975
975
|
|
|
976
976
|
export enum SplineType {
|
|
977
|
-
|
|
978
|
-
|
|
977
|
+
Line = 0,
|
|
978
|
+
Hermite = 1,
|
|
979
979
|
}
|
|
980
980
|
|
|
981
981
|
/**
|
|
@@ -1052,6 +1052,7 @@ export enum ThemeSettingsColorKey {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
1054
|
export enum WidgetComponentType {
|
|
1055
|
+
Clipboard = 'Clipboard',
|
|
1055
1056
|
Entity = 'Entity',
|
|
1056
1057
|
Gizmo = 'Gizmo',
|
|
1057
1058
|
Guide = 'Guide',
|
|
@@ -1641,6 +1642,7 @@ export class ClipboardChangeAfterEventSignal {
|
|
|
1641
1642
|
*/
|
|
1642
1643
|
export class ClipboardItem {
|
|
1643
1644
|
private constructor();
|
|
1645
|
+
readonly id: string;
|
|
1644
1646
|
/**
|
|
1645
1647
|
* @remarks
|
|
1646
1648
|
* Return whether there is any block content in the item
|
|
@@ -1912,44 +1914,32 @@ export class Cursor {
|
|
|
1912
1914
|
readonly isVisible: boolean;
|
|
1913
1915
|
/**
|
|
1914
1916
|
* @remarks
|
|
1915
|
-
*
|
|
1916
|
-
*
|
|
1917
|
-
* @throws This function can throw errors.
|
|
1918
|
-
*/
|
|
1919
|
-
attachClipboardItem(item: ClipboardItem): void;
|
|
1920
|
-
/**
|
|
1921
|
-
* @remarks
|
|
1922
|
-
* This function can't be called in read-only mode.
|
|
1917
|
+
* Get the world position of the 3D block cursor
|
|
1923
1918
|
*
|
|
1924
|
-
* @throws This function can throw errors.
|
|
1925
|
-
*/
|
|
1926
|
-
clearAttachment(): void;
|
|
1927
|
-
/**
|
|
1928
|
-
* @remarks
|
|
1929
1919
|
* This function can't be called in read-only mode.
|
|
1930
1920
|
*
|
|
1931
1921
|
* @throws This function can throw errors.
|
|
1932
1922
|
*/
|
|
1933
|
-
|
|
1923
|
+
getPosition(): minecraftserver.Vector3;
|
|
1934
1924
|
/**
|
|
1935
1925
|
* @remarks
|
|
1936
|
-
* Get
|
|
1926
|
+
* Get a property object which represents the current
|
|
1927
|
+
* properties of the 3D block cursor.
|
|
1937
1928
|
*
|
|
1938
1929
|
* This function can't be called in read-only mode.
|
|
1939
1930
|
*
|
|
1940
1931
|
* @throws This function can throw errors.
|
|
1941
1932
|
*/
|
|
1942
|
-
|
|
1933
|
+
getProperties(): CursorProperties;
|
|
1943
1934
|
/**
|
|
1944
1935
|
* @remarks
|
|
1945
|
-
* Get a property object which represents the current
|
|
1946
|
-
* properties of the 3D block cursor.
|
|
1947
|
-
*
|
|
1948
1936
|
* This function can't be called in read-only mode.
|
|
1949
1937
|
*
|
|
1950
1938
|
* @throws This function can throw errors.
|
|
1939
|
+
*
|
|
1940
|
+
* {@link Error}
|
|
1951
1941
|
*/
|
|
1952
|
-
|
|
1942
|
+
getRay(): CursorRay;
|
|
1953
1943
|
/**
|
|
1954
1944
|
* @remarks
|
|
1955
1945
|
* Hide the 3D block cursor from view until the corresponding
|
|
@@ -1985,13 +1975,6 @@ export class Cursor {
|
|
|
1985
1975
|
* @throws This function can throw errors.
|
|
1986
1976
|
*/
|
|
1987
1977
|
resetToDefaultState(): void;
|
|
1988
|
-
/**
|
|
1989
|
-
* @remarks
|
|
1990
|
-
* This function can't be called in read-only mode.
|
|
1991
|
-
*
|
|
1992
|
-
* @throws This function can throw errors.
|
|
1993
|
-
*/
|
|
1994
|
-
setAttachmentProperties(properties: CursorAttachmentProperties): void;
|
|
1995
1978
|
/**
|
|
1996
1979
|
* @remarks
|
|
1997
1980
|
* Set the 3D block cursor properties to a given state
|
|
@@ -2015,33 +1998,6 @@ export class Cursor {
|
|
|
2015
1998
|
show(): void;
|
|
2016
1999
|
}
|
|
2017
2000
|
|
|
2018
|
-
export class CursorAttachmentPropertiesChangeAfterEvent {
|
|
2019
|
-
private constructor();
|
|
2020
|
-
readonly properties: CursorAttachmentProperties;
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
export class CursorAttachmentPropertyChangeAfterEventSignal {
|
|
2024
|
-
private constructor();
|
|
2025
|
-
/**
|
|
2026
|
-
* @remarks
|
|
2027
|
-
* This function can't be called in read-only mode.
|
|
2028
|
-
*
|
|
2029
|
-
* This function can be called in early-execution mode.
|
|
2030
|
-
*
|
|
2031
|
-
*/
|
|
2032
|
-
subscribe(
|
|
2033
|
-
callback: (arg: CursorAttachmentPropertiesChangeAfterEvent) => void,
|
|
2034
|
-
): (arg: CursorAttachmentPropertiesChangeAfterEvent) => void;
|
|
2035
|
-
/**
|
|
2036
|
-
* @remarks
|
|
2037
|
-
* This function can't be called in read-only mode.
|
|
2038
|
-
*
|
|
2039
|
-
* This function can be called in early-execution mode.
|
|
2040
|
-
*
|
|
2041
|
-
*/
|
|
2042
|
-
unsubscribe(callback: (arg: CursorAttachmentPropertiesChangeAfterEvent) => void): void;
|
|
2043
|
-
}
|
|
2044
|
-
|
|
2045
2001
|
export class CursorPropertiesChangeAfterEvent {
|
|
2046
2002
|
private constructor();
|
|
2047
2003
|
readonly properties: CursorProperties;
|
|
@@ -2301,7 +2257,6 @@ export class ExtensionContextAfterEvents {
|
|
|
2301
2257
|
readonly clipboardChange: ClipboardChangeAfterEventSignal;
|
|
2302
2258
|
readonly currentThemeChange: CurrentThemeChangeAfterEventSignal;
|
|
2303
2259
|
readonly currentThemeColorChange: CurrentThemeColorChangeAfterEventSignal;
|
|
2304
|
-
readonly cursorAttachmentPropertyChange: CursorAttachmentPropertyChangeAfterEventSignal;
|
|
2305
2260
|
readonly cursorPropertyChange: CursorPropertyChangeAfterEventSignal;
|
|
2306
2261
|
/**
|
|
2307
2262
|
* @remarks
|
|
@@ -2984,7 +2939,7 @@ export class ThemeSettings {
|
|
|
2984
2939
|
*
|
|
2985
2940
|
* {@link Error}
|
|
2986
2941
|
*/
|
|
2987
|
-
addNewTheme(id: string): void;
|
|
2942
|
+
addNewTheme(id: string, name?: string, sourceThemeId?: string): void;
|
|
2988
2943
|
canThemeBeModified(id: string): boolean;
|
|
2989
2944
|
/**
|
|
2990
2945
|
* @remarks
|
|
@@ -2997,7 +2952,13 @@ export class ThemeSettings {
|
|
|
2997
2952
|
deleteTheme(id: string): void;
|
|
2998
2953
|
getCurrentTheme(): string;
|
|
2999
2954
|
getThemeColors(id: string): Record<string, minecraftserver.RGBA> | undefined;
|
|
3000
|
-
|
|
2955
|
+
getThemeIdList(): string[];
|
|
2956
|
+
/**
|
|
2957
|
+
* @throws This function can throw errors.
|
|
2958
|
+
*
|
|
2959
|
+
* {@link Error}
|
|
2960
|
+
*/
|
|
2961
|
+
getThemeName(id: string): string;
|
|
3001
2962
|
resolveColorKey(key: ThemeSettingsColorKey): minecraftserver.RGBA;
|
|
3002
2963
|
/**
|
|
3003
2964
|
* @remarks
|
|
@@ -3008,6 +2969,15 @@ export class ThemeSettings {
|
|
|
3008
2969
|
* {@link Error}
|
|
3009
2970
|
*/
|
|
3010
2971
|
setCurrentTheme(id: string): void;
|
|
2972
|
+
/**
|
|
2973
|
+
* @remarks
|
|
2974
|
+
* This function can't be called in read-only mode.
|
|
2975
|
+
*
|
|
2976
|
+
* @throws This function can throw errors.
|
|
2977
|
+
*
|
|
2978
|
+
* {@link Error}
|
|
2979
|
+
*/
|
|
2980
|
+
setThemeName(id: string, name: string): void;
|
|
3011
2981
|
/**
|
|
3012
2982
|
* @remarks
|
|
3013
2983
|
* This function can't be called in read-only mode.
|
|
@@ -3339,6 +3309,12 @@ export declare class Vector3LimitObservableValidator implements ObservableValida
|
|
|
3339
3309
|
|
|
3340
3310
|
export class Widget {
|
|
3341
3311
|
private constructor();
|
|
3312
|
+
/**
|
|
3313
|
+
* @remarks
|
|
3314
|
+
* This property can't be edited in read-only mode.
|
|
3315
|
+
*
|
|
3316
|
+
*/
|
|
3317
|
+
bindPositionToBlockCursor: boolean;
|
|
3342
3318
|
/**
|
|
3343
3319
|
* @remarks
|
|
3344
3320
|
* This property can't be edited in read-only mode.
|
|
@@ -3357,6 +3333,12 @@ export class Widget {
|
|
|
3357
3333
|
*
|
|
3358
3334
|
*/
|
|
3359
3335
|
location: minecraftserver.Vector3;
|
|
3336
|
+
/**
|
|
3337
|
+
* @remarks
|
|
3338
|
+
* This property can't be edited in read-only mode.
|
|
3339
|
+
*
|
|
3340
|
+
*/
|
|
3341
|
+
lockPositionToSurface: boolean;
|
|
3360
3342
|
/**
|
|
3361
3343
|
* @throws This property can throw when used.
|
|
3362
3344
|
*
|
|
@@ -3373,6 +3355,21 @@ export class Widget {
|
|
|
3373
3355
|
*/
|
|
3374
3356
|
snapToBlockLocation: boolean;
|
|
3375
3357
|
visible: boolean;
|
|
3358
|
+
/**
|
|
3359
|
+
* @remarks
|
|
3360
|
+
* This function can't be called in read-only mode.
|
|
3361
|
+
*
|
|
3362
|
+
* @throws This function can throw errors.
|
|
3363
|
+
*
|
|
3364
|
+
* {@link Error}
|
|
3365
|
+
*
|
|
3366
|
+
* {@link InvalidWidgetError}
|
|
3367
|
+
*/
|
|
3368
|
+
addClipboardComponent(
|
|
3369
|
+
componentName: string,
|
|
3370
|
+
clipboardItem?: ClipboardItem,
|
|
3371
|
+
options?: WidgetComponentClipboardOptions,
|
|
3372
|
+
): WidgetComponentClipboard;
|
|
3376
3373
|
/**
|
|
3377
3374
|
* @remarks
|
|
3378
3375
|
* This function can't be called in read-only mode.
|
|
@@ -3423,10 +3420,10 @@ export class Widget {
|
|
|
3423
3420
|
addRenderPrimitiveComponent(
|
|
3424
3421
|
componentName: string,
|
|
3425
3422
|
primitiveType:
|
|
3426
|
-
|
|
|
3427
|
-
|
|
|
3428
|
-
|
|
|
3429
|
-
|
|
|
3423
|
+
| WidgetComponentRenderPrimitiveTypeAxialSphere
|
|
3424
|
+
| WidgetComponentRenderPrimitiveTypeBox
|
|
3425
|
+
| WidgetComponentRenderPrimitiveTypeDisc
|
|
3426
|
+
| WidgetComponentRenderPrimitiveTypeLine,
|
|
3430
3427
|
options?: WidgetComponentRenderPrimitiveOptions,
|
|
3431
3428
|
): WidgetComponentRenderPrimitive;
|
|
3432
3429
|
/**
|
|
@@ -3504,8 +3501,6 @@ export class Widget {
|
|
|
3504
3501
|
* @throws This function can throw errors.
|
|
3505
3502
|
*
|
|
3506
3503
|
* {@link InvalidWidgetError}
|
|
3507
|
-
*
|
|
3508
|
-
* {@link InvalidWidgetError}
|
|
3509
3504
|
*/
|
|
3510
3505
|
setStateChangeEvent(eventFunction?: (arg: WidgetStateChangeEventData) => void): void;
|
|
3511
3506
|
}
|
|
@@ -3524,6 +3519,12 @@ export class WidgetComponentBase {
|
|
|
3524
3519
|
* {@link minecraftserver.InvalidWidgetComponentError}
|
|
3525
3520
|
*/
|
|
3526
3521
|
readonly location: minecraftserver.Vector3;
|
|
3522
|
+
/**
|
|
3523
|
+
* @remarks
|
|
3524
|
+
* This property can't be edited in read-only mode.
|
|
3525
|
+
*
|
|
3526
|
+
*/
|
|
3527
|
+
lockToSurface: boolean;
|
|
3527
3528
|
/**
|
|
3528
3529
|
* @throws This property can throw when used.
|
|
3529
3530
|
*
|
|
@@ -3553,6 +3554,27 @@ export class WidgetComponentBase {
|
|
|
3553
3554
|
* {@link InvalidWidgetComponentError}
|
|
3554
3555
|
*/
|
|
3555
3556
|
delete(): void;
|
|
3557
|
+
/**
|
|
3558
|
+
* @remarks
|
|
3559
|
+
* This function can't be called in read-only mode.
|
|
3560
|
+
*
|
|
3561
|
+
* @throws This function can throw errors.
|
|
3562
|
+
*
|
|
3563
|
+
* {@link InvalidWidgetComponentError}
|
|
3564
|
+
*/
|
|
3565
|
+
setStateChangeEvent(eventFunction?: (arg: WidgetComponentStateChangeEventData) => void): void;
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3569
|
+
export class WidgetComponentClipboard extends WidgetComponentBase {
|
|
3570
|
+
private constructor();
|
|
3571
|
+
clipboardMirror: minecraftserver.StructureMirrorAxis;
|
|
3572
|
+
clipboardNormalizedOrigin: minecraftserver.Vector3;
|
|
3573
|
+
clipboardOffset: minecraftserver.Vector3;
|
|
3574
|
+
clipboardRotation: minecraftserver.StructureRotation;
|
|
3575
|
+
fillColor: minecraftserver.RGBA;
|
|
3576
|
+
outlineColor: minecraftserver.RGBA;
|
|
3577
|
+
showBounds: boolean;
|
|
3556
3578
|
}
|
|
3557
3579
|
|
|
3558
3580
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -3578,6 +3600,7 @@ export class WidgetComponentEntity extends WidgetComponentBase {
|
|
|
3578
3600
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3579
3601
|
export class WidgetComponentGizmo extends WidgetComponentBase {
|
|
3580
3602
|
private constructor();
|
|
3603
|
+
activated: boolean;
|
|
3581
3604
|
}
|
|
3582
3605
|
|
|
3583
3606
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -3588,6 +3611,14 @@ export class WidgetComponentGuide extends WidgetComponentBase {
|
|
|
3588
3611
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3589
3612
|
export class WidgetComponentRenderPrimitive extends WidgetComponentBase {
|
|
3590
3613
|
private constructor();
|
|
3614
|
+
/**
|
|
3615
|
+
* @throws This property can throw when used.
|
|
3616
|
+
*
|
|
3617
|
+
* {@link InvalidWidgetComponentError}
|
|
3618
|
+
*
|
|
3619
|
+
* {@link InvalidWidgetError}
|
|
3620
|
+
*/
|
|
3621
|
+
readonly primitiveType: PrimitiveType;
|
|
3591
3622
|
/**
|
|
3592
3623
|
* @remarks
|
|
3593
3624
|
* This function can't be called in read-only mode.
|
|
@@ -3600,14 +3631,15 @@ export class WidgetComponentRenderPrimitive extends WidgetComponentBase {
|
|
|
3600
3631
|
*/
|
|
3601
3632
|
setPrimitive(
|
|
3602
3633
|
primitive:
|
|
3603
|
-
|
|
|
3604
|
-
|
|
|
3605
|
-
|
|
|
3606
|
-
|
|
|
3634
|
+
| WidgetComponentRenderPrimitiveTypeAxialSphere
|
|
3635
|
+
| WidgetComponentRenderPrimitiveTypeBox
|
|
3636
|
+
| WidgetComponentRenderPrimitiveTypeDisc
|
|
3637
|
+
| WidgetComponentRenderPrimitiveTypeLine,
|
|
3607
3638
|
): void;
|
|
3608
3639
|
}
|
|
3609
3640
|
|
|
3610
|
-
|
|
3641
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3642
|
+
export class WidgetComponentRenderPrimitiveTypeAxialSphere extends WidgetComponentRenderPrimitiveTypeBase {
|
|
3611
3643
|
/**
|
|
3612
3644
|
* @remarks
|
|
3613
3645
|
* This property can't be edited in read-only mode.
|
|
@@ -3629,7 +3661,13 @@ export class WidgetComponentRenderPrimitiveAxialSphere {
|
|
|
3629
3661
|
constructor(center: minecraftserver.Vector3, radius: number, color?: minecraftserver.RGBA);
|
|
3630
3662
|
}
|
|
3631
3663
|
|
|
3632
|
-
export class
|
|
3664
|
+
export class WidgetComponentRenderPrimitiveTypeBase {
|
|
3665
|
+
private constructor();
|
|
3666
|
+
readonly primitiveType: PrimitiveType;
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3670
|
+
export class WidgetComponentRenderPrimitiveTypeBox extends WidgetComponentRenderPrimitiveTypeBase {
|
|
3633
3671
|
/**
|
|
3634
3672
|
* @remarks
|
|
3635
3673
|
* This property can't be edited in read-only mode.
|
|
@@ -3651,7 +3689,8 @@ export class WidgetComponentRenderPrimitiveBox {
|
|
|
3651
3689
|
constructor(center: minecraftserver.Vector3, color: minecraftserver.RGBA, size?: minecraftserver.Vector3);
|
|
3652
3690
|
}
|
|
3653
3691
|
|
|
3654
|
-
|
|
3692
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3693
|
+
export class WidgetComponentRenderPrimitiveTypeDisc extends WidgetComponentRenderPrimitiveTypeBase {
|
|
3655
3694
|
/**
|
|
3656
3695
|
* @remarks
|
|
3657
3696
|
* This property can't be edited in read-only mode.
|
|
@@ -3673,7 +3712,8 @@ export class WidgetComponentRenderPrimitiveDisc {
|
|
|
3673
3712
|
constructor(center: minecraftserver.Vector3, radius: number, color: minecraftserver.RGBA);
|
|
3674
3713
|
}
|
|
3675
3714
|
|
|
3676
|
-
|
|
3715
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3716
|
+
export class WidgetComponentRenderPrimitiveTypeLine extends WidgetComponentRenderPrimitiveTypeBase {
|
|
3677
3717
|
/**
|
|
3678
3718
|
* @remarks
|
|
3679
3719
|
* This property can't be edited in read-only mode.
|
|
@@ -3743,6 +3783,14 @@ export class WidgetComponentSpline extends WidgetComponentBase {
|
|
|
3743
3783
|
setControlPoints(widgetList: Widget[]): void;
|
|
3744
3784
|
}
|
|
3745
3785
|
|
|
3786
|
+
export class WidgetComponentStateChangeEventData {
|
|
3787
|
+
private constructor();
|
|
3788
|
+
readonly component: WidgetComponentBase;
|
|
3789
|
+
readonly gizmoActivated?: boolean;
|
|
3790
|
+
readonly group: WidgetGroup;
|
|
3791
|
+
readonly widget: Widget;
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3746
3794
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3747
3795
|
export class WidgetComponentText extends WidgetComponentBase {
|
|
3748
3796
|
private constructor();
|
|
@@ -3885,21 +3933,6 @@ export interface BrushShape {
|
|
|
3885
3933
|
* is being written to the world
|
|
3886
3934
|
*/
|
|
3887
3935
|
export interface ClipboardWriteOptions {
|
|
3888
|
-
/**
|
|
3889
|
-
* @remarks
|
|
3890
|
-
* The anchor is a unit vector representation of the side or
|
|
3891
|
-
* corner of the Clipboard Item to be written to the world.
|
|
3892
|
-
* `{0, 0, 0}` represents the center of the Clipboard item,
|
|
3893
|
-
* `{0, 1, 0}` represents the top, `{-1, -1, -1}` represents
|
|
3894
|
-
* the bottom/back/left corner, etc
|
|
3895
|
-
* The anchor is used in conjunction with the item size to
|
|
3896
|
-
* determine the object relative anchor point where the object
|
|
3897
|
-
* will be applied in the world.
|
|
3898
|
-
* Values for the X/Y/Z components should be within the range
|
|
3899
|
-
* `(-1 <= X/Y/Z <=1)`
|
|
3900
|
-
*
|
|
3901
|
-
*/
|
|
3902
|
-
anchor?: minecraftserver.Vector3;
|
|
3903
3936
|
/**
|
|
3904
3937
|
* @remarks
|
|
3905
3938
|
* An enum which represents the axis (or combination of axis')
|
|
@@ -3910,6 +3943,7 @@ export interface ClipboardWriteOptions {
|
|
|
3910
3943
|
*
|
|
3911
3944
|
*/
|
|
3912
3945
|
mirror?: minecraftserver.StructureMirrorAxis;
|
|
3946
|
+
normalizedOrigin?: minecraftserver.Vector3;
|
|
3913
3947
|
/**
|
|
3914
3948
|
* @remarks
|
|
3915
3949
|
* A position offset which should be applied to the paste
|
|
@@ -3926,18 +3960,6 @@ export interface ClipboardWriteOptions {
|
|
|
3926
3960
|
rotation?: minecraftserver.StructureRotation;
|
|
3927
3961
|
}
|
|
3928
3962
|
|
|
3929
|
-
export interface CursorAttachmentProperties {
|
|
3930
|
-
boundsFillColor?: minecraftserver.RGBA;
|
|
3931
|
-
boundsVisible?: boolean;
|
|
3932
|
-
boundsWireframeColor?: minecraftserver.RGBA;
|
|
3933
|
-
contentsFillColor?: minecraftserver.RGBA;
|
|
3934
|
-
contentsWireframeColor?: minecraftserver.RGBA;
|
|
3935
|
-
mirror?: minecraftserver.StructureMirrorAxis;
|
|
3936
|
-
offset?: minecraftserver.Vector3;
|
|
3937
|
-
origin?: minecraftserver.Vector3;
|
|
3938
|
-
rotation?: minecraftserver.StructureRotation;
|
|
3939
|
-
}
|
|
3940
|
-
|
|
3941
3963
|
/**
|
|
3942
3964
|
* The CursorProperties interface is used to describe the
|
|
3943
3965
|
* properties of the Editor 3D block cursor construct.
|
|
@@ -4008,6 +4030,12 @@ export interface CursorProperties {
|
|
|
4008
4030
|
visible?: boolean;
|
|
4009
4031
|
}
|
|
4010
4032
|
|
|
4033
|
+
export interface CursorRay {
|
|
4034
|
+
end: minecraftserver.Vector3;
|
|
4035
|
+
hit: boolean;
|
|
4036
|
+
start: minecraftserver.Vector3;
|
|
4037
|
+
}
|
|
4038
|
+
|
|
4011
4039
|
export interface EditorStructure {
|
|
4012
4040
|
storageLocation: string;
|
|
4013
4041
|
structure: minecraftserver.Structure;
|
|
@@ -4151,10 +4179,23 @@ export interface WeightedBlock {
|
|
|
4151
4179
|
}
|
|
4152
4180
|
|
|
4153
4181
|
export interface WidgetComponentBaseOptions {
|
|
4182
|
+
lockToSurface?: boolean;
|
|
4154
4183
|
offset?: minecraftserver.Vector3;
|
|
4184
|
+
stateChangeEvent?: (arg: WidgetComponentStateChangeEventData) => void;
|
|
4155
4185
|
visible?: boolean;
|
|
4156
4186
|
}
|
|
4157
4187
|
|
|
4188
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4189
|
+
export interface WidgetComponentClipboardOptions extends WidgetComponentBaseOptions {
|
|
4190
|
+
boundsFillColor?: minecraftserver.RGBA;
|
|
4191
|
+
boundsOutlineColor?: minecraftserver.RGBA;
|
|
4192
|
+
clipboardMirror?: minecraftserver.StructureMirrorAxis;
|
|
4193
|
+
clipboardNormalizedOrigin?: minecraftserver.Vector3;
|
|
4194
|
+
clipboardOffset?: minecraftserver.Vector3;
|
|
4195
|
+
clipboardRotation?: minecraftserver.StructureRotation;
|
|
4196
|
+
showBounds?: boolean;
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4158
4199
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4159
4200
|
export interface WidgetComponentEntityOptions extends WidgetComponentBaseOptions {
|
|
4160
4201
|
deselectedAnimation?: string;
|
|
@@ -4183,8 +4224,10 @@ export interface WidgetComponentTextOptions extends WidgetComponentBaseOptions {
|
|
|
4183
4224
|
}
|
|
4184
4225
|
|
|
4185
4226
|
export interface WidgetCreateOptions {
|
|
4227
|
+
bindPositionToBlockCursor?: boolean;
|
|
4186
4228
|
collisionOffset?: minecraftserver.Vector3;
|
|
4187
4229
|
collisionRadius?: number;
|
|
4230
|
+
lockToSurface?: boolean;
|
|
4188
4231
|
selectable?: boolean;
|
|
4189
4232
|
snapToBlockLocation?: boolean;
|
|
4190
4233
|
stateChangeEvent?: (arg: WidgetStateChangeEventData) => void;
|
|
@@ -5018,7 +5061,7 @@ export interface IMenuCreationParams {
|
|
|
5018
5061
|
export interface IModalTool {
|
|
5019
5062
|
/**
|
|
5020
5063
|
* @remarks
|
|
5021
|
-
* Unique
|
|
5064
|
+
* Unique identifier for the tool
|
|
5022
5065
|
*
|
|
5023
5066
|
*/
|
|
5024
5067
|
readonly id: string;
|
|
@@ -5028,14 +5071,11 @@ export interface IModalTool {
|
|
|
5028
5071
|
*
|
|
5029
5072
|
*/
|
|
5030
5073
|
onModalToolActivation: EventSink<ModalToolLifecycleEventPayload>;
|
|
5031
|
-
bindPropertyPane(pane:
|
|
5032
|
-
dispose(): void;
|
|
5033
|
-
hide(): void;
|
|
5074
|
+
bindPropertyPane(pane: IRootPropertyPane): void;
|
|
5034
5075
|
registerKeyBinding(action: SupportedKeyboardActionTypes, binding: KeyBinding, info?: KeyBindingInfo): void;
|
|
5035
5076
|
registerMouseButtonBinding(action: SupportedMouseActionTypes): void;
|
|
5036
5077
|
registerMouseDragBinding(action: SupportedMouseActionTypes): void;
|
|
5037
5078
|
registerMouseWheelBinding(action: SupportedMouseActionTypes): void;
|
|
5038
|
-
show(): void;
|
|
5039
5079
|
unregisterInputBindings(): void;
|
|
5040
5080
|
}
|
|
5041
5081
|
|
|
@@ -5046,7 +5086,7 @@ export interface IModalToolContainer {
|
|
|
5046
5086
|
*
|
|
5047
5087
|
*/
|
|
5048
5088
|
readonly currentTools: IModalTool[];
|
|
5049
|
-
addTool(
|
|
5089
|
+
addTool(id: string, params: ModalToolCreationParameters): IModalTool;
|
|
5050
5090
|
focusToolInputContext(): void;
|
|
5051
5091
|
getSelectedToolId(): string | undefined;
|
|
5052
5092
|
removeTool(id: string): void;
|
|
@@ -5805,6 +5845,12 @@ export interface IRootPropertyPaneOptions extends IPropertyPaneOptions {
|
|
|
5805
5845
|
* the editor evolves.
|
|
5806
5846
|
*/
|
|
5807
5847
|
export interface ISimpleTool {
|
|
5848
|
+
/**
|
|
5849
|
+
* @remarks
|
|
5850
|
+
* Get the tool unique id
|
|
5851
|
+
*
|
|
5852
|
+
*/
|
|
5853
|
+
get id(): string;
|
|
5808
5854
|
/**
|
|
5809
5855
|
* @remarks
|
|
5810
5856
|
* Get a reference to the menu component that was automatically
|
|
@@ -5956,6 +6002,12 @@ export interface ISimpleToolOptions {
|
|
|
5956
6002
|
*
|
|
5957
6003
|
*/
|
|
5958
6004
|
activationKeyBinding?: ISimpleToolKeyBinding;
|
|
6005
|
+
/**
|
|
6006
|
+
* @remarks
|
|
6007
|
+
* The unique identifier of the tool.
|
|
6008
|
+
*
|
|
6009
|
+
*/
|
|
6010
|
+
id: string;
|
|
5959
6011
|
/**
|
|
5960
6012
|
* @remarks
|
|
5961
6013
|
* The name of the tool. This will be used to identify the tool
|
|
@@ -6150,6 +6202,12 @@ export interface ISimpleToolPaneOptions {
|
|
|
6150
6202
|
*
|
|
6151
6203
|
*/
|
|
6152
6204
|
id: string;
|
|
6205
|
+
/**
|
|
6206
|
+
* @remarks
|
|
6207
|
+
* Information tooltip displayed on the root pane header.
|
|
6208
|
+
*
|
|
6209
|
+
*/
|
|
6210
|
+
infoTooltip?: TooltipInteractiveContent;
|
|
6153
6211
|
onBeginFinalize?: (pane: ISimpleToolPaneComponent) => void;
|
|
6154
6212
|
onEndFinalize?: (pane: ISimpleToolPaneComponent) => void;
|
|
6155
6213
|
onHide?: (pane: ISimpleToolPaneComponent) => void;
|
|
@@ -6761,31 +6819,25 @@ export interface IVector3PropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
6761
6819
|
export interface ModalToolCreationParameters {
|
|
6762
6820
|
/**
|
|
6763
6821
|
* @remarks
|
|
6764
|
-
*
|
|
6765
|
-
*
|
|
6766
|
-
*/
|
|
6767
|
-
icon?: string;
|
|
6768
|
-
/**
|
|
6769
|
-
* @remarks
|
|
6770
|
-
* Modal input context identifier
|
|
6822
|
+
* Action associated with tool activation
|
|
6771
6823
|
*
|
|
6772
6824
|
*/
|
|
6773
|
-
|
|
6825
|
+
action?: RegisteredAction<NoArgsAction>;
|
|
6774
6826
|
/**
|
|
6775
6827
|
* @remarks
|
|
6776
|
-
*
|
|
6828
|
+
* Icon resource
|
|
6777
6829
|
*
|
|
6778
6830
|
*/
|
|
6779
|
-
|
|
6831
|
+
icon?: string;
|
|
6780
6832
|
/**
|
|
6781
6833
|
* @remarks
|
|
6782
|
-
*
|
|
6834
|
+
* Localized title of the tool
|
|
6783
6835
|
*
|
|
6784
6836
|
*/
|
|
6785
|
-
title
|
|
6837
|
+
title?: string;
|
|
6786
6838
|
/**
|
|
6787
6839
|
* @remarks
|
|
6788
|
-
* Tooltip description of the
|
|
6840
|
+
* Tooltip description of the tool
|
|
6789
6841
|
*
|
|
6790
6842
|
*/
|
|
6791
6843
|
tooltip?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.21.50-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.21.50-preview.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^1.17.0-beta.1.21.50-preview.
|
|
17
|
+
"@minecraft/server": "^1.17.0-beta.1.21.50-preview.26"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|