net.minecraft.client.gui.components

public class CycleButton$Builder<T>

fom$a
net.minecraft.client.gui.components.CycleButton$Builder
net.minecraft.class_5676$class_5677
net.minecraft.client.gui.widget.CyclingButtonWidget$Builder

Field summary

Modifier and TypeField
private int
a
initialIndex
field_27972
initialIndex
private T
b
initialValue
field_27973
value
private final Function<T, Component>
c
valueStringifier
field_27974
valueToText
private OptionInstance$TooltipSupplier<T>
d
tooltipSupplier
field_27975
tooltipFactory
private Function<CycleButton<T>, MutableComponent>
e
narrationProvider
field_27976
narrationMessageFactory
private CycleButton$ValueListSupplier<T>
f
values
field_27977
values
private boolean
g
displayOnlyValue
field_27978
optionTextOmitted

Constructor summary

ModifierConstructor
public (Function<T, Component> valueToText)

Method summary

Modifier and TypeMethod
public CycleButton$Builder<T>
a(Collection<T> arg0)
withValues(Collection<T> arg0)
method_32620(Collection<T> arg0)
values(Collection<T> values)
public final CycleButton$Builder<T>
a(T... arg0)
withValues(T... arg0)
method_32624(T... arg0)
values(T... values)
public CycleButton$Builder<T>
a(List<T> arg0, List<T> arg1)
withValues(List<T> arg0, List<T> arg1)
method_32621(List<T> arg0, List<T> arg1)
values(List<T> defaults, List<T> alternatives)
public CycleButton$Builder<T>
a(BooleanSupplier arg0, List<T> arg1, List<T> arg2)
withValues(BooleanSupplier arg0, List<T> arg1, List<T> arg2)
method_32622(BooleanSupplier arg0, List<T> arg1, List<T> arg2)
values(BooleanSupplier alternativeToggle, List<T> defaults, List<T> alternatives)
public CycleButton$Builder<T>
a(fom$c<T> arg0)
withValues(CycleButton$ValueListSupplier<T> arg0)
method_42729(class_5676$class_5680<T> arg0)
values(CyclingButtonWidget$Values<T> values)
public CycleButton$Builder<T>
a(fmj$l<T> arg0)
withTooltip(OptionInstance$TooltipSupplier<T> arg0)
method_32618(class_7172$class_7277<T> arg0)
tooltip(SimpleOption$TooltipFactory<T> tooltipFactory)
public CycleButton$Builder<T>
a(T arg0)
withInitialValue(T arg0)
method_32619(T arg0)
initially(T value)
public CycleButton$Builder<T>
a(Function<fom<T>, yj> arg0)
withCustomNarration(Function<CycleButton<T>, MutableComponent> arg0)
method_32623(Function<class_5676<T>, class_5250> arg0)
narration(Function<CyclingButtonWidget<T>, MutableText> narrationMessageFactory)
public CycleButton$Builder<T>
a()
displayOnlyValue()
method_32616()
omitKeyText()
public CycleButton<T>
a(xv arg0, fom$b<T> arg1)
create(Component arg0, CycleButton$OnValueChange<T> arg1)
method_57720(class_2561 arg0, class_5676$class_5678<T> arg1)
build(Text optionText, CyclingButtonWidget$UpdateCallback<T> callback)
public CycleButton<T>
a(int arg0, int arg1, int arg2, int arg3, xv arg4)
create(int arg0, int arg1, int arg2, int arg3, Component arg4)
method_35723(int arg0, int arg1, int arg2, int arg3, class_2561 arg4)
build(int x, int y, int width, int height, Text optionText)
public CycleButton<T>
a(int arg0, int arg1, int arg2, int arg3, xv arg4, fom$b<T> arg5)
create(int arg0, int arg1, int arg2, int arg3, Component arg4, CycleButton$OnValueChange<T> arg5)
method_32617(int arg0, int arg1, int arg2, int arg3, class_2561 arg4, class_5676$class_5678<T> arg5)
build(int x, int y, int width, int height, Text optionText, CyclingButtonWidget$UpdateCallback<T> callback)