Interface CustomToolBarBuilder
public interface CustomToolBarBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetNewToolbar(IThemeButton... themeButtons) Gets a new toolbar instance.getThemeButton(@NotNull String labelOn, @NotNull String labelOff, @NotNull net.minecraft.resources.ResourceLocation icon, IThemeButton.Action onPress) Creates and gets a theme button with a separate on/off label.getThemeButton(@NotNull String label, @NotNull net.minecraft.resources.ResourceLocation icon, IThemeButton.Action onPress) Creates and gets a theme button with a separate on/off label.getThemeToggleButton(@NotNull String labelOn, @NotNull String labelOff, @NotNull net.minecraft.resources.ResourceLocation icon, IThemeButton.Action onPress) Creates and gets a theme toggle button with a separate on/off label.getThemeToggleButton(@NotNull String label, @NotNull net.minecraft.resources.ResourceLocation icon, IThemeButton.Action onPress) Creates and gets a theme toggle button with a separate on/off label.
-
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 resourceLocationonPress- - 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 resourceLocationonPress- - 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 resourceLocationonPress- - 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 resourceLocationonPress- - The onpress action.- Returns:
- IThemeButton
-
getNewToolbar
Gets a new toolbar instance. All the buttons must be added here.- Parameters:
themeButtons- - The theme buttons.- Returns:
- The toolbar instance.
-