Class CycleButton.Builder<T>
java.lang.Object
net.minecraft.client.gui.components.CycleButton.Builder<T>
- Enclosing class:
- CycleButton<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private int
private T
private Function<CycleButton<T>,
MutableComponent> private OptionInstance.TooltipSupplier<T>
private CycleButton.ValueListSupplier<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(int p_168937_, int p_168938_, int p_168939_, int p_168940_, Component p_168941_, CycleButton.OnValueChange<T> p_168942_) withCustomNarration
(Function<CycleButton<T>, MutableComponent> p_168960_) withInitialValue
(T p_168949_) withTooltip
(OptionInstance.TooltipSupplier<T> p_232499_) withValues
(Collection<T> p_232503_) withValues
(BooleanSupplier p_168956_, List<T> p_168957_, List<T> p_168958_) withValues
(List<T> p_168953_, List<T> p_168954_) withValues
(CycleButton.ValueListSupplier<T> p_232501_) final CycleButton.Builder<T>
withValues
(T... p_168962_)
-
Field Details
-
initialIndex
private int initialIndex -
initialValue
-
valueStringifier
-
tooltipSupplier
-
narrationProvider
-
values
-
displayOnlyValue
private boolean displayOnlyValue
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withValues
-
withValues
-
withValues
-
withValues
public CycleButton.Builder<T> withValues(BooleanSupplier p_168956_, List<T> p_168957_, List<T> p_168958_) -
withValues
-
withTooltip
-
withInitialValue
-
withCustomNarration
public CycleButton.Builder<T> withCustomNarration(Function<CycleButton<T>, MutableComponent> p_168960_) -
displayOnlyValue
-
create
public CycleButton<T> create(int p_168931_, int p_168932_, int p_168933_, int p_168934_, Component p_168935_) -
create
public CycleButton<T> create(int p_168937_, int p_168938_, int p_168939_, int p_168940_, Component p_168941_, CycleButton.OnValueChange<T> p_168942_)
-