Class CycleButton.Builder<T>
java.lang.Object
net.minecraft.client.gui.components.CycleButton.Builder<T>
- Enclosing class:
CycleButton<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate Tprivate Function<CycleButton<T>, MutableComponent> private OptionInstance.TooltipSupplier<T> private CycleButton.ValueListSupplier<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(int x, int y, int width, int height, Component name, CycleButton.OnValueChange<T> onValueChange) create(Component message, CycleButton.OnValueChange<T> onValueChange) withCustomNarration(Function<CycleButton<T>, MutableComponent> narrationProvider) withInitialValue(T initialValue) withTooltip(OptionInstance.TooltipSupplier<T> tooltipSupplier) withValues(Collection<T> values) withValues(BooleanSupplier altListSelector, List<T> defaultList, List<T> selectedList) withValues(List<T> defaultList, List<T> selectedList) withValues(CycleButton.ValueListSupplier<T> values) final CycleButton.Builder<T> withValues(T... values)
-
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 altListSelector, List<T> defaultList, List<T> selectedList) -
withValues
-
withTooltip
-
withInitialValue
-
withCustomNarration
public CycleButton.Builder<T> withCustomNarration(Function<CycleButton<T>, MutableComponent> narrationProvider) -
displayOnlyValue
-
create
-
create
-
create
public CycleButton<T> create(int x, int y, int width, int height, Component name, CycleButton.OnValueChange<T> onValueChange)
-