public interface ThemeButtonDisplay
| Modifier and Type | Method and Description |
|---|---|
IThemeButton |
addThemeButton(@NotNull java.lang.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.
|
IThemeButton |
addThemeButton(@NotNull java.lang.String labelOn,
@NotNull java.lang.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.
|
IThemeButton |
addThemeToggleButton(@NotNull java.lang.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.
|
IThemeButton |
addThemeToggleButton(@NotNull java.lang.String labelOn,
@NotNull java.lang.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.
|
IThemeButton addThemeToggleButton(@NotNull @NotNull java.lang.String labelOn, @NotNull @NotNull java.lang.String labelOff, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, boolean toggled, @NotNull IThemeButton.Action onPress)
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.IThemeButton addThemeButton(@NotNull @NotNull java.lang.String labelOn, @NotNull @NotNull java.lang.String labelOff, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, @NotNull IThemeButton.Action onPress)
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.IThemeButton addThemeToggleButton(@NotNull @NotNull java.lang.String label, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, boolean toggled, @NotNull IThemeButton.Action onPress)
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.IThemeButton addThemeButton(@NotNull @NotNull java.lang.String label, @NotNull @NotNull net.minecraft.resources.ResourceLocation icon, @NotNull IThemeButton.Action onPress)
label - - The label, can be the display string or i18n key.icon - - The icon name. Icon ResourceLocationonPress - - The onpress action.