@minecraft/server-editor 0.1.0-beta.1.21.50-preview.20 → 0.1.0-beta.1.21.50-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 +18 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -2984,7 +2984,7 @@ export class ThemeSettings {
|
|
|
2984
2984
|
*
|
|
2985
2985
|
* {@link Error}
|
|
2986
2986
|
*/
|
|
2987
|
-
addNewTheme(id: string): void;
|
|
2987
|
+
addNewTheme(id: string, name?: string, sourceThemeId?: string): void;
|
|
2988
2988
|
canThemeBeModified(id: string): boolean;
|
|
2989
2989
|
/**
|
|
2990
2990
|
* @remarks
|
|
@@ -2997,7 +2997,13 @@ export class ThemeSettings {
|
|
|
2997
2997
|
deleteTheme(id: string): void;
|
|
2998
2998
|
getCurrentTheme(): string;
|
|
2999
2999
|
getThemeColors(id: string): Record<string, minecraftserver.RGBA> | undefined;
|
|
3000
|
-
|
|
3000
|
+
getThemeIdList(): string[];
|
|
3001
|
+
/**
|
|
3002
|
+
* @throws This function can throw errors.
|
|
3003
|
+
*
|
|
3004
|
+
* {@link Error}
|
|
3005
|
+
*/
|
|
3006
|
+
getThemeName(id: string): string;
|
|
3001
3007
|
resolveColorKey(key: ThemeSettingsColorKey): minecraftserver.RGBA;
|
|
3002
3008
|
/**
|
|
3003
3009
|
* @remarks
|
|
@@ -3008,6 +3014,15 @@ export class ThemeSettings {
|
|
|
3008
3014
|
* {@link Error}
|
|
3009
3015
|
*/
|
|
3010
3016
|
setCurrentTheme(id: string): void;
|
|
3017
|
+
/**
|
|
3018
|
+
* @remarks
|
|
3019
|
+
* This function can't be called in read-only mode.
|
|
3020
|
+
*
|
|
3021
|
+
* @throws This function can throw errors.
|
|
3022
|
+
*
|
|
3023
|
+
* {@link Error}
|
|
3024
|
+
*/
|
|
3025
|
+
setThemeName(id: string, name: string): void;
|
|
3011
3026
|
/**
|
|
3012
3027
|
* @remarks
|
|
3013
3028
|
* This function can't be called in read-only mode.
|
|
@@ -5047,6 +5062,7 @@ export interface IModalToolContainer {
|
|
|
5047
5062
|
*/
|
|
5048
5063
|
readonly currentTools: IModalTool[];
|
|
5049
5064
|
addTool(params: ModalToolCreationParameters, action?: RegisteredAction<NoArgsAction>): IModalTool;
|
|
5065
|
+
focusToolInputContext(): void;
|
|
5050
5066
|
getSelectedToolId(): string | undefined;
|
|
5051
5067
|
removeTool(id: string): void;
|
|
5052
5068
|
setSelectedToolId(id: string | undefined): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.21.50-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.21.50-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.17.0-beta.1.21.50-preview.
|
|
17
|
+
"@minecraft/server": "^1.17.0-beta.1.21.50-preview.25"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|