@minecraft/server-editor 0.1.0-beta.1.21.110-preview.22 → 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.
- package/index.d.ts +50 -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
|
/**
|
|
@@ -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.
|
|
@@ -6529,13 +6577,13 @@ export interface IPlayerLoggerProperties {
|
|
|
6529
6577
|
* A log channel mask, default is Message
|
|
6530
6578
|
*
|
|
6531
6579
|
*/
|
|
6532
|
-
channelMask
|
|
6580
|
+
channelMask?: LogChannel;
|
|
6533
6581
|
/**
|
|
6534
6582
|
* @remarks
|
|
6535
6583
|
* A player log sub message for the toast channel
|
|
6536
6584
|
*
|
|
6537
6585
|
*/
|
|
6538
|
-
subMessage
|
|
6586
|
+
subMessage?: string;
|
|
6539
6587
|
}
|
|
6540
6588
|
|
|
6541
6589
|
/**
|
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.23",
|
|
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.23"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|