类 CycleButton.Builder<T>
java.lang.Object
net.minecraft.client.gui.components.CycleButton.Builder<T>
- 封闭类:
- CycleButton<T>
-
字段概要
字段修饰符和类型字段说明private boolean
private int
private T
private Function<CycleButton<T>,
MutableComponent> private OptionInstance.TooltipSupplier<T>
private CycleButton.ValueListSupplier<T>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明create
(int pX, int pY, int pWidth, int pHeight, Component pName, CycleButton.OnValueChange<T> pOnValueChange) withCustomNarration
(Function<CycleButton<T>, MutableComponent> pNarrationProvider) withInitialValue
(T pInitialValue) withTooltip
(OptionInstance.TooltipSupplier<T> pTooltipSupplier) withValues
(Collection<T> pValues) withValues
(BooleanSupplier pAltListSelector, List<T> pDefaultList, List<T> pSelectedList) withValues
(List<T> pDefaultList, List<T> pSelectedList) withValues
(CycleButton.ValueListSupplier<T> pValues) final CycleButton.Builder<T>
withValues
(T... pValues)
-
字段详细资料
-
initialIndex
private int initialIndex -
initialValue
-
valueStringifier
-
tooltipSupplier
-
narrationProvider
-
values
-
displayOnlyValue
private boolean displayOnlyValue
-
-
构造器详细资料
-
Builder
-
-
方法详细资料
-
withValues
-
withValues
-
withValues
-
withValues
public CycleButton.Builder<T> withValues(BooleanSupplier pAltListSelector, List<T> pDefaultList, List<T> pSelectedList) -
withValues
-
withTooltip
-
withInitialValue
-
withCustomNarration
public CycleButton.Builder<T> withCustomNarration(Function<CycleButton<T>, MutableComponent> pNarrationProvider) -
displayOnlyValue
-
create
-
create
public CycleButton<T> create(int pX, int pY, int pWidth, int pHeight, Component pName, CycleButton.OnValueChange<T> pOnValueChange)
-