@minecraft/server-editor 0.1.0-beta.1.20.70-preview.20 → 0.1.0-beta.1.20.70-preview.22
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 +42 -67
- 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.70-preview.
|
|
17
|
+
* "version": "0.1.0-beta.1.20.70-preview.22"
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
@@ -31,69 +31,6 @@ export declare enum ActionTypes {
|
|
|
31
31
|
NoArgsAction = 'NoArgsAction',
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* An enumeration describing the axis on which to mirror
|
|
36
|
-
* clipboard contents when writing to the world
|
|
37
|
-
*/
|
|
38
|
-
export enum ClipboardMirrorAxis {
|
|
39
|
-
/**
|
|
40
|
-
* @remarks
|
|
41
|
-
* No mirroring
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
None = 'None',
|
|
45
|
-
/**
|
|
46
|
-
* @remarks
|
|
47
|
-
* Mirror on the X axis
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
X = 'X',
|
|
51
|
-
/**
|
|
52
|
-
* @remarks
|
|
53
|
-
* Mirror on both X and Z axes
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
XZ = 'XZ',
|
|
57
|
-
/**
|
|
58
|
-
* @remarks
|
|
59
|
-
* Mirror on the Z axis
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
|
-
Z = 'Z',
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* An enumeration describing the amount of rotation to be
|
|
67
|
-
* applied around the Y axis when writing the clipboard to the
|
|
68
|
-
* world
|
|
69
|
-
*/
|
|
70
|
-
export enum ClipboardRotation {
|
|
71
|
-
/**
|
|
72
|
-
* @remarks
|
|
73
|
-
* No rotation
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
76
|
-
None = 'None',
|
|
77
|
-
/**
|
|
78
|
-
* @remarks
|
|
79
|
-
* Rotate by 180 degrees clockwise around the Y axis
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
Rotate180 = 'Rotate180',
|
|
83
|
-
/**
|
|
84
|
-
* @remarks
|
|
85
|
-
* Rotate by 270 degrees clockwise around the Y axis
|
|
86
|
-
*
|
|
87
|
-
*/
|
|
88
|
-
Rotate270 = 'Rotate270',
|
|
89
|
-
/**
|
|
90
|
-
* @remarks
|
|
91
|
-
* Rotate by 90 degrees clockwise around the Y axis
|
|
92
|
-
*
|
|
93
|
-
*/
|
|
94
|
-
Rotate90 = 'Rotate90',
|
|
95
|
-
}
|
|
96
|
-
|
|
97
34
|
/**
|
|
98
35
|
* An enumeration used by the 3D block cursor {@link
|
|
99
36
|
* @minecraft/server-editor-bindings.Cursor}
|
|
@@ -1113,6 +1050,7 @@ export class ExtensionContextAfterEvents {
|
|
|
1113
1050
|
*
|
|
1114
1051
|
*/
|
|
1115
1052
|
readonly modeChange: ModeChangeAfterEventSignal;
|
|
1053
|
+
readonly primarySelectionChange: PrimarySelectionChangeAfterEventSignal;
|
|
1116
1054
|
}
|
|
1117
1055
|
|
|
1118
1056
|
/**
|
|
@@ -1352,6 +1290,28 @@ export class PlaytestManager {
|
|
|
1352
1290
|
getPlaytestSessionAvailability(): PlaytestSessionResult;
|
|
1353
1291
|
}
|
|
1354
1292
|
|
|
1293
|
+
export class PrimarySelectionChangeAfterEventSignal {
|
|
1294
|
+
private constructor();
|
|
1295
|
+
/**
|
|
1296
|
+
* @remarks
|
|
1297
|
+
* This function can't be called in read-only mode.
|
|
1298
|
+
*
|
|
1299
|
+
*/
|
|
1300
|
+
subscribe(callback: (arg: SelectionEventAfterEvent) => void): (arg: SelectionEventAfterEvent) => void;
|
|
1301
|
+
/**
|
|
1302
|
+
* @remarks
|
|
1303
|
+
* This function can't be called in read-only mode.
|
|
1304
|
+
*
|
|
1305
|
+
* @throws This function can throw errors.
|
|
1306
|
+
*/
|
|
1307
|
+
unsubscribe(callback: (arg: SelectionEventAfterEvent) => void): void;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
export class PrimarySelectionChangedEvent {
|
|
1311
|
+
private constructor();
|
|
1312
|
+
readonly volume?: minecraftserver.CompoundBlockVolume;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1355
1315
|
/**
|
|
1356
1316
|
* The Selection represents a volume in space, which may
|
|
1357
1317
|
* potentially be made up of one or more block locations.
|
|
@@ -1563,6 +1523,11 @@ export class Selection {
|
|
|
1563
1523
|
setOutlineColor(color: minecraftserver.RGBA): void;
|
|
1564
1524
|
}
|
|
1565
1525
|
|
|
1526
|
+
export class SelectionEventAfterEvent {
|
|
1527
|
+
private constructor();
|
|
1528
|
+
readonly selectionEvent: PrimarySelectionChangedEvent;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1566
1531
|
/**
|
|
1567
1532
|
* The SelectionManager (accessible from the {@link
|
|
1568
1533
|
* ExtensionContext}) is responsible for the management of all
|
|
@@ -1937,7 +1902,7 @@ export interface ClipboardWriteOptions {
|
|
|
1937
1902
|
* - XZ
|
|
1938
1903
|
*
|
|
1939
1904
|
*/
|
|
1940
|
-
mirror?:
|
|
1905
|
+
mirror?: minecraftserver.StructureMirrorAxis;
|
|
1941
1906
|
/**
|
|
1942
1907
|
* @remarks
|
|
1943
1908
|
* A position offset which should be applied to the paste
|
|
@@ -1951,7 +1916,7 @@ export interface ClipboardWriteOptions {
|
|
|
1951
1916
|
* should be applied while the clipboard item is being written
|
|
1952
1917
|
*
|
|
1953
1918
|
*/
|
|
1954
|
-
rotation?:
|
|
1919
|
+
rotation?: minecraftserver.StructureRotation;
|
|
1955
1920
|
}
|
|
1956
1921
|
|
|
1957
1922
|
/**
|
|
@@ -2472,6 +2437,16 @@ export interface IPropertyItemOptions {
|
|
|
2472
2437
|
visible?: boolean;
|
|
2473
2438
|
}
|
|
2474
2439
|
|
|
2440
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2441
|
+
export interface IPropertyItemOptionsBool extends IPropertyItemOptions {
|
|
2442
|
+
/**
|
|
2443
|
+
* @remarks
|
|
2444
|
+
* controls appearance of the boolean. checkbox or toggleswitch
|
|
2445
|
+
*
|
|
2446
|
+
*/
|
|
2447
|
+
displayAsToggleSwitch?: boolean;
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2475
2450
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2476
2451
|
export interface IPropertyItemOptionsButton extends IPropertyItemOptions {
|
|
2477
2452
|
/**
|
|
@@ -2654,7 +2629,7 @@ export interface IPropertyPane {
|
|
|
2654
2629
|
addBool<T extends PropertyBag, Prop extends keyof T & string>(
|
|
2655
2630
|
obj: T,
|
|
2656
2631
|
property: Prop,
|
|
2657
|
-
options?:
|
|
2632
|
+
options?: IPropertyItemOptionsBool,
|
|
2658
2633
|
): IPropertyItem<T, Prop>;
|
|
2659
2634
|
/**
|
|
2660
2635
|
* @remarks
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.20.70-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.20.70-preview.22",
|
|
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.10.0-beta.1.20.70-preview.
|
|
17
|
+
"@minecraft/server": "^1.10.0-beta.1.20.70-preview.22"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|