@minecraft/server-editor 0.1.0-beta.1.20.60-preview.23 → 0.1.0-beta.1.20.60-preview.25
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 +25 -9
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ```json
|
|
15
15
|
* {
|
|
16
16
|
* "module_name": "@minecraft/server-editor",
|
|
17
|
-
* "version": "0.1.0-beta.1.20.60-preview.
|
|
17
|
+
* "version": "0.1.0-beta.1.20.60-preview.25"
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
@@ -2249,7 +2249,6 @@ export interface IMenu {
|
|
|
2249
2249
|
*/
|
|
2250
2250
|
readonly submenu: IMenu[];
|
|
2251
2251
|
addItem(params: IMenuCreationParams, action?: RegisteredAction<NoArgsAction>): IMenu;
|
|
2252
|
-
addSeparator(): IMenu;
|
|
2253
2252
|
dispose(): void;
|
|
2254
2253
|
hide(): void;
|
|
2255
2254
|
replaceAction(action: RegisteredAction<NoArgsAction>): void;
|
|
@@ -2449,23 +2448,23 @@ export interface IPropertyItemOptions {
|
|
|
2449
2448
|
}
|
|
2450
2449
|
|
|
2451
2450
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2452
|
-
export interface
|
|
2451
|
+
export interface IPropertyItemOptionsButton extends IPropertyItemOptions {
|
|
2453
2452
|
/**
|
|
2454
2453
|
* @remarks
|
|
2455
|
-
* The
|
|
2454
|
+
* The variant for the button. By default it is "primary"
|
|
2456
2455
|
*
|
|
2457
2456
|
*/
|
|
2458
|
-
|
|
2457
|
+
variant?: ButtonVariant;
|
|
2459
2458
|
}
|
|
2460
2459
|
|
|
2461
2460
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2462
|
-
export interface
|
|
2461
|
+
export interface IPropertyItemOptionsDataPicker extends IPropertyItemOptions {
|
|
2463
2462
|
/**
|
|
2464
2463
|
* @remarks
|
|
2465
|
-
*
|
|
2464
|
+
* Used to hold the entries allowed in the block/entity picker
|
|
2466
2465
|
*
|
|
2467
2466
|
*/
|
|
2468
|
-
|
|
2467
|
+
allowedEntries?: string[];
|
|
2469
2468
|
}
|
|
2470
2469
|
|
|
2471
2470
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -2609,7 +2608,7 @@ export interface IPropertyPane {
|
|
|
2609
2608
|
addBlockPicker<T extends PropertyBag, Prop extends keyof T & string>(
|
|
2610
2609
|
obj: T,
|
|
2611
2610
|
property: Prop,
|
|
2612
|
-
options?:
|
|
2611
|
+
options?: IPropertyItemOptionsDataPicker,
|
|
2613
2612
|
): IPropertyItem<T, Prop>;
|
|
2614
2613
|
/**
|
|
2615
2614
|
* @remarks
|
|
@@ -2652,6 +2651,16 @@ export interface IPropertyPane {
|
|
|
2652
2651
|
property: Prop,
|
|
2653
2652
|
options?: IPropertyItemOptionsDropdown,
|
|
2654
2653
|
): IPropertyItem<T, Prop>;
|
|
2654
|
+
/**
|
|
2655
|
+
* @remarks
|
|
2656
|
+
* Adds an EntityPicker item to the pane.
|
|
2657
|
+
*
|
|
2658
|
+
*/
|
|
2659
|
+
addEntityPicker<T extends PropertyBag, Prop extends keyof T & string>(
|
|
2660
|
+
obj: T,
|
|
2661
|
+
property: Prop,
|
|
2662
|
+
options?: IPropertyItemOptionsDataPicker,
|
|
2663
|
+
): IPropertyItem<T, Prop>;
|
|
2655
2664
|
/**
|
|
2656
2665
|
* @remarks
|
|
2657
2666
|
* Adds a number item to the pane.
|
|
@@ -2765,6 +2774,13 @@ export interface IRegisterExtensionOptionalParameters {
|
|
|
2765
2774
|
*
|
|
2766
2775
|
*/
|
|
2767
2776
|
notes?: string;
|
|
2777
|
+
/**
|
|
2778
|
+
* @remarks
|
|
2779
|
+
* An optional custom group identifier that will be used for
|
|
2780
|
+
* all Modal Tools created from the registered extension.
|
|
2781
|
+
*
|
|
2782
|
+
*/
|
|
2783
|
+
toolGroupId?: string;
|
|
2768
2784
|
}
|
|
2769
2785
|
|
|
2770
2786
|
export interface IStatusBarItem {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.20.60-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.20.60-preview.25",
|
|
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.9.0-beta.1.20.60-preview.
|
|
17
|
+
"@minecraft/server": "^1.9.0-beta.1.20.60-preview.25"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|