@minecraft/server-editor 0.1.0-beta.1.26.30-preview.21 → 0.1.0-beta.1.26.30-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 +97 -19
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1196,6 +1196,7 @@ export enum PrimitiveType {
|
|
|
1196
1196
|
Ellipsoid = 9,
|
|
1197
1197
|
Cuboid = 10,
|
|
1198
1198
|
Cone = 11,
|
|
1199
|
+
WireframeMesh = 12,
|
|
1199
1200
|
}
|
|
1200
1201
|
|
|
1201
1202
|
/**
|
|
@@ -1975,6 +1976,14 @@ export type SupportedKeyboardActionTypes =
|
|
|
1975
1976
|
*/
|
|
1976
1977
|
export type SupportedMouseActionTypes = RegisteredAction<MouseRayCastAction>;
|
|
1977
1978
|
|
|
1979
|
+
/**
|
|
1980
|
+
* Tooltip action description
|
|
1981
|
+
*/
|
|
1982
|
+
export type TooltipButton = {
|
|
1983
|
+
text: LocalizedString;
|
|
1984
|
+
action: RegisteredAction<NoArgsAction>;
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1978
1987
|
/**
|
|
1979
1988
|
* Content properties to display tooltips
|
|
1980
1989
|
*/
|
|
@@ -1987,15 +1996,15 @@ export declare type TooltipContent = {
|
|
|
1987
1996
|
/**
|
|
1988
1997
|
* Content properties to display interactive tooltips
|
|
1989
1998
|
*/
|
|
1990
|
-
export
|
|
1999
|
+
export type TooltipInteractiveContent = {
|
|
1991
2000
|
title?: LocalizedString;
|
|
1992
|
-
description?:
|
|
2001
|
+
description?: (TooltipInteractiveContentDescriptionItem | TooltipInteractiveContentDescriptionItem[])[];
|
|
1993
2002
|
};
|
|
1994
2003
|
|
|
1995
2004
|
/**
|
|
1996
|
-
*
|
|
2005
|
+
* Supported description elements for interactive tooltips
|
|
1997
2006
|
*/
|
|
1998
|
-
export
|
|
2007
|
+
export type TooltipInteractiveContentDescriptionItem = LocalizedString | TooltipLink | TooltipButton;
|
|
1999
2008
|
|
|
2000
2009
|
/**
|
|
2001
2010
|
* Tooltip link description
|
|
@@ -4901,7 +4910,8 @@ export class Widget {
|
|
|
4901
4910
|
| WidgetComponentRenderPrimitiveTypeDisc
|
|
4902
4911
|
| WidgetComponentRenderPrimitiveTypeEllipsoid
|
|
4903
4912
|
| WidgetComponentRenderPrimitiveTypeLine
|
|
4904
|
-
| WidgetComponentRenderPrimitiveTypePyramid
|
|
4913
|
+
| WidgetComponentRenderPrimitiveTypePyramid
|
|
4914
|
+
| WidgetComponentRenderPrimitiveTypeWireframeMesh,
|
|
4905
4915
|
options?: WidgetComponentRenderPrimitiveOptions,
|
|
4906
4916
|
): WidgetComponentRenderPrimitive;
|
|
4907
4917
|
/**
|
|
@@ -5257,7 +5267,8 @@ export class WidgetComponentRenderPrimitive extends WidgetComponentBase {
|
|
|
5257
5267
|
| WidgetComponentRenderPrimitiveTypeDisc
|
|
5258
5268
|
| WidgetComponentRenderPrimitiveTypeEllipsoid
|
|
5259
5269
|
| WidgetComponentRenderPrimitiveTypeLine
|
|
5260
|
-
| WidgetComponentRenderPrimitiveTypePyramid
|
|
5270
|
+
| WidgetComponentRenderPrimitiveTypePyramid
|
|
5271
|
+
| WidgetComponentRenderPrimitiveTypeWireframeMesh,
|
|
5261
5272
|
): void;
|
|
5262
5273
|
}
|
|
5263
5274
|
|
|
@@ -5632,6 +5643,52 @@ export class WidgetComponentRenderPrimitiveTypePyramid extends WidgetComponentRe
|
|
|
5632
5643
|
);
|
|
5633
5644
|
}
|
|
5634
5645
|
|
|
5646
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5647
|
+
export class WidgetComponentRenderPrimitiveTypeWireframeMesh extends WidgetComponentRenderPrimitiveTypeBase {
|
|
5648
|
+
/**
|
|
5649
|
+
* @remarks
|
|
5650
|
+
* This property can't be edited in restricted-execution mode.
|
|
5651
|
+
*
|
|
5652
|
+
*/
|
|
5653
|
+
alpha?: number;
|
|
5654
|
+
/**
|
|
5655
|
+
* @remarks
|
|
5656
|
+
* This property can't be edited in restricted-execution mode.
|
|
5657
|
+
*
|
|
5658
|
+
*/
|
|
5659
|
+
center: minecraftserver.Vector3;
|
|
5660
|
+
/**
|
|
5661
|
+
* @remarks
|
|
5662
|
+
* This property can't be edited in restricted-execution mode.
|
|
5663
|
+
*
|
|
5664
|
+
*/
|
|
5665
|
+
color: minecraftserver.RGBA;
|
|
5666
|
+
/**
|
|
5667
|
+
* @remarks
|
|
5668
|
+
* This property can't be edited in restricted-execution mode.
|
|
5669
|
+
*
|
|
5670
|
+
*/
|
|
5671
|
+
meshId: string;
|
|
5672
|
+
/**
|
|
5673
|
+
* @remarks
|
|
5674
|
+
* This property can't be edited in restricted-execution mode.
|
|
5675
|
+
*
|
|
5676
|
+
*/
|
|
5677
|
+
rotation?: minecraftserver.Vector3;
|
|
5678
|
+
/**
|
|
5679
|
+
* @remarks
|
|
5680
|
+
* This property can't be edited in restricted-execution mode.
|
|
5681
|
+
*
|
|
5682
|
+
*/
|
|
5683
|
+
scale?: minecraftserver.Vector3;
|
|
5684
|
+
constructor(
|
|
5685
|
+
center: minecraftserver.Vector3,
|
|
5686
|
+
meshId: string,
|
|
5687
|
+
color: minecraftserver.RGBA,
|
|
5688
|
+
options?: WireframeMeshOptions,
|
|
5689
|
+
);
|
|
5690
|
+
}
|
|
5691
|
+
|
|
5635
5692
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
5636
5693
|
export class WidgetComponentSpline extends WidgetComponentBase {
|
|
5637
5694
|
private constructor();
|
|
@@ -7434,6 +7491,16 @@ export interface IComboBoxPropertyItem extends IPropertyItemBase {
|
|
|
7434
7491
|
* New tooltip.
|
|
7435
7492
|
*/
|
|
7436
7493
|
setTooltip(tooltip: BasicTooltipContent | undefined): void;
|
|
7494
|
+
/**
|
|
7495
|
+
* @remarks
|
|
7496
|
+
* Update list of combo box entries.
|
|
7497
|
+
*
|
|
7498
|
+
* @param entries
|
|
7499
|
+
* New list of updated entries.
|
|
7500
|
+
* @param newValue
|
|
7501
|
+
* New value to use for the combo box.
|
|
7502
|
+
*/
|
|
7503
|
+
updateEntries(entries: IComboBoxPropertyItemEntry[] | undefined, newValue?: string): void;
|
|
7437
7504
|
}
|
|
7438
7505
|
|
|
7439
7506
|
/**
|
|
@@ -9101,6 +9168,15 @@ export interface IModalToolContainer {
|
|
|
9101
9168
|
*
|
|
9102
9169
|
*/
|
|
9103
9170
|
getSelectedToolId(): string | undefined;
|
|
9171
|
+
/**
|
|
9172
|
+
* @remarks
|
|
9173
|
+
* Returns the current sort order of tools.
|
|
9174
|
+
*
|
|
9175
|
+
* @returns
|
|
9176
|
+
* Array of tool identifiers in sort order, or undefined if not
|
|
9177
|
+
* set
|
|
9178
|
+
*/
|
|
9179
|
+
getSortOrder(): string[] | undefined;
|
|
9104
9180
|
/**
|
|
9105
9181
|
* @remarks
|
|
9106
9182
|
* Remove an existing tool by id from the tool container
|
|
@@ -9117,6 +9193,15 @@ export interface IModalToolContainer {
|
|
|
9117
9193
|
* Identifier of the tool
|
|
9118
9194
|
*/
|
|
9119
9195
|
setSelectedToolId(id: string | undefined): void;
|
|
9196
|
+
/**
|
|
9197
|
+
* @remarks
|
|
9198
|
+
* Sets the sort order for tools in the container.
|
|
9199
|
+
*
|
|
9200
|
+
* @param ids
|
|
9201
|
+
* Array of tool identifiers in the desired order, or undefined
|
|
9202
|
+
* to clear
|
|
9203
|
+
*/
|
|
9204
|
+
setSortOrder(ids: string[] | undefined): void;
|
|
9120
9205
|
}
|
|
9121
9206
|
|
|
9122
9207
|
/**
|
|
@@ -9861,13 +9946,6 @@ export interface IPropertyPane extends IPane {
|
|
|
9861
9946
|
value: IObservableProp<number>,
|
|
9862
9947
|
options?: IVector3TimelinePropertyItemOptions,
|
|
9863
9948
|
): IVector3TimelinePropertyItem;
|
|
9864
|
-
/**
|
|
9865
|
-
* @remarks
|
|
9866
|
-
* Begins pane construction for batching property item
|
|
9867
|
-
* additions
|
|
9868
|
-
*
|
|
9869
|
-
*/
|
|
9870
|
-
beginConstruct(): void;
|
|
9871
9949
|
/**
|
|
9872
9950
|
* @remarks
|
|
9873
9951
|
* Collapse the pane.
|
|
@@ -9880,12 +9958,6 @@ export interface IPropertyPane extends IPane {
|
|
|
9880
9958
|
*
|
|
9881
9959
|
*/
|
|
9882
9960
|
createSubPane(options: ISubPanePropertyItemOptions): ISubPanePropertyItem;
|
|
9883
|
-
/**
|
|
9884
|
-
* @remarks
|
|
9885
|
-
* Finalizes pane construction and synchronizes item data
|
|
9886
|
-
*
|
|
9887
|
-
*/
|
|
9888
|
-
endConstruct(): void;
|
|
9889
9961
|
/**
|
|
9890
9962
|
* @remarks
|
|
9891
9963
|
* Expand the pane.
|
|
@@ -11348,6 +11420,12 @@ export interface WidgetGroupCreateOptions {
|
|
|
11348
11420
|
visible?: boolean;
|
|
11349
11421
|
}
|
|
11350
11422
|
|
|
11423
|
+
export interface WireframeMeshOptions {
|
|
11424
|
+
alpha?: number;
|
|
11425
|
+
rotation?: minecraftserver.Vector3;
|
|
11426
|
+
scale?: minecraftserver.Vector3;
|
|
11427
|
+
}
|
|
11428
|
+
|
|
11351
11429
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
11352
11430
|
export class InvalidWidgetComponentError extends Error {
|
|
11353
11431
|
private constructor();
|
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.26",
|
|
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.26",
|
|
18
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.30-preview.26"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT"
|
|
21
21
|
}
|