ThemeSettings
¶
文档版本:1.21.60.21
ThemeSettings
类。script_api.minecraft/server-editor-bindings.themesettings.description
方法¶
addNewTheme
script_api.minecraft/server-editor-bindings.themesettings.addnewtheme.description
id
:string
- script_api.minecraft/server-editor-bindings.themesettings.addnewtheme.id.description
name
?:string
=null
- script_api.minecraft/server-editor-bindings.themesettings.addnewtheme.name.description
sourceThemeId
?:string
=null
- script_api.minecraft/server-editor-bindings.themesettings.addnewtheme.sourcethemeid.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.themesettings.addnewtheme.return
canThemeBeModified
script_api.minecraft/server-editor-bindings.themesettings.canthemebemodified.description
id
:string
- script_api.minecraft/server-editor-bindings.themesettings.canthemebemodified.id.description
- 返回值:
boolean
- script_api.minecraft/server-editor-bindings.themesettings.canthemebemodified.return
deleteTheme
script_api.minecraft/server-editor-bindings.themesettings.deletetheme.description
id
:string
- script_api.minecraft/server-editor-bindings.themesettings.deletetheme.id.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.themesettings.deletetheme.return
getCurrentTheme
script_api.minecraft/server-editor-bindings.themesettings.getcurrenttheme.description
- 返回值:
string
- script_api.minecraft/server-editor-bindings.themesettings.getcurrenttheme.return
getThemeColors
script_api.minecraft/server-editor-bindings.themesettings.getthemecolors.description
id
:string
- script_api.minecraft/server-editor-bindings.themesettings.getthemecolors.id.description
- 返回值:
Record<string, RGBA>
|undefined
- script_api.minecraft/server-editor-bindings.themesettings.getthemecolors.return
getThemeIdList
script_api.minecraft/server-editor-bindings.themesettings.getthemeidlist.description
- 返回值:
string[]
- script_api.minecraft/server-editor-bindings.themesettings.getthemeidlist.return
getThemeName
script_api.minecraft/server-editor-bindings.themesettings.getthemename.description
id
:string
- script_api.minecraft/server-editor-bindings.themesettings.getthemename.id.description
- 返回值:
string
- script_api.minecraft/server-editor-bindings.themesettings.getthemename.return
resolveColorKey
script_api.minecraft/server-editor-bindings.themesettings.resolvecolorkey.description
setCurrentTheme
script_api.minecraft/server-editor-bindings.themesettings.setcurrenttheme.description
id
:string
- script_api.minecraft/server-editor-bindings.themesettings.setcurrenttheme.id.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.themesettings.setcurrenttheme.return
setThemeName
script_api.minecraft/server-editor-bindings.themesettings.setthemename.description
id
:string
- script_api.minecraft/server-editor-bindings.themesettings.setthemename.id.description
name
:string
- script_api.minecraft/server-editor-bindings.themesettings.setthemename.name.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.themesettings.setthemename.return
updateThemeColor
script_api.minecraft/server-editor-bindings.themesettings.updatethemecolor.description
id
:string
- script_api.minecraft/server-editor-bindings.themesettings.updatethemecolor.id.description
key
:ThemeSettingsColorKey
- script_api.minecraft/server-editor-bindings.themesettings.updatethemecolor.key.description
newColor
:RGBA
- script_api.minecraft/server-editor-bindings.themesettings.updatethemecolor.newcolor.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.themesettings.updatethemecolor.return