@minecraft/server-editor 0.1.0-beta.1.21.110-preview.22 → 0.1.0-beta.1.21.110-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 +45 -2
- package/package.json +2 -2
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
|
/**
|
|
@@ -1974,6 +2003,8 @@ export class ClipboardItem {
|
|
|
1974
2003
|
*
|
|
1975
2004
|
*/
|
|
1976
2005
|
readonly isEmpty: boolean;
|
|
2006
|
+
readonly normalizedOrigin: minecraftserver.Vector3;
|
|
2007
|
+
readonly originalWorldLocation: minecraftserver.Vector3;
|
|
1977
2008
|
readonly size: minecraftserver.Vector3;
|
|
1978
2009
|
/**
|
|
1979
2010
|
* @remarks
|
|
@@ -2350,6 +2381,12 @@ export class EditorConstants {
|
|
|
2350
2381
|
|
|
2351
2382
|
export class EditorStructure {
|
|
2352
2383
|
private constructor();
|
|
2384
|
+
/**
|
|
2385
|
+
* @throws This property can throw when used.
|
|
2386
|
+
*
|
|
2387
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2388
|
+
*/
|
|
2389
|
+
readonly displayName: string;
|
|
2353
2390
|
readonly id: string;
|
|
2354
2391
|
readonly isValid: boolean;
|
|
2355
2392
|
/**
|
|
@@ -2665,6 +2702,12 @@ export class ExtensionContext {
|
|
|
2665
2702
|
*/
|
|
2666
2703
|
export class ExtensionContextAfterEvents {
|
|
2667
2704
|
private constructor();
|
|
2705
|
+
/**
|
|
2706
|
+
* @remarks
|
|
2707
|
+
* This property can be read in early-execution mode.
|
|
2708
|
+
*
|
|
2709
|
+
*/
|
|
2710
|
+
readonly blockPaletteSelectedItemChange: BlockPaletteSelectedItemChangeAfterEventSignal;
|
|
2668
2711
|
/**
|
|
2669
2712
|
* @remarks
|
|
2670
2713
|
* This property can be read in early-execution mode.
|
|
@@ -6529,13 +6572,13 @@ export interface IPlayerLoggerProperties {
|
|
|
6529
6572
|
* A log channel mask, default is Message
|
|
6530
6573
|
*
|
|
6531
6574
|
*/
|
|
6532
|
-
channelMask
|
|
6575
|
+
channelMask?: LogChannel;
|
|
6533
6576
|
/**
|
|
6534
6577
|
* @remarks
|
|
6535
6578
|
* A player log sub message for the toast channel
|
|
6536
6579
|
*
|
|
6537
6580
|
*/
|
|
6538
|
-
subMessage
|
|
6581
|
+
subMessage?: string;
|
|
6539
6582
|
}
|
|
6540
6583
|
|
|
6541
6584
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.21.110-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.21.110-preview.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^2.3.0-beta.1.21.110-preview.
|
|
17
|
+
"@minecraft/server": "^2.3.0-beta.1.21.110-preview.24"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|