@minecraft/server-editor 0.1.0-beta.1.20.70-preview.20 → 0.1.0-beta.1.20.70-preview.21
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 +29 -1
- 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.21"
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
@@ -1113,6 +1113,7 @@ export class ExtensionContextAfterEvents {
|
|
|
1113
1113
|
*
|
|
1114
1114
|
*/
|
|
1115
1115
|
readonly modeChange: ModeChangeAfterEventSignal;
|
|
1116
|
+
readonly primarySelectionChange: PrimarySelectionChangeAfterEventSignal;
|
|
1116
1117
|
}
|
|
1117
1118
|
|
|
1118
1119
|
/**
|
|
@@ -1352,6 +1353,28 @@ export class PlaytestManager {
|
|
|
1352
1353
|
getPlaytestSessionAvailability(): PlaytestSessionResult;
|
|
1353
1354
|
}
|
|
1354
1355
|
|
|
1356
|
+
export class PrimarySelectionChangeAfterEventSignal {
|
|
1357
|
+
private constructor();
|
|
1358
|
+
/**
|
|
1359
|
+
* @remarks
|
|
1360
|
+
* This function can't be called in read-only mode.
|
|
1361
|
+
*
|
|
1362
|
+
*/
|
|
1363
|
+
subscribe(callback: (arg: SelectionEventAfterEvent) => void): (arg: SelectionEventAfterEvent) => void;
|
|
1364
|
+
/**
|
|
1365
|
+
* @remarks
|
|
1366
|
+
* This function can't be called in read-only mode.
|
|
1367
|
+
*
|
|
1368
|
+
* @throws This function can throw errors.
|
|
1369
|
+
*/
|
|
1370
|
+
unsubscribe(callback: (arg: SelectionEventAfterEvent) => void): void;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
export class PrimarySelectionChangedEvent {
|
|
1374
|
+
private constructor();
|
|
1375
|
+
readonly volume?: minecraftserver.CompoundBlockVolume;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1355
1378
|
/**
|
|
1356
1379
|
* The Selection represents a volume in space, which may
|
|
1357
1380
|
* potentially be made up of one or more block locations.
|
|
@@ -1563,6 +1586,11 @@ export class Selection {
|
|
|
1563
1586
|
setOutlineColor(color: minecraftserver.RGBA): void;
|
|
1564
1587
|
}
|
|
1565
1588
|
|
|
1589
|
+
export class SelectionEventAfterEvent {
|
|
1590
|
+
private constructor();
|
|
1591
|
+
readonly selectionEvent: PrimarySelectionChangedEvent;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1566
1594
|
/**
|
|
1567
1595
|
* The SelectionManager (accessible from the {@link
|
|
1568
1596
|
* ExtensionContext}) is responsible for the management of all
|
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.21",
|
|
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.21"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|