net.minecraft.client.gui.components

public class CycleButton$Builder<T>

esx$a
net.minecraft.client.gui.components.CycleButton$Builder
net.minecraft.class_5676$class_5677
net.minecraft.client.gui.widget.CyclingButtonWidget$Builder
net.minecraft.src.C_141591_$C_141592_

Field summary

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

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)
m_232502_(Collection<T> arg0)
public final CycleButton$Builder<T>
a(T... arg0)
withValues(T... arg0)
method_32624(T... arg0)
values(T... values)
m_168961_(T... arg0)
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)
m_168952_(List<T> p_168954_, List<T> arg1)
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)
m_168955_(BooleanSupplier p_168957_, List<T> p_168958_, List<T> arg2)
public CycleButton$Builder<T>
a(esx$c<T> arg0)
withValues(CycleButton$ValueListSupplier<T> arg0)
method_42729(class_5676$class_5680<T> arg0)
values(CyclingButtonWidget$Values<T> values)
m_232500_(C_141591_$C_141595_<T> arg0)
public CycleButton$Builder<T>
a(eqy$l<T> arg0)
withTooltip(OptionInstance$TooltipSupplier<T> arg0)
method_32618(class_7172$class_7277<T> arg0)
tooltip(SimpleOption$TooltipFactory<T> tooltipFactory)
m_232498_(C_213334_$C_213348_<T> arg0)
public CycleButton$Builder<T>
a(T arg0)
withInitialValue(T arg0)
method_32619(T arg0)
initially(T value)
m_168948_(T arg0)
public CycleButton$Builder<T>
a(Function<esx<T>, ty> arg0)
withCustomNarration(Function<CycleButton<T>, MutableComponent> arg0)
method_32623(Function<class_5676<T>, class_5250> arg0)
narration(Function<CyclingButtonWidget<T>, MutableText> narrationMessageFactory)
m_168959_(Function<C_141591_<T>, C_5012_> arg0)
public CycleButton$Builder<T>
a()
displayOnlyValue()
method_32616()
omitKeyText()
m_168929_()
public CycleButton<T>
a(int arg0, int arg1, int arg2, int arg3, tl 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)
m_168930_(int p_168932_, int p_168933_, int p_168934_, int p_168935_, C_4996_ arg4)
public CycleButton<T>
a(int arg0, int arg1, int arg2, int arg3, tl arg4, esx$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)
m_168936_(int p_168938_, int p_168939_, int p_168940_, int p_168941_, C_4996_ p_168942_, C_141591_$C_141593_<T> arg5)