Class CycleButton.Builder<T>
java.lang.Object
net.minecraft.client.gui.components.CycleButton.Builder<T>
- Enclosing class:
- CycleButton<T>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate Tprivate Function<CycleButton<T>,MutableComponent> private OptionInstance.TooltipSupplier<T>private CycleButton.ValueListSupplier<T>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
initialIndexprivate int initialIndex
- 
initialValue
- 
valueStringifier
- 
tooltipSupplier
- 
narrationProvider
- 
values
- 
displayOnlyValueprivate boolean displayOnlyValue
 
- 
- 
Constructor Details- 
Builder
 
- 
- 
Method Details- 
withValues
- 
withValues
- 
withValues
- 
withValuespublic CycleButton.Builder<T> withValues(BooleanSupplier p_168956_, List<T> p_168957_, List<T> p_168958_) 
- 
withValues
- 
withTooltip
- 
withInitialValue
- 
withCustomNarrationpublic CycleButton.Builder<T> withCustomNarration(Function<CycleButton<T>, MutableComponent> p_168960_) 
- 
displayOnlyValue
- 
createpublic CycleButton<T> create(int p_168931_, int p_168932_, int p_168933_, int p_168934_, Component p_168935_) 
- 
createpublic CycleButton<T> create(int p_168937_, int p_168938_, int p_168939_, int p_168940_, Component p_168941_, CycleButton.OnValueChange<T> p_168942_) 
 
-