跳转至

ThemeSettings

文档版本:1.21.60.21

ThemeSettings类。script_api.minecraft/server-editor-bindings.themesettings.description

方法

addNewTheme

script_api.minecraft/server-editor-bindings.themesettings.addnewtheme.description

addNewTheme(id: string, name?: string, sourceThemeId?: string): void
canThemeBeModified

script_api.minecraft/server-editor-bindings.themesettings.canthemebemodified.description

canThemeBeModified(id: string): boolean
deleteTheme

script_api.minecraft/server-editor-bindings.themesettings.deletetheme.description

deleteTheme(id: string): void
getCurrentTheme

script_api.minecraft/server-editor-bindings.themesettings.getcurrenttheme.description

getCurrentTheme(): string
getThemeColors

script_api.minecraft/server-editor-bindings.themesettings.getthemecolors.description

getThemeColors(id: string): Record<string, RGBA> | undefined
getThemeIdList

script_api.minecraft/server-editor-bindings.themesettings.getthemeidlist.description

getThemeIdList(): string[]
getThemeName

script_api.minecraft/server-editor-bindings.themesettings.getthemename.description

getThemeName(id: string): string
resolveColorKey

script_api.minecraft/server-editor-bindings.themesettings.resolvecolorkey.description

resolveColorKey(key: ThemeSettingsColorKey): RGBA
setCurrentTheme

script_api.minecraft/server-editor-bindings.themesettings.setcurrenttheme.description

setCurrentTheme(id: string): void
setThemeName

script_api.minecraft/server-editor-bindings.themesettings.setthemename.description

setThemeName(id: string, name: string): void
updateThemeColor

script_api.minecraft/server-editor-bindings.themesettings.updatethemecolor.description

updateThemeColor(id: string, key: ThemeSettingsColorKey, newColor: RGBA): void