Uses of Class
net.minecraft.client.gui.widget.CyclingButtonWidget.Builder
Packages that use CyclingButtonWidget.Builder
-
Uses of CyclingButtonWidget.Builder in net.minecraft.client.gui.widget
Methods in net.minecraft.client.gui.widget that return CyclingButtonWidget.BuilderModifier 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.final CyclingButtonWidget.Builder<T>
Sets the option values for this button. -
Uses of CyclingButtonWidget.Builder in net.minecraft.client.option
Fields in net.minecraft.client.option with type parameters of type CyclingButtonWidget.BuilderModifier and TypeFieldDescriptionprivate final Supplier<CyclingButtonWidget.Builder<T>>
CyclingOption.buttonBuilderFactory
Constructor parameters in net.minecraft.client.option with type arguments of type CyclingButtonWidget.BuilderModifierConstructorDescriptionprivate
CyclingOption
(String key, Function<GameOptions, T> getter, CyclingOption.Setter<T> setter, Supplier<CyclingButtonWidget.Builder<T>> buttonBuilderFactory)