@minecraft/server-editor 0.1.0-beta.1.26.30-preview.27 → 0.1.0-beta.1.26.30-preview.28
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 +190 -6
- 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
|
*/
|
|
@@ -7857,6 +8009,19 @@ export interface IGlobalInputManager {
|
|
|
7857
8009
|
binding: KeyBinding,
|
|
7858
8010
|
info?: KeyBindingInfo,
|
|
7859
8011
|
): IRegisteredKeyBinding;
|
|
8012
|
+
/**
|
|
8013
|
+
* @remarks
|
|
8014
|
+
* Set or clear the mouse cursor icon for a given editor input
|
|
8015
|
+
* context layer.
|
|
8016
|
+
*
|
|
8017
|
+
* @param contextId
|
|
8018
|
+
* The editor input context id (maps to EditorInputContext).
|
|
8019
|
+
* @param mouseIcon
|
|
8020
|
+
* The MouseCursorIconType, or null to clear.
|
|
8021
|
+
* @throws
|
|
8022
|
+
* *
|
|
8023
|
+
*/
|
|
8024
|
+
setMouseIcon(contextId: EditorInputContext, mouseIcon: MouseCursorIconType | undefined): void;
|
|
7860
8025
|
}
|
|
7861
8026
|
|
|
7862
8027
|
/**
|
|
@@ -9191,6 +9356,16 @@ export interface IModalTool {
|
|
|
9191
9356
|
* Action to register the binding for.
|
|
9192
9357
|
*/
|
|
9193
9358
|
registerMouseWheelBinding(action: SupportedMouseActionTypes): void;
|
|
9359
|
+
/**
|
|
9360
|
+
* @remarks
|
|
9361
|
+
* Set the mouse cursor icon for this tool when it's active.
|
|
9362
|
+
* The icon will only be visible when this tool is the
|
|
9363
|
+
* currently selected tool.
|
|
9364
|
+
*
|
|
9365
|
+
* @param mouseIcon
|
|
9366
|
+
* The mouse cursor icon, or undefined to reset to default.
|
|
9367
|
+
*/
|
|
9368
|
+
setMouseIcon(mouseIcon: MouseCursorIconType | undefined): void;
|
|
9194
9369
|
/**
|
|
9195
9370
|
* @remarks
|
|
9196
9371
|
* Unregister all input binding for this tool.
|
|
@@ -11498,6 +11673,15 @@ export interface WidgetComponentGridOptions extends WidgetComponentBaseOptions {
|
|
|
11498
11673
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11499
11674
|
export interface WidgetComponentGuideOptions extends WidgetComponentBaseOptions {}
|
|
11500
11675
|
|
|
11676
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11677
|
+
export interface WidgetComponentRenderPlaneOptions extends WidgetComponentBaseOptions {
|
|
11678
|
+
fillColor?: minecraftserver.RGBA;
|
|
11679
|
+
gridResolution?: RenderPlaneGridResolution;
|
|
11680
|
+
maxSizeChunks?: number;
|
|
11681
|
+
normal?: minecraftserver.Vector3;
|
|
11682
|
+
outlineColor?: minecraftserver.RGBA;
|
|
11683
|
+
}
|
|
11684
|
+
|
|
11501
11685
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11502
11686
|
export interface WidgetComponentRenderPrimitiveOptions extends WidgetComponentBaseOptions {}
|
|
11503
11687
|
|
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.28",
|
|
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.28",
|
|
18
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.28"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT"
|
|
21
21
|
}
|