Uses of Class
net.minecraft.client.gui.widget.CyclingButtonWidget.Builder
-
Uses of CyclingButtonWidget.Builder in net.minecraft.client.gui.widget
Modifier and TypeMethodDescriptionstatic <T> CyclingButtonWidget.Builder<T>
Creates a new builder for a cycling button widget.Sets the initial value of this button widget.CyclingButtonWidget.Builder.narration(Function<CyclingButtonWidget<T>,MutableText> narrationMessageFactory)
Overrides the narration message of the button to build.CyclingButtonWidget.Builder.omitKeyText()
Makes the built button omit the option and only display the current value for its text, such as showing "Jump Mode" than "Mode: Jump Mode".static CyclingButtonWidget.Builder<Boolean>
CyclingButtonWidget.onOffBuilder()
Creates a builder for a cycling button widget that only has Boolean.TRUE and Boolean.FALSE values.static CyclingButtonWidget.Builder<Boolean>
CyclingButtonWidget.onOffBuilder(boolean initialValue)
Creates a builder for a cycling button widget that only has Boolean.TRUE and Boolean.FALSE values.static CyclingButtonWidget.Builder<Boolean>
CyclingButtonWidget.onOffBuilder(Text on, Text off)
Creates a builder for a cycling button widget that only has Boolean.TRUE and Boolean.FALSE values.CyclingButtonWidget.Builder.tooltip(CyclingButtonWidget.TooltipFactory<T> tooltipFactory)
Sets the tooltip factory that provides tooltips for any of the values.CyclingButtonWidget.Builder.values(BooleanSupplier alternativeToggle, List<T> defaults, List<T> alternatives)
Sets the option values for this button.Sets the option values for this button.Sets the option values for this button.Sets the option values for this button. -
Uses of CyclingButtonWidget.Builder in net.minecraft.client.option
Modifier and TypeFieldDescriptionprivate Supplier<CyclingButtonWidget.Builder<T>>
CyclingOption.buttonBuilderFactory
ModifierConstructorDescriptionprivate
CyclingOption(String key, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter, Supplier<CyclingButtonWidget.Builder<T>> buttonBuilderFactory)