@minecraft/server-editor 0.1.0-beta.1.20.40-preview.24 → 0.1.0-beta.1.20.50-preview.20
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 +34 -1
- package/package.json +3 -3
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.
|
|
17
|
+
* "version": "0.1.0-beta.1.20.50-preview.20"
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
@@ -185,6 +185,11 @@ export declare enum EditorInputContext {
|
|
|
185
185
|
Viewport = 'local.toolMode.viewport',
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
export enum EditorMode {
|
|
189
|
+
Crosshair = 'Crosshair',
|
|
190
|
+
Tool = 'Tool',
|
|
191
|
+
}
|
|
192
|
+
|
|
188
193
|
export declare enum EditorStatusBarAlignment {
|
|
189
194
|
Right = 0,
|
|
190
195
|
Left = 1,
|
|
@@ -935,6 +940,7 @@ export class Extension {
|
|
|
935
940
|
*/
|
|
936
941
|
export class ExtensionContext {
|
|
937
942
|
private constructor();
|
|
943
|
+
readonly afterEvents: ExtensionContextAfterEvents;
|
|
938
944
|
/**
|
|
939
945
|
* @remarks
|
|
940
946
|
* This is used to access the players Clipboard Manager and the
|
|
@@ -983,6 +989,11 @@ export class ExtensionContext {
|
|
|
983
989
|
readonly transactionManager: TransactionManager;
|
|
984
990
|
}
|
|
985
991
|
|
|
992
|
+
export class ExtensionContextAfterEvents {
|
|
993
|
+
private constructor();
|
|
994
|
+
readonly modeChange: ModeChangeAfterEventSignal;
|
|
995
|
+
}
|
|
996
|
+
|
|
986
997
|
/**
|
|
987
998
|
* The logger class is a utility class which allows editor
|
|
988
999
|
* extensions to communicate with the player from the server to
|
|
@@ -1106,6 +1117,28 @@ export class MinecraftEditor {
|
|
|
1106
1117
|
): Extension;
|
|
1107
1118
|
}
|
|
1108
1119
|
|
|
1120
|
+
export class ModeChangeAfterEvent {
|
|
1121
|
+
private constructor();
|
|
1122
|
+
readonly mode: EditorMode;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export class ModeChangeAfterEventSignal {
|
|
1126
|
+
private constructor();
|
|
1127
|
+
/**
|
|
1128
|
+
* @remarks
|
|
1129
|
+
* This function can't be called in read-only mode.
|
|
1130
|
+
*
|
|
1131
|
+
*/
|
|
1132
|
+
subscribe(callback: (arg: ModeChangeAfterEvent) => void): (arg: ModeChangeAfterEvent) => void;
|
|
1133
|
+
/**
|
|
1134
|
+
* @remarks
|
|
1135
|
+
* This function can't be called in read-only mode.
|
|
1136
|
+
*
|
|
1137
|
+
* @throws This function can throw errors.
|
|
1138
|
+
*/
|
|
1139
|
+
unsubscribe(callback: (arg: ModeChangeAfterEvent) => void): void;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1109
1142
|
export class PlaytestManager {
|
|
1110
1143
|
private constructor();
|
|
1111
1144
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.20.
|
|
3
|
+
"version": "0.1.0-beta.1.20.50-preview.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/common": "^1.0.0-rc.1.20.
|
|
17
|
-
"@minecraft/server": "^1.
|
|
16
|
+
"@minecraft/common": "^1.0.0-rc.1.20.50-preview.20",
|
|
17
|
+
"@minecraft/server": "^1.8.0-beta.1.20.50-preview.20"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|