@minecraft/server-editor 0.1.0-beta.1.21.50-preview.25 → 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 +162 -125
- 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
|
|
@@ -3354,6 +3309,12 @@ export declare class Vector3LimitObservableValidator implements ObservableValida
|
|
|
3354
3309
|
|
|
3355
3310
|
export class Widget {
|
|
3356
3311
|
private constructor();
|
|
3312
|
+
/**
|
|
3313
|
+
* @remarks
|
|
3314
|
+
* This property can't be edited in read-only mode.
|
|
3315
|
+
*
|
|
3316
|
+
*/
|
|
3317
|
+
bindPositionToBlockCursor: boolean;
|
|
3357
3318
|
/**
|
|
3358
3319
|
* @remarks
|
|
3359
3320
|
* This property can't be edited in read-only mode.
|
|
@@ -3372,6 +3333,12 @@ export class Widget {
|
|
|
3372
3333
|
*
|
|
3373
3334
|
*/
|
|
3374
3335
|
location: minecraftserver.Vector3;
|
|
3336
|
+
/**
|
|
3337
|
+
* @remarks
|
|
3338
|
+
* This property can't be edited in read-only mode.
|
|
3339
|
+
*
|
|
3340
|
+
*/
|
|
3341
|
+
lockPositionToSurface: boolean;
|
|
3375
3342
|
/**
|
|
3376
3343
|
* @throws This property can throw when used.
|
|
3377
3344
|
*
|
|
@@ -3388,6 +3355,21 @@ export class Widget {
|
|
|
3388
3355
|
*/
|
|
3389
3356
|
snapToBlockLocation: boolean;
|
|
3390
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;
|
|
3391
3373
|
/**
|
|
3392
3374
|
* @remarks
|
|
3393
3375
|
* This function can't be called in read-only mode.
|
|
@@ -3438,10 +3420,10 @@ export class Widget {
|
|
|
3438
3420
|
addRenderPrimitiveComponent(
|
|
3439
3421
|
componentName: string,
|
|
3440
3422
|
primitiveType:
|
|
3441
|
-
|
|
|
3442
|
-
|
|
|
3443
|
-
|
|
|
3444
|
-
|
|
|
3423
|
+
| WidgetComponentRenderPrimitiveTypeAxialSphere
|
|
3424
|
+
| WidgetComponentRenderPrimitiveTypeBox
|
|
3425
|
+
| WidgetComponentRenderPrimitiveTypeDisc
|
|
3426
|
+
| WidgetComponentRenderPrimitiveTypeLine,
|
|
3445
3427
|
options?: WidgetComponentRenderPrimitiveOptions,
|
|
3446
3428
|
): WidgetComponentRenderPrimitive;
|
|
3447
3429
|
/**
|
|
@@ -3519,8 +3501,6 @@ export class Widget {
|
|
|
3519
3501
|
* @throws This function can throw errors.
|
|
3520
3502
|
*
|
|
3521
3503
|
* {@link InvalidWidgetError}
|
|
3522
|
-
*
|
|
3523
|
-
* {@link InvalidWidgetError}
|
|
3524
3504
|
*/
|
|
3525
3505
|
setStateChangeEvent(eventFunction?: (arg: WidgetStateChangeEventData) => void): void;
|
|
3526
3506
|
}
|
|
@@ -3539,6 +3519,12 @@ export class WidgetComponentBase {
|
|
|
3539
3519
|
* {@link minecraftserver.InvalidWidgetComponentError}
|
|
3540
3520
|
*/
|
|
3541
3521
|
readonly location: minecraftserver.Vector3;
|
|
3522
|
+
/**
|
|
3523
|
+
* @remarks
|
|
3524
|
+
* This property can't be edited in read-only mode.
|
|
3525
|
+
*
|
|
3526
|
+
*/
|
|
3527
|
+
lockToSurface: boolean;
|
|
3542
3528
|
/**
|
|
3543
3529
|
* @throws This property can throw when used.
|
|
3544
3530
|
*
|
|
@@ -3568,6 +3554,27 @@ export class WidgetComponentBase {
|
|
|
3568
3554
|
* {@link InvalidWidgetComponentError}
|
|
3569
3555
|
*/
|
|
3570
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;
|
|
3571
3578
|
}
|
|
3572
3579
|
|
|
3573
3580
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -3593,6 +3600,7 @@ export class WidgetComponentEntity extends WidgetComponentBase {
|
|
|
3593
3600
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3594
3601
|
export class WidgetComponentGizmo extends WidgetComponentBase {
|
|
3595
3602
|
private constructor();
|
|
3603
|
+
activated: boolean;
|
|
3596
3604
|
}
|
|
3597
3605
|
|
|
3598
3606
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -3603,6 +3611,14 @@ export class WidgetComponentGuide extends WidgetComponentBase {
|
|
|
3603
3611
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3604
3612
|
export class WidgetComponentRenderPrimitive extends WidgetComponentBase {
|
|
3605
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;
|
|
3606
3622
|
/**
|
|
3607
3623
|
* @remarks
|
|
3608
3624
|
* This function can't be called in read-only mode.
|
|
@@ -3615,14 +3631,15 @@ export class WidgetComponentRenderPrimitive extends WidgetComponentBase {
|
|
|
3615
3631
|
*/
|
|
3616
3632
|
setPrimitive(
|
|
3617
3633
|
primitive:
|
|
3618
|
-
|
|
|
3619
|
-
|
|
|
3620
|
-
|
|
|
3621
|
-
|
|
|
3634
|
+
| WidgetComponentRenderPrimitiveTypeAxialSphere
|
|
3635
|
+
| WidgetComponentRenderPrimitiveTypeBox
|
|
3636
|
+
| WidgetComponentRenderPrimitiveTypeDisc
|
|
3637
|
+
| WidgetComponentRenderPrimitiveTypeLine,
|
|
3622
3638
|
): void;
|
|
3623
3639
|
}
|
|
3624
3640
|
|
|
3625
|
-
|
|
3641
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3642
|
+
export class WidgetComponentRenderPrimitiveTypeAxialSphere extends WidgetComponentRenderPrimitiveTypeBase {
|
|
3626
3643
|
/**
|
|
3627
3644
|
* @remarks
|
|
3628
3645
|
* This property can't be edited in read-only mode.
|
|
@@ -3644,7 +3661,13 @@ export class WidgetComponentRenderPrimitiveAxialSphere {
|
|
|
3644
3661
|
constructor(center: minecraftserver.Vector3, radius: number, color?: minecraftserver.RGBA);
|
|
3645
3662
|
}
|
|
3646
3663
|
|
|
3647
|
-
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 {
|
|
3648
3671
|
/**
|
|
3649
3672
|
* @remarks
|
|
3650
3673
|
* This property can't be edited in read-only mode.
|
|
@@ -3666,7 +3689,8 @@ export class WidgetComponentRenderPrimitiveBox {
|
|
|
3666
3689
|
constructor(center: minecraftserver.Vector3, color: minecraftserver.RGBA, size?: minecraftserver.Vector3);
|
|
3667
3690
|
}
|
|
3668
3691
|
|
|
3669
|
-
|
|
3692
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3693
|
+
export class WidgetComponentRenderPrimitiveTypeDisc extends WidgetComponentRenderPrimitiveTypeBase {
|
|
3670
3694
|
/**
|
|
3671
3695
|
* @remarks
|
|
3672
3696
|
* This property can't be edited in read-only mode.
|
|
@@ -3688,7 +3712,8 @@ export class WidgetComponentRenderPrimitiveDisc {
|
|
|
3688
3712
|
constructor(center: minecraftserver.Vector3, radius: number, color: minecraftserver.RGBA);
|
|
3689
3713
|
}
|
|
3690
3714
|
|
|
3691
|
-
|
|
3715
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3716
|
+
export class WidgetComponentRenderPrimitiveTypeLine extends WidgetComponentRenderPrimitiveTypeBase {
|
|
3692
3717
|
/**
|
|
3693
3718
|
* @remarks
|
|
3694
3719
|
* This property can't be edited in read-only mode.
|
|
@@ -3758,6 +3783,14 @@ export class WidgetComponentSpline extends WidgetComponentBase {
|
|
|
3758
3783
|
setControlPoints(widgetList: Widget[]): void;
|
|
3759
3784
|
}
|
|
3760
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
|
+
|
|
3761
3794
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
3762
3795
|
export class WidgetComponentText extends WidgetComponentBase {
|
|
3763
3796
|
private constructor();
|
|
@@ -3900,21 +3933,6 @@ export interface BrushShape {
|
|
|
3900
3933
|
* is being written to the world
|
|
3901
3934
|
*/
|
|
3902
3935
|
export interface ClipboardWriteOptions {
|
|
3903
|
-
/**
|
|
3904
|
-
* @remarks
|
|
3905
|
-
* The anchor is a unit vector representation of the side or
|
|
3906
|
-
* corner of the Clipboard Item to be written to the world.
|
|
3907
|
-
* `{0, 0, 0}` represents the center of the Clipboard item,
|
|
3908
|
-
* `{0, 1, 0}` represents the top, `{-1, -1, -1}` represents
|
|
3909
|
-
* the bottom/back/left corner, etc
|
|
3910
|
-
* The anchor is used in conjunction with the item size to
|
|
3911
|
-
* determine the object relative anchor point where the object
|
|
3912
|
-
* will be applied in the world.
|
|
3913
|
-
* Values for the X/Y/Z components should be within the range
|
|
3914
|
-
* `(-1 <= X/Y/Z <=1)`
|
|
3915
|
-
*
|
|
3916
|
-
*/
|
|
3917
|
-
anchor?: minecraftserver.Vector3;
|
|
3918
3936
|
/**
|
|
3919
3937
|
* @remarks
|
|
3920
3938
|
* An enum which represents the axis (or combination of axis')
|
|
@@ -3925,6 +3943,7 @@ export interface ClipboardWriteOptions {
|
|
|
3925
3943
|
*
|
|
3926
3944
|
*/
|
|
3927
3945
|
mirror?: minecraftserver.StructureMirrorAxis;
|
|
3946
|
+
normalizedOrigin?: minecraftserver.Vector3;
|
|
3928
3947
|
/**
|
|
3929
3948
|
* @remarks
|
|
3930
3949
|
* A position offset which should be applied to the paste
|
|
@@ -3941,18 +3960,6 @@ export interface ClipboardWriteOptions {
|
|
|
3941
3960
|
rotation?: minecraftserver.StructureRotation;
|
|
3942
3961
|
}
|
|
3943
3962
|
|
|
3944
|
-
export interface CursorAttachmentProperties {
|
|
3945
|
-
boundsFillColor?: minecraftserver.RGBA;
|
|
3946
|
-
boundsVisible?: boolean;
|
|
3947
|
-
boundsWireframeColor?: minecraftserver.RGBA;
|
|
3948
|
-
contentsFillColor?: minecraftserver.RGBA;
|
|
3949
|
-
contentsWireframeColor?: minecraftserver.RGBA;
|
|
3950
|
-
mirror?: minecraftserver.StructureMirrorAxis;
|
|
3951
|
-
offset?: minecraftserver.Vector3;
|
|
3952
|
-
origin?: minecraftserver.Vector3;
|
|
3953
|
-
rotation?: minecraftserver.StructureRotation;
|
|
3954
|
-
}
|
|
3955
|
-
|
|
3956
3963
|
/**
|
|
3957
3964
|
* The CursorProperties interface is used to describe the
|
|
3958
3965
|
* properties of the Editor 3D block cursor construct.
|
|
@@ -4023,6 +4030,12 @@ export interface CursorProperties {
|
|
|
4023
4030
|
visible?: boolean;
|
|
4024
4031
|
}
|
|
4025
4032
|
|
|
4033
|
+
export interface CursorRay {
|
|
4034
|
+
end: minecraftserver.Vector3;
|
|
4035
|
+
hit: boolean;
|
|
4036
|
+
start: minecraftserver.Vector3;
|
|
4037
|
+
}
|
|
4038
|
+
|
|
4026
4039
|
export interface EditorStructure {
|
|
4027
4040
|
storageLocation: string;
|
|
4028
4041
|
structure: minecraftserver.Structure;
|
|
@@ -4166,10 +4179,23 @@ export interface WeightedBlock {
|
|
|
4166
4179
|
}
|
|
4167
4180
|
|
|
4168
4181
|
export interface WidgetComponentBaseOptions {
|
|
4182
|
+
lockToSurface?: boolean;
|
|
4169
4183
|
offset?: minecraftserver.Vector3;
|
|
4184
|
+
stateChangeEvent?: (arg: WidgetComponentStateChangeEventData) => void;
|
|
4170
4185
|
visible?: boolean;
|
|
4171
4186
|
}
|
|
4172
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
|
+
|
|
4173
4199
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4174
4200
|
export interface WidgetComponentEntityOptions extends WidgetComponentBaseOptions {
|
|
4175
4201
|
deselectedAnimation?: string;
|
|
@@ -4198,8 +4224,10 @@ export interface WidgetComponentTextOptions extends WidgetComponentBaseOptions {
|
|
|
4198
4224
|
}
|
|
4199
4225
|
|
|
4200
4226
|
export interface WidgetCreateOptions {
|
|
4227
|
+
bindPositionToBlockCursor?: boolean;
|
|
4201
4228
|
collisionOffset?: minecraftserver.Vector3;
|
|
4202
4229
|
collisionRadius?: number;
|
|
4230
|
+
lockToSurface?: boolean;
|
|
4203
4231
|
selectable?: boolean;
|
|
4204
4232
|
snapToBlockLocation?: boolean;
|
|
4205
4233
|
stateChangeEvent?: (arg: WidgetStateChangeEventData) => void;
|
|
@@ -5033,7 +5061,7 @@ export interface IMenuCreationParams {
|
|
|
5033
5061
|
export interface IModalTool {
|
|
5034
5062
|
/**
|
|
5035
5063
|
* @remarks
|
|
5036
|
-
* Unique
|
|
5064
|
+
* Unique identifier for the tool
|
|
5037
5065
|
*
|
|
5038
5066
|
*/
|
|
5039
5067
|
readonly id: string;
|
|
@@ -5043,14 +5071,11 @@ export interface IModalTool {
|
|
|
5043
5071
|
*
|
|
5044
5072
|
*/
|
|
5045
5073
|
onModalToolActivation: EventSink<ModalToolLifecycleEventPayload>;
|
|
5046
|
-
bindPropertyPane(pane:
|
|
5047
|
-
dispose(): void;
|
|
5048
|
-
hide(): void;
|
|
5074
|
+
bindPropertyPane(pane: IRootPropertyPane): void;
|
|
5049
5075
|
registerKeyBinding(action: SupportedKeyboardActionTypes, binding: KeyBinding, info?: KeyBindingInfo): void;
|
|
5050
5076
|
registerMouseButtonBinding(action: SupportedMouseActionTypes): void;
|
|
5051
5077
|
registerMouseDragBinding(action: SupportedMouseActionTypes): void;
|
|
5052
5078
|
registerMouseWheelBinding(action: SupportedMouseActionTypes): void;
|
|
5053
|
-
show(): void;
|
|
5054
5079
|
unregisterInputBindings(): void;
|
|
5055
5080
|
}
|
|
5056
5081
|
|
|
@@ -5061,7 +5086,7 @@ export interface IModalToolContainer {
|
|
|
5061
5086
|
*
|
|
5062
5087
|
*/
|
|
5063
5088
|
readonly currentTools: IModalTool[];
|
|
5064
|
-
addTool(
|
|
5089
|
+
addTool(id: string, params: ModalToolCreationParameters): IModalTool;
|
|
5065
5090
|
focusToolInputContext(): void;
|
|
5066
5091
|
getSelectedToolId(): string | undefined;
|
|
5067
5092
|
removeTool(id: string): void;
|
|
@@ -5820,6 +5845,12 @@ export interface IRootPropertyPaneOptions extends IPropertyPaneOptions {
|
|
|
5820
5845
|
* the editor evolves.
|
|
5821
5846
|
*/
|
|
5822
5847
|
export interface ISimpleTool {
|
|
5848
|
+
/**
|
|
5849
|
+
* @remarks
|
|
5850
|
+
* Get the tool unique id
|
|
5851
|
+
*
|
|
5852
|
+
*/
|
|
5853
|
+
get id(): string;
|
|
5823
5854
|
/**
|
|
5824
5855
|
* @remarks
|
|
5825
5856
|
* Get a reference to the menu component that was automatically
|
|
@@ -5971,6 +6002,12 @@ export interface ISimpleToolOptions {
|
|
|
5971
6002
|
*
|
|
5972
6003
|
*/
|
|
5973
6004
|
activationKeyBinding?: ISimpleToolKeyBinding;
|
|
6005
|
+
/**
|
|
6006
|
+
* @remarks
|
|
6007
|
+
* The unique identifier of the tool.
|
|
6008
|
+
*
|
|
6009
|
+
*/
|
|
6010
|
+
id: string;
|
|
5974
6011
|
/**
|
|
5975
6012
|
* @remarks
|
|
5976
6013
|
* The name of the tool. This will be used to identify the tool
|
|
@@ -6165,6 +6202,12 @@ export interface ISimpleToolPaneOptions {
|
|
|
6165
6202
|
*
|
|
6166
6203
|
*/
|
|
6167
6204
|
id: string;
|
|
6205
|
+
/**
|
|
6206
|
+
* @remarks
|
|
6207
|
+
* Information tooltip displayed on the root pane header.
|
|
6208
|
+
*
|
|
6209
|
+
*/
|
|
6210
|
+
infoTooltip?: TooltipInteractiveContent;
|
|
6168
6211
|
onBeginFinalize?: (pane: ISimpleToolPaneComponent) => void;
|
|
6169
6212
|
onEndFinalize?: (pane: ISimpleToolPaneComponent) => void;
|
|
6170
6213
|
onHide?: (pane: ISimpleToolPaneComponent) => void;
|
|
@@ -6776,31 +6819,25 @@ export interface IVector3PropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
6776
6819
|
export interface ModalToolCreationParameters {
|
|
6777
6820
|
/**
|
|
6778
6821
|
* @remarks
|
|
6779
|
-
*
|
|
6822
|
+
* Action associated with tool activation
|
|
6780
6823
|
*
|
|
6781
6824
|
*/
|
|
6782
|
-
|
|
6825
|
+
action?: RegisteredAction<NoArgsAction>;
|
|
6783
6826
|
/**
|
|
6784
6827
|
* @remarks
|
|
6785
|
-
*
|
|
6828
|
+
* Icon resource
|
|
6786
6829
|
*
|
|
6787
6830
|
*/
|
|
6788
|
-
|
|
6789
|
-
/**
|
|
6790
|
-
* @remarks
|
|
6791
|
-
* Localized text label for modal input context
|
|
6792
|
-
*
|
|
6793
|
-
*/
|
|
6794
|
-
inputContextLabel?: string;
|
|
6831
|
+
icon?: string;
|
|
6795
6832
|
/**
|
|
6796
6833
|
* @remarks
|
|
6797
|
-
*
|
|
6834
|
+
* Localized title of the tool
|
|
6798
6835
|
*
|
|
6799
6836
|
*/
|
|
6800
|
-
title
|
|
6837
|
+
title?: string;
|
|
6801
6838
|
/**
|
|
6802
6839
|
* @remarks
|
|
6803
|
-
* Tooltip description of the
|
|
6840
|
+
* Tooltip description of the tool
|
|
6804
6841
|
*
|
|
6805
6842
|
*/
|
|
6806
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
|
}
|