@minecraft/server-editor 0.1.0-beta.1.21.110-preview.20 → 0.1.0-beta.1.21.110-preview.23

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.
Files changed (3) hide show
  1. package/README.md +6 -6
  2. package/index.d.ts +69 -3
  3. package/package.json +19 -19
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # `@minecraft/server-editor`
2
-
3
- ## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
4
-
5
- See full documentation for this module here:
6
-
1
+ # `@minecraft/server-editor`
2
+
3
+ ## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
4
+
5
+ See full documentation for this module here:
6
+
7
7
  https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server-editor/minecraft-server-editor
package/index.d.ts CHANGED
@@ -303,6 +303,7 @@ export enum GraphicsSettingsProperty {
303
303
  *
304
304
  */
305
305
  ShowInvisibleBlocks = 'ShowInvisibleBlocks',
306
+ ShowToastNotifications = 'ShowToastNotifications',
306
307
  }
307
308
 
308
309
  /**
@@ -1295,6 +1296,7 @@ export type GraphicsSettingsPropertyTypeMap = {
1295
1296
  [GraphicsSettingsProperty.ShowChunkBoundaries]?: boolean;
1296
1297
  [GraphicsSettingsProperty.ShowCompass]?: boolean;
1297
1298
  [GraphicsSettingsProperty.NightVision]?: boolean;
1299
+ [GraphicsSettingsProperty.ShowToastNotifications]?: boolean;
1298
1300
  };
1299
1301
 
1300
1302
  /**
@@ -1685,6 +1687,33 @@ export class BlockPaletteManager {
1685
1687
  setSelectedItem(item: IBlockPaletteItem): void;
1686
1688
  }
1687
1689
 
1690
+ export class BlockPaletteSelectedItemChangeAfterEvent {
1691
+ private constructor();
1692
+ readonly selectedPaletteItem: IBlockPaletteItem;
1693
+ }
1694
+
1695
+ export class BlockPaletteSelectedItemChangeAfterEventSignal {
1696
+ private constructor();
1697
+ /**
1698
+ * @remarks
1699
+ * This function can't be called in read-only mode.
1700
+ *
1701
+ * This function can be called in early-execution mode.
1702
+ *
1703
+ */
1704
+ subscribe(
1705
+ callback: (arg0: BlockPaletteSelectedItemChangeAfterEvent) => void,
1706
+ ): (arg0: BlockPaletteSelectedItemChangeAfterEvent) => void;
1707
+ /**
1708
+ * @remarks
1709
+ * This function can't be called in read-only mode.
1710
+ *
1711
+ * This function can be called in early-execution mode.
1712
+ *
1713
+ */
1714
+ unsubscribe(callback: (arg0: BlockPaletteSelectedItemChangeAfterEvent) => void): void;
1715
+ }
1716
+
1688
1717
  export class BlockUtilities {
1689
1718
  private constructor();
1690
1719
  /**
@@ -1984,6 +2013,13 @@ export class ClipboardItem {
1984
2013
  * @throws This function can throw errors.
1985
2014
  */
1986
2015
  clear(): void;
2016
+ /**
2017
+ * @remarks
2018
+ * Get the normalized origin of a ClipboardItem; a Vector3 from
2019
+ * { -1, -1, -1 } to { 1, 1, 1 }
2020
+ *
2021
+ */
2022
+ getNormalizedOrigin(): minecraftserver.Vector3;
1987
2023
  /**
1988
2024
  * @remarks
1989
2025
  * This function can't be called in read-only mode.
@@ -2350,6 +2386,12 @@ export class EditorConstants {
2350
2386
 
2351
2387
  export class EditorStructure {
2352
2388
  private constructor();
2389
+ /**
2390
+ * @throws This property can throw when used.
2391
+ *
2392
+ * {@link minecraftserver.InvalidStructureError}
2393
+ */
2394
+ readonly displayName: string;
2353
2395
  readonly id: string;
2354
2396
  readonly isValid: boolean;
2355
2397
  /**
@@ -2665,6 +2707,12 @@ export class ExtensionContext {
2665
2707
  */
2666
2708
  export class ExtensionContextAfterEvents {
2667
2709
  private constructor();
2710
+ /**
2711
+ * @remarks
2712
+ * This property can be read in early-execution mode.
2713
+ *
2714
+ */
2715
+ readonly blockPaletteSelectedItemChange: BlockPaletteSelectedItemChangeAfterEventSignal;
2668
2716
  /**
2669
2717
  * @remarks
2670
2718
  * This property can be read in early-execution mode.
@@ -5395,6 +5443,24 @@ export interface IComboBoxPropertyItem extends IPropertyItemBase {
5395
5443
  setTooltip(tooltip: BasicTooltipContent | undefined): void;
5396
5444
  }
5397
5445
 
5446
+ /**
5447
+ * Properties of toggle group property item list entry
5448
+ */
5449
+ export interface IComboBoxPropertyItemEntry {
5450
+ /**
5451
+ * @remarks
5452
+ * Localized display text of the entry.
5453
+ *
5454
+ */
5455
+ readonly label?: LocalizedString;
5456
+ /**
5457
+ * @remarks
5458
+ * The selectable value of the entry.
5459
+ *
5460
+ */
5461
+ readonly value: string;
5462
+ }
5463
+
5398
5464
  /**
5399
5465
  * Optional properties for ComboBox property item
5400
5466
  */
@@ -5422,7 +5488,7 @@ export interface IComboBoxPropertyItemOptions extends IPropertyItemOptionsBase {
5422
5488
  * type).
5423
5489
  *
5424
5490
  */
5425
- entries?: string[];
5491
+ entries?: IComboBoxPropertyItemEntry[];
5426
5492
  /**
5427
5493
  * @remarks
5428
5494
  * If true label text will be hidden. It will be visible by
@@ -6511,13 +6577,13 @@ export interface IPlayerLoggerProperties {
6511
6577
  * A log channel mask, default is Message
6512
6578
  *
6513
6579
  */
6514
- channelMask: LogChannel;
6580
+ channelMask?: LogChannel;
6515
6581
  /**
6516
6582
  * @remarks
6517
6583
  * A player log sub message for the toast channel
6518
6584
  *
6519
6585
  */
6520
- subMessage: string;
6586
+ subMessage?: string;
6521
6587
  }
6522
6588
 
6523
6589
  /**
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
- {
2
- "name": "@minecraft/server-editor",
3
- "version": "0.1.0-beta.1.21.110-preview.20",
4
- "description": "",
5
- "contributors": [
6
- {
7
- "name": "Jake Shirley",
8
- "email": "jake@xbox.com"
9
- },
10
- {
11
- "name": "Mike Ammerlaan",
12
- "email": "mikeam@microsoft.com"
13
- }
14
- ],
15
- "peerDependencies": {
16
- "@minecraft/common": "^1.0.0",
17
- "@minecraft/server": "^2.3.0-beta.1.21.110-preview.20"
18
- },
19
- "license": "MIT"
1
+ {
2
+ "name": "@minecraft/server-editor",
3
+ "version": "0.1.0-beta.1.21.110-preview.23",
4
+ "description": "",
5
+ "contributors": [
6
+ {
7
+ "name": "Jake Shirley",
8
+ "email": "jake@xbox.com"
9
+ },
10
+ {
11
+ "name": "Mike Ammerlaan",
12
+ "email": "mikeam@microsoft.com"
13
+ }
14
+ ],
15
+ "peerDependencies": {
16
+ "@minecraft/common": "^1.0.0",
17
+ "@minecraft/server": "^2.3.0-beta.1.21.110-preview.23"
18
+ },
19
+ "license": "MIT"
20
20
  }