Interface CustomToolBarBuilder


public interface CustomToolBarBuilder
  • Method Details

    • getThemeToggleButton

      IThemeButton getThemeToggleButton(@NotNull @NotNull String labelOn, @NotNull @NotNull String labelOff, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, @NotNull IThemeButton.Action onPress)
      Creates and gets a theme toggle button with a separate on/off label.
      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 resourceLocation
      onPress - - The onpress action.
      Returns:
      IThemeButton
    • getThemeButton

      IThemeButton getThemeButton(@NotNull @NotNull String labelOn, @NotNull @NotNull String labelOff, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, @NotNull IThemeButton.Action onPress)
      Creates and gets a theme button with a separate on/off label.
      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 resourceLocation
      onPress - - The onpress action.
      Returns:
      IThemeButton
    • getThemeToggleButton

      IThemeButton getThemeToggleButton(@NotNull @NotNull String label, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, @NotNull IThemeButton.Action onPress)
      Creates and gets a theme toggle button with a separate on/off label.
      Parameters:
      label - - The label, can be the display string or i18n key.
      icon - - The icon name. Icon resourceLocation
      onPress - - The onpress action.
      Returns:
      IThemeButton
    • getThemeButton

      IThemeButton getThemeButton(@NotNull @NotNull String label, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, @NotNull IThemeButton.Action onPress)
      Creates and gets a theme button with a separate on/off label.
      Parameters:
      label - - The label, can be the display string or i18n key.
      icon - - The icon name. Icon resourceLocation
      onPress - - The onpress action.
      Returns:
      IThemeButton
    • getNewToolbar

      IThemeToolBar getNewToolbar(IThemeButton... themeButtons)
      Gets a new toolbar instance. All the buttons must be added here.
      Parameters:
      themeButtons - - The theme buttons.
      Returns:
      The toolbar instance.