@minecraft/server-editor 0.1.0-beta.1.20.70-preview.21 → 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 +14 -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}
|
|
@@ -1965,7 +1902,7 @@ export interface ClipboardWriteOptions {
|
|
|
1965
1902
|
* - XZ
|
|
1966
1903
|
*
|
|
1967
1904
|
*/
|
|
1968
|
-
mirror?:
|
|
1905
|
+
mirror?: minecraftserver.StructureMirrorAxis;
|
|
1969
1906
|
/**
|
|
1970
1907
|
* @remarks
|
|
1971
1908
|
* A position offset which should be applied to the paste
|
|
@@ -1979,7 +1916,7 @@ export interface ClipboardWriteOptions {
|
|
|
1979
1916
|
* should be applied while the clipboard item is being written
|
|
1980
1917
|
*
|
|
1981
1918
|
*/
|
|
1982
|
-
rotation?:
|
|
1919
|
+
rotation?: minecraftserver.StructureRotation;
|
|
1983
1920
|
}
|
|
1984
1921
|
|
|
1985
1922
|
/**
|
|
@@ -2500,6 +2437,16 @@ export interface IPropertyItemOptions {
|
|
|
2500
2437
|
visible?: boolean;
|
|
2501
2438
|
}
|
|
2502
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
|
+
|
|
2503
2450
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2504
2451
|
export interface IPropertyItemOptionsButton extends IPropertyItemOptions {
|
|
2505
2452
|
/**
|
|
@@ -2682,7 +2629,7 @@ export interface IPropertyPane {
|
|
|
2682
2629
|
addBool<T extends PropertyBag, Prop extends keyof T & string>(
|
|
2683
2630
|
obj: T,
|
|
2684
2631
|
property: Prop,
|
|
2685
|
-
options?:
|
|
2632
|
+
options?: IPropertyItemOptionsBool,
|
|
2686
2633
|
): IPropertyItem<T, Prop>;
|
|
2687
2634
|
/**
|
|
2688
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
|
}
|