@minecraft/server-editor 0.1.0-beta.1.20.70-preview.21 → 0.1.0-beta.1.20.70-preview.24
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 +33 -68
- 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.24"
|
|
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}
|
|
@@ -658,6 +595,21 @@ export declare class BedrockEventSubscriptionCache {
|
|
|
658
595
|
teardown(): void;
|
|
659
596
|
}
|
|
660
597
|
|
|
598
|
+
export class BlockPaletteManager {
|
|
599
|
+
private constructor();
|
|
600
|
+
/**
|
|
601
|
+
* @throws This function can throw errors.
|
|
602
|
+
*/
|
|
603
|
+
getSelectedBlockType(): minecraftserver.BlockType;
|
|
604
|
+
/**
|
|
605
|
+
* @remarks
|
|
606
|
+
* This function can't be called in read-only mode.
|
|
607
|
+
*
|
|
608
|
+
* @throws This function can throw errors.
|
|
609
|
+
*/
|
|
610
|
+
setSelectedBlockType(block: minecraftserver.BlockType): void;
|
|
611
|
+
}
|
|
612
|
+
|
|
661
613
|
/**
|
|
662
614
|
* A ClipboardItem is a handle to an object which represents a
|
|
663
615
|
* set of blocks in a contained bounding area (most likely
|
|
@@ -1043,6 +995,7 @@ export class ExtensionContext {
|
|
|
1043
995
|
*
|
|
1044
996
|
*/
|
|
1045
997
|
readonly afterEvents: ExtensionContextAfterEvents;
|
|
998
|
+
readonly blockPalette: BlockPaletteManager;
|
|
1046
999
|
/**
|
|
1047
1000
|
* @remarks
|
|
1048
1001
|
* This is used to access the players Clipboard Manager and the
|
|
@@ -1965,7 +1918,7 @@ export interface ClipboardWriteOptions {
|
|
|
1965
1918
|
* - XZ
|
|
1966
1919
|
*
|
|
1967
1920
|
*/
|
|
1968
|
-
mirror?:
|
|
1921
|
+
mirror?: minecraftserver.StructureMirrorAxis;
|
|
1969
1922
|
/**
|
|
1970
1923
|
* @remarks
|
|
1971
1924
|
* A position offset which should be applied to the paste
|
|
@@ -1979,7 +1932,7 @@ export interface ClipboardWriteOptions {
|
|
|
1979
1932
|
* should be applied while the clipboard item is being written
|
|
1980
1933
|
*
|
|
1981
1934
|
*/
|
|
1982
|
-
rotation?:
|
|
1935
|
+
rotation?: minecraftserver.StructureRotation;
|
|
1983
1936
|
}
|
|
1984
1937
|
|
|
1985
1938
|
/**
|
|
@@ -2500,6 +2453,16 @@ export interface IPropertyItemOptions {
|
|
|
2500
2453
|
visible?: boolean;
|
|
2501
2454
|
}
|
|
2502
2455
|
|
|
2456
|
+
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2457
|
+
export interface IPropertyItemOptionsBool extends IPropertyItemOptions {
|
|
2458
|
+
/**
|
|
2459
|
+
* @remarks
|
|
2460
|
+
* controls appearance of the boolean. checkbox or toggleswitch
|
|
2461
|
+
*
|
|
2462
|
+
*/
|
|
2463
|
+
displayAsToggleSwitch?: boolean;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2503
2466
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2504
2467
|
export interface IPropertyItemOptionsButton extends IPropertyItemOptions {
|
|
2505
2468
|
/**
|
|
@@ -2563,10 +2526,12 @@ export interface IPropertyItemOptionsSubPane extends IPropertyItemOptions {
|
|
|
2563
2526
|
}
|
|
2564
2527
|
|
|
2565
2528
|
/**
|
|
2566
|
-
* Localization string id
|
|
2529
|
+
* Localization string id and border enable boolean for
|
|
2530
|
+
* multiline text component.
|
|
2567
2531
|
*/
|
|
2568
2532
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2569
2533
|
export interface IPropertyItemOptionsText extends IPropertyItemOptions {
|
|
2534
|
+
border: boolean;
|
|
2570
2535
|
valueStringId: string;
|
|
2571
2536
|
}
|
|
2572
2537
|
|
|
@@ -2682,7 +2647,7 @@ export interface IPropertyPane {
|
|
|
2682
2647
|
addBool<T extends PropertyBag, Prop extends keyof T & string>(
|
|
2683
2648
|
obj: T,
|
|
2684
2649
|
property: Prop,
|
|
2685
|
-
options?:
|
|
2650
|
+
options?: IPropertyItemOptionsBool,
|
|
2686
2651
|
): IPropertyItem<T, Prop>;
|
|
2687
2652
|
/**
|
|
2688
2653
|
* @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.24",
|
|
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.24"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|