@minecraft/server-editor 0.1.0-beta.1.20.70-preview.22 → 0.1.0-beta.1.20.70-preview.25
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 +20 -2
- 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.25"
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
@@ -595,6 +595,21 @@ export declare class BedrockEventSubscriptionCache {
|
|
|
595
595
|
teardown(): void;
|
|
596
596
|
}
|
|
597
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
|
+
|
|
598
613
|
/**
|
|
599
614
|
* A ClipboardItem is a handle to an object which represents a
|
|
600
615
|
* set of blocks in a contained bounding area (most likely
|
|
@@ -980,6 +995,7 @@ export class ExtensionContext {
|
|
|
980
995
|
*
|
|
981
996
|
*/
|
|
982
997
|
readonly afterEvents: ExtensionContextAfterEvents;
|
|
998
|
+
readonly blockPalette: BlockPaletteManager;
|
|
983
999
|
/**
|
|
984
1000
|
* @remarks
|
|
985
1001
|
* This is used to access the players Clipboard Manager and the
|
|
@@ -2510,10 +2526,12 @@ export interface IPropertyItemOptionsSubPane extends IPropertyItemOptions {
|
|
|
2510
2526
|
}
|
|
2511
2527
|
|
|
2512
2528
|
/**
|
|
2513
|
-
* Localization string id
|
|
2529
|
+
* Localization string id and border enable boolean for
|
|
2530
|
+
* multiline text component.
|
|
2514
2531
|
*/
|
|
2515
2532
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
2516
2533
|
export interface IPropertyItemOptionsText extends IPropertyItemOptions {
|
|
2534
|
+
border: boolean;
|
|
2517
2535
|
valueStringId: string;
|
|
2518
2536
|
}
|
|
2519
2537
|
|
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.25",
|
|
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.25"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|