Interface ThemeButtonDisplay
public interface ThemeButtonDisplay
-
Method Summary
Modifier and TypeMethodDescriptionaddThemeButton(@NotNull String labelOn, @NotNull String labelOff, @NotNull net.minecraft.resources.ResourceLocation icon, IThemeButton.Action onPress) Creates and adds a theme button with a separate on/off label to the toolbar.addThemeButton(@NotNull String label, @NotNull net.minecraft.resources.ResourceLocation icon, IThemeButton.Action onPress) Creates and adds a theme button with a separate on/off label to the toolbar.addThemeToggleButton(@NotNull String labelOn, @NotNull String labelOff, @NotNull net.minecraft.resources.ResourceLocation icon, boolean toggled, IThemeButton.Action onPress) Creates and adds a theme toggle button with a separate on/off label to the toolbar.addThemeToggleButton(@NotNull String label, @NotNull net.minecraft.resources.ResourceLocation icon, boolean toggled, IThemeButton.Action onPress) Creates and adds a theme toggle button with a separate on/off label to the toolbar.
-
Method Details
-
addThemeToggleButton
IThemeButton addThemeToggleButton(@NotNull @NotNull String labelOn, @NotNull @NotNull String labelOff, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, boolean toggled, @NotNull IThemeButton.Action onPress) Creates and adds a theme toggle button with a separate on/off label to the toolbar.- Parameters:
labelOn- - The on label, can be the display string or i18n key.labelOff- - The off label, can be the display string or i18n key.icon- - The icon name. Icon resourceLocationtoggled- - If button starts toggled.onPress- - The onpress action.- Returns:
- IThemeButton
-
addThemeButton
IThemeButton addThemeButton(@NotNull @NotNull String labelOn, @NotNull @NotNull String labelOff, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, @NotNull IThemeButton.Action onPress) Creates and adds a theme button with a separate on/off label to the toolbar.- Parameters:
labelOn- - The on label, can be the display string or i18n key.labelOff- - The off label, can be the display string or i18n key.icon- - The icon name. Icon resourceLocationonPress- - The onpress action.- Returns:
- IThemeButton
-
addThemeToggleButton
IThemeButton addThemeToggleButton(@NotNull @NotNull String label, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, boolean toggled, @NotNull IThemeButton.Action onPress) Creates and adds a theme toggle button with a separate on/off label to the toolbar.- Parameters:
label- - The label, can be the display string or i18n key.icon- - The icon name. Icon resourceLocationtoggled- - If button starts toggled.onPress- - The onpress action.- Returns:
- IThemeButton
-
addThemeButton
IThemeButton addThemeButton(@NotNull @NotNull String label, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, @NotNull IThemeButton.Action onPress) Creates and adds a theme button with a separate on/off label to the toolbar.- Parameters:
label- - The label, can be the display string or i18n key.icon- - The icon name. Icon resourceLocationonPress- - The onpress action.- Returns:
- IThemeButton
-