Interface ThemeButtonDisplay


public interface ThemeButtonDisplay
  • Method Details

    • addThemeToggleButton

      IThemeButton addThemeToggleButton(@NotNull @NotNull String labelOn, @NotNull @NotNull String labelOff, @NotNull @NotNull net.minecraft.resources.Identifier 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 Identifier
      toggled - - 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.Identifier 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 Identifier
      onPress - - The onpress action.
      Returns:
      IThemeButton
    • addThemeToggleButton

      IThemeButton addThemeToggleButton(@NotNull @NotNull String label, @NotNull @NotNull net.minecraft.resources.Identifier 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 Identifier
      toggled - - If button starts toggled.
      onPress - - The onpress action.
      Returns:
      IThemeButton
    • addThemeButton

      IThemeButton addThemeButton(@NotNull @NotNull String label, @NotNull @NotNull net.minecraft.resources.Identifier 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 Identifier
      onPress - - The onpress action.
      Returns:
      IThemeButton