@minecraft/server-editor 0.1.0-beta.1.26.30-preview.27 → 0.1.0-beta.1.26.30-preview.30
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 +244 -8
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -890,6 +890,12 @@ export declare enum KeyboardKey {
|
|
|
890
890
|
*
|
|
891
891
|
*/
|
|
892
892
|
F12 = 123,
|
|
893
|
+
/**
|
|
894
|
+
* @remarks
|
|
895
|
+
* KeyboardEvent.DOM_VK_SEMICOLON, ie. ';'
|
|
896
|
+
*
|
|
897
|
+
*/
|
|
898
|
+
SEMICOLON = 186,
|
|
893
899
|
/**
|
|
894
900
|
* @remarks
|
|
895
901
|
* KeyboardEvent.DOM_VK_COMMA, ie. ','
|
|
@@ -1118,6 +1124,14 @@ export declare enum MouseActionType {
|
|
|
1118
1124
|
Wheel = 4,
|
|
1119
1125
|
}
|
|
1120
1126
|
|
|
1127
|
+
export enum MouseCursorIconType {
|
|
1128
|
+
Crosshair = 'Crosshair',
|
|
1129
|
+
Default = 'Default',
|
|
1130
|
+
Move = 'Move',
|
|
1131
|
+
NotAllowed = 'NotAllowed',
|
|
1132
|
+
Wait = 'Wait',
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1121
1135
|
/**
|
|
1122
1136
|
* Input event information about mouse actions
|
|
1123
1137
|
*/
|
|
@@ -1249,6 +1263,14 @@ export declare enum PropertyItemType {
|
|
|
1249
1263
|
Vector3Timeline = 'editorUI:Vector3Timeline',
|
|
1250
1264
|
}
|
|
1251
1265
|
|
|
1266
|
+
export enum RenderPlaneGridResolution {
|
|
1267
|
+
EightBlocks = 'EightBlocks',
|
|
1268
|
+
FourBlocks = 'FourBlocks',
|
|
1269
|
+
None = 'None',
|
|
1270
|
+
OneBlock = 'OneBlock',
|
|
1271
|
+
SixteenBlocks = 'SixteenBlocks',
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1252
1274
|
/**
|
|
1253
1275
|
* Determines the location root pane will be displayed in
|
|
1254
1276
|
*/
|
|
@@ -1343,6 +1365,7 @@ export enum ThemeSettingsColorKey {
|
|
|
1343
1365
|
PrefillVolumeBorder = 'PrefillVolumeBorder',
|
|
1344
1366
|
PrefillVolumeFill = 'PrefillVolumeFill',
|
|
1345
1367
|
PrimaryActive = 'PrimaryActive',
|
|
1368
|
+
PrimaryAttention = 'PrimaryAttention',
|
|
1346
1369
|
PrimaryBackground1 = 'PrimaryBackground1',
|
|
1347
1370
|
PrimaryBackground2 = 'PrimaryBackground2',
|
|
1348
1371
|
PrimaryBackground3 = 'PrimaryBackground3',
|
|
@@ -1352,6 +1375,7 @@ export enum ThemeSettingsColorKey {
|
|
|
1352
1375
|
PrimaryMute = 'PrimaryMute',
|
|
1353
1376
|
ScrollBar = 'ScrollBar',
|
|
1354
1377
|
SecondaryActive = 'SecondaryActive',
|
|
1378
|
+
SecondaryAttention = 'SecondaryAttention',
|
|
1355
1379
|
SecondaryBackground1 = 'SecondaryBackground1',
|
|
1356
1380
|
SecondaryBackground2 = 'SecondaryBackground2',
|
|
1357
1381
|
SecondaryBackground3 = 'SecondaryBackground3',
|
|
@@ -1380,6 +1404,7 @@ export enum WidgetComponentType {
|
|
|
1380
1404
|
Gizmo = 'Gizmo',
|
|
1381
1405
|
Grid = 'Grid',
|
|
1382
1406
|
Guide = 'Guide',
|
|
1407
|
+
RenderPlane = 'RenderPlane',
|
|
1383
1408
|
RenderPrim = 'RenderPrim',
|
|
1384
1409
|
Spline = 'Spline',
|
|
1385
1410
|
Text = 'Text',
|
|
@@ -3426,6 +3451,7 @@ export class ExtensionContext {
|
|
|
3426
3451
|
*
|
|
3427
3452
|
*/
|
|
3428
3453
|
readonly extensionInfo: Extension;
|
|
3454
|
+
readonly guidePlaneManager: GuidePlaneManager;
|
|
3429
3455
|
/**
|
|
3430
3456
|
* @remarks
|
|
3431
3457
|
* Manager for minimap functionality, providing interface for
|
|
@@ -3574,6 +3600,78 @@ export class GraphicsSettings {
|
|
|
3574
3600
|
setAll(properties: GraphicsSettingsPropertyTypeMap): void;
|
|
3575
3601
|
}
|
|
3576
3602
|
|
|
3603
|
+
export class GuidePlaneManager {
|
|
3604
|
+
private constructor();
|
|
3605
|
+
/**
|
|
3606
|
+
* @remarks
|
|
3607
|
+
* This property can't be edited in restricted-execution mode.
|
|
3608
|
+
*
|
|
3609
|
+
*/
|
|
3610
|
+
allPlanesVisible: boolean;
|
|
3611
|
+
/**
|
|
3612
|
+
* @remarks
|
|
3613
|
+
* This function can't be called in restricted-execution mode.
|
|
3614
|
+
*
|
|
3615
|
+
* @throws This function can throw errors.
|
|
3616
|
+
*/
|
|
3617
|
+
addPlane(
|
|
3618
|
+
origin: minecraftserver.Vector3,
|
|
3619
|
+
normal: minecraftserver.Vector3,
|
|
3620
|
+
visible: boolean,
|
|
3621
|
+
outlineColor: minecraftserver.RGBA,
|
|
3622
|
+
fillColor: minecraftserver.RGBA,
|
|
3623
|
+
): string;
|
|
3624
|
+
/**
|
|
3625
|
+
* @remarks
|
|
3626
|
+
* This function can't be called in restricted-execution mode.
|
|
3627
|
+
*
|
|
3628
|
+
* @throws This function can throw errors.
|
|
3629
|
+
*/
|
|
3630
|
+
getPlane(planeId: string): GuidePlane | undefined;
|
|
3631
|
+
/**
|
|
3632
|
+
* @remarks
|
|
3633
|
+
* This function can't be called in restricted-execution mode.
|
|
3634
|
+
*
|
|
3635
|
+
* @throws This function can throw errors.
|
|
3636
|
+
*/
|
|
3637
|
+
getPlanes(): GuidePlane[];
|
|
3638
|
+
/**
|
|
3639
|
+
* @remarks
|
|
3640
|
+
* This function can't be called in restricted-execution mode.
|
|
3641
|
+
*
|
|
3642
|
+
* @throws This function can throw errors.
|
|
3643
|
+
*/
|
|
3644
|
+
removePlane(planeId: string): void;
|
|
3645
|
+
/**
|
|
3646
|
+
* @remarks
|
|
3647
|
+
* This function can't be called in restricted-execution mode.
|
|
3648
|
+
*
|
|
3649
|
+
* @throws This function can throw errors.
|
|
3650
|
+
*/
|
|
3651
|
+
setPlaneColors(planeId: string, outlineColor: minecraftserver.RGBA, fillColor: minecraftserver.RGBA): void;
|
|
3652
|
+
/**
|
|
3653
|
+
* @remarks
|
|
3654
|
+
* This function can't be called in restricted-execution mode.
|
|
3655
|
+
*
|
|
3656
|
+
* @throws This function can throw errors.
|
|
3657
|
+
*/
|
|
3658
|
+
setPlaneNormal(planeId: string, normal: minecraftserver.Vector3): void;
|
|
3659
|
+
/**
|
|
3660
|
+
* @remarks
|
|
3661
|
+
* This function can't be called in restricted-execution mode.
|
|
3662
|
+
*
|
|
3663
|
+
* @throws This function can throw errors.
|
|
3664
|
+
*/
|
|
3665
|
+
setPlaneOrigin(planeId: string, origin: minecraftserver.Vector3): void;
|
|
3666
|
+
/**
|
|
3667
|
+
* @remarks
|
|
3668
|
+
* This function can't be called in restricted-execution mode.
|
|
3669
|
+
*
|
|
3670
|
+
* @throws This function can throw errors.
|
|
3671
|
+
*/
|
|
3672
|
+
setPlaneVisibility(planeId: string, visible: boolean): void;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3577
3675
|
export class IBlockPaletteItem {
|
|
3578
3676
|
private constructor();
|
|
3579
3677
|
getBlock(): minecraftserver.BlockType | undefined;
|
|
@@ -4896,6 +4994,16 @@ export class Widget {
|
|
|
4896
4994
|
* @throws This function can throw errors.
|
|
4897
4995
|
*/
|
|
4898
4996
|
addGuideComponent(componentName: string, options?: WidgetComponentGuideOptions): WidgetComponentGuide;
|
|
4997
|
+
/**
|
|
4998
|
+
* @remarks
|
|
4999
|
+
* This function can't be called in restricted-execution mode.
|
|
5000
|
+
*
|
|
5001
|
+
* @throws This function can throw errors.
|
|
5002
|
+
*/
|
|
5003
|
+
addRenderPlaneComponent(
|
|
5004
|
+
componentName: string,
|
|
5005
|
+
options?: WidgetComponentRenderPlaneOptions,
|
|
5006
|
+
): WidgetComponentRenderPlane;
|
|
4899
5007
|
/**
|
|
4900
5008
|
* @remarks
|
|
4901
5009
|
* This function can't be called in restricted-execution mode.
|
|
@@ -5239,6 +5347,41 @@ export class WidgetComponentGuide extends WidgetComponentBase {
|
|
|
5239
5347
|
private constructor();
|
|
5240
5348
|
}
|
|
5241
5349
|
|
|
5350
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5351
|
+
export class WidgetComponentRenderPlane extends WidgetComponentBase {
|
|
5352
|
+
private constructor();
|
|
5353
|
+
/**
|
|
5354
|
+
* @remarks
|
|
5355
|
+
* This property can't be edited in restricted-execution mode.
|
|
5356
|
+
*
|
|
5357
|
+
*/
|
|
5358
|
+
fillColor: minecraftserver.RGBA;
|
|
5359
|
+
/**
|
|
5360
|
+
* @remarks
|
|
5361
|
+
* This property can't be edited in restricted-execution mode.
|
|
5362
|
+
*
|
|
5363
|
+
*/
|
|
5364
|
+
gridResolution: RenderPlaneGridResolution;
|
|
5365
|
+
/**
|
|
5366
|
+
* @remarks
|
|
5367
|
+
* This property can't be edited in restricted-execution mode.
|
|
5368
|
+
*
|
|
5369
|
+
*/
|
|
5370
|
+
maxSizeChunks: number;
|
|
5371
|
+
/**
|
|
5372
|
+
* @remarks
|
|
5373
|
+
* This property can't be edited in restricted-execution mode.
|
|
5374
|
+
*
|
|
5375
|
+
*/
|
|
5376
|
+
normal: minecraftserver.Vector3;
|
|
5377
|
+
/**
|
|
5378
|
+
* @remarks
|
|
5379
|
+
* This property can't be edited in restricted-execution mode.
|
|
5380
|
+
*
|
|
5381
|
+
*/
|
|
5382
|
+
outlineColor: minecraftserver.RGBA;
|
|
5383
|
+
}
|
|
5384
|
+
|
|
5242
5385
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5243
5386
|
export class WidgetComponentRenderPrimitive extends WidgetComponentBase {
|
|
5244
5387
|
private constructor();
|
|
@@ -6007,22 +6150,22 @@ export interface BuiltInUIManager {
|
|
|
6007
6150
|
saveAndExit(): void;
|
|
6008
6151
|
/**
|
|
6009
6152
|
* @remarks
|
|
6010
|
-
*
|
|
6153
|
+
* Shows update information for the current version
|
|
6011
6154
|
*
|
|
6012
6155
|
*/
|
|
6013
|
-
|
|
6156
|
+
showUpdateInformation(): void;
|
|
6014
6157
|
/**
|
|
6015
6158
|
* @remarks
|
|
6016
|
-
* Updates the visibility of the
|
|
6159
|
+
* Updates the visibility of the log panel
|
|
6017
6160
|
*
|
|
6018
6161
|
*/
|
|
6019
|
-
|
|
6162
|
+
updateLogPanelVisibility(visibility: boolean): void;
|
|
6020
6163
|
/**
|
|
6021
6164
|
* @remarks
|
|
6022
|
-
* Updates the visibility of the
|
|
6165
|
+
* Updates the visibility of the control demo
|
|
6023
6166
|
*
|
|
6024
6167
|
*/
|
|
6025
|
-
|
|
6168
|
+
updateUISettingsPanelVisibility(visibility: boolean): void;
|
|
6026
6169
|
}
|
|
6027
6170
|
|
|
6028
6171
|
/**
|
|
@@ -6339,6 +6482,15 @@ export interface GameOptions {
|
|
|
6339
6482
|
worldName?: string;
|
|
6340
6483
|
}
|
|
6341
6484
|
|
|
6485
|
+
export interface GuidePlane {
|
|
6486
|
+
fillColor: minecraftserver.RGBA;
|
|
6487
|
+
normal: minecraftserver.Vector3;
|
|
6488
|
+
origin: minecraftserver.Vector3;
|
|
6489
|
+
outlineColor: minecraftserver.RGBA;
|
|
6490
|
+
planeId: string;
|
|
6491
|
+
visible: boolean;
|
|
6492
|
+
}
|
|
6493
|
+
|
|
6342
6494
|
/**
|
|
6343
6495
|
* Manager for IActionBarItem objects.
|
|
6344
6496
|
*/
|
|
@@ -7691,6 +7843,19 @@ export interface IDisposable {
|
|
|
7691
7843
|
teardown(): void;
|
|
7692
7844
|
}
|
|
7693
7845
|
|
|
7846
|
+
/**
|
|
7847
|
+
* Optional properties for Divider property item
|
|
7848
|
+
*/
|
|
7849
|
+
export interface IDividerPropertyItemOptions {
|
|
7850
|
+
/**
|
|
7851
|
+
* @remarks
|
|
7852
|
+
* If true, renders the divider as a vertical line rather than
|
|
7853
|
+
* horizontal.
|
|
7854
|
+
*
|
|
7855
|
+
*/
|
|
7856
|
+
vertical?: boolean;
|
|
7857
|
+
}
|
|
7858
|
+
|
|
7694
7859
|
/**
|
|
7695
7860
|
* A property item which supports Dropdown properties
|
|
7696
7861
|
*/
|
|
@@ -7857,6 +8022,19 @@ export interface IGlobalInputManager {
|
|
|
7857
8022
|
binding: KeyBinding,
|
|
7858
8023
|
info?: KeyBindingInfo,
|
|
7859
8024
|
): IRegisteredKeyBinding;
|
|
8025
|
+
/**
|
|
8026
|
+
* @remarks
|
|
8027
|
+
* Set or clear the mouse cursor icon for a given editor input
|
|
8028
|
+
* context layer.
|
|
8029
|
+
*
|
|
8030
|
+
* @param contextId
|
|
8031
|
+
* The editor input context id (maps to EditorInputContext).
|
|
8032
|
+
* @param mouseIcon
|
|
8033
|
+
* The MouseCursorIconType, or null to clear.
|
|
8034
|
+
* @throws
|
|
8035
|
+
* *
|
|
8036
|
+
*/
|
|
8037
|
+
setMouseIcon(contextId: EditorInputContext, mouseIcon: MouseCursorIconType | undefined): void;
|
|
7860
8038
|
}
|
|
7861
8039
|
|
|
7862
8040
|
/**
|
|
@@ -8484,6 +8662,32 @@ export interface IListPaneViewControlPaneOptions extends IListViewControlPaneOpt
|
|
|
8484
8662
|
*
|
|
8485
8663
|
*/
|
|
8486
8664
|
onFilterChanged?: (visibleSlotIds: string[]) => void;
|
|
8665
|
+
/**
|
|
8666
|
+
* @remarks
|
|
8667
|
+
* Called when the user selects an entry in the "Show"
|
|
8668
|
+
* dropdown. Receives the zero-based option index from the
|
|
8669
|
+
* provided showOptions.
|
|
8670
|
+
*
|
|
8671
|
+
*/
|
|
8672
|
+
onShowOptionChanged?: (optionIndex: number) => void;
|
|
8673
|
+
/**
|
|
8674
|
+
* @remarks
|
|
8675
|
+
* When true, the view control renders inline at the bottom of
|
|
8676
|
+
* the list element instead of in a footer.
|
|
8677
|
+
*
|
|
8678
|
+
*/
|
|
8679
|
+
renderInline?: boolean;
|
|
8680
|
+
/**
|
|
8681
|
+
* @remarks
|
|
8682
|
+
* Labels for the "Show" dropdown. When provided, a dropdown is
|
|
8683
|
+
* shown and onShowOptionChanged is called with the selected
|
|
8684
|
+
* index whenever the user changes the selection.
|
|
8685
|
+
*
|
|
8686
|
+
*/
|
|
8687
|
+
showOptions?: {
|
|
8688
|
+
label: LocalizedString;
|
|
8689
|
+
value: number;
|
|
8690
|
+
}[];
|
|
8487
8691
|
/**
|
|
8488
8692
|
* @remarks
|
|
8489
8693
|
* Custom sort options. If undefined, list pane sort options
|
|
@@ -8974,7 +9178,7 @@ export interface IModalControlPane extends IPane {
|
|
|
8974
9178
|
* Adds an divider item to the pane.
|
|
8975
9179
|
*
|
|
8976
9180
|
*/
|
|
8977
|
-
addDivider(): IPropertyItemBase;
|
|
9181
|
+
addDivider(options?: IDividerPropertyItemOptions): IPropertyItemBase;
|
|
8978
9182
|
}
|
|
8979
9183
|
|
|
8980
9184
|
export interface IModalDialog {
|
|
@@ -9191,6 +9395,16 @@ export interface IModalTool {
|
|
|
9191
9395
|
* Action to register the binding for.
|
|
9192
9396
|
*/
|
|
9193
9397
|
registerMouseWheelBinding(action: SupportedMouseActionTypes): void;
|
|
9398
|
+
/**
|
|
9399
|
+
* @remarks
|
|
9400
|
+
* Set the mouse cursor icon for this tool when it's active.
|
|
9401
|
+
* The icon will only be visible when this tool is the
|
|
9402
|
+
* currently selected tool.
|
|
9403
|
+
*
|
|
9404
|
+
* @param mouseIcon
|
|
9405
|
+
* The mouse cursor icon, or undefined to reset to default.
|
|
9406
|
+
*/
|
|
9407
|
+
setMouseIcon(mouseIcon: MouseCursorIconType | undefined): void;
|
|
9194
9408
|
/**
|
|
9195
9409
|
* @remarks
|
|
9196
9410
|
* Unregister all input binding for this tool.
|
|
@@ -9943,7 +10157,7 @@ export interface IPropertyPane extends IPane {
|
|
|
9943
10157
|
* Adds an divider item to the pane.
|
|
9944
10158
|
*
|
|
9945
10159
|
*/
|
|
9946
|
-
addDivider(): IPropertyItemBase;
|
|
10160
|
+
addDivider(options?: IDividerPropertyItemOptions): IPropertyItemBase;
|
|
9947
10161
|
/**
|
|
9948
10162
|
* @remarks
|
|
9949
10163
|
* Adds an Dropdown item to the pane.
|
|
@@ -10528,6 +10742,13 @@ export interface ISubPanePropertyItemOptions extends IPropertyPaneOptions {
|
|
|
10528
10742
|
*
|
|
10529
10743
|
*/
|
|
10530
10744
|
hasMargins?: boolean;
|
|
10745
|
+
/**
|
|
10746
|
+
* @remarks
|
|
10747
|
+
* Custom height of the property item. Use LayoutFlex.Grow to
|
|
10748
|
+
* fill available vertical space.
|
|
10749
|
+
*
|
|
10750
|
+
*/
|
|
10751
|
+
height?: number | LayoutSize | LayoutFlex;
|
|
10531
10752
|
/**
|
|
10532
10753
|
* @remarks
|
|
10533
10754
|
* Pane icon shown in front of the pane header
|
|
@@ -11357,6 +11578,12 @@ export interface ModalToolCreationParameters {
|
|
|
11357
11578
|
*
|
|
11358
11579
|
*/
|
|
11359
11580
|
action?: RegisteredAction<NoArgsAction>;
|
|
11581
|
+
/**
|
|
11582
|
+
* @remarks
|
|
11583
|
+
* Content badge id associated with the modal tool
|
|
11584
|
+
*
|
|
11585
|
+
*/
|
|
11586
|
+
contentBadgeId?: string;
|
|
11360
11587
|
/**
|
|
11361
11588
|
* @remarks
|
|
11362
11589
|
* Icon resource
|
|
@@ -11498,6 +11725,15 @@ export interface WidgetComponentGridOptions extends WidgetComponentBaseOptions {
|
|
|
11498
11725
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11499
11726
|
export interface WidgetComponentGuideOptions extends WidgetComponentBaseOptions {}
|
|
11500
11727
|
|
|
11728
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11729
|
+
export interface WidgetComponentRenderPlaneOptions extends WidgetComponentBaseOptions {
|
|
11730
|
+
fillColor?: minecraftserver.RGBA;
|
|
11731
|
+
gridResolution?: RenderPlaneGridResolution;
|
|
11732
|
+
maxSizeChunks?: number;
|
|
11733
|
+
normal?: minecraftserver.Vector3;
|
|
11734
|
+
outlineColor?: minecraftserver.RGBA;
|
|
11735
|
+
}
|
|
11736
|
+
|
|
11501
11737
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11502
11738
|
export interface WidgetComponentRenderPrimitiveOptions extends WidgetComponentBaseOptions {}
|
|
11503
11739
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.26.30-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.26.30-preview.30",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^2.9.0-beta.1.26.30-preview.
|
|
18
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.
|
|
17
|
+
"@minecraft/server": "^2.9.0-beta.1.26.30-preview.30",
|
|
18
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.30"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT"
|
|
21
21
|
}
|