net.minecraft.client.gui.components

public class CycleButton<T>

extends AbstractButton

All mapped superinterfaces:

Renderable, GuiEventListener, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier

fsq
net.minecraft.client.gui.components.CycleButton
net.minecraft.class_5676
net.minecraft.unmapped.C_ikfvpkkf
net.minecraft.client.gui.widget.CyclingButtonWidget
net.minecraft.client.gui.widget.button.CyclingButtonWidget

Field summary

Modifier and TypeField
public static final BooleanSupplier
a
DEFAULT_ALT_LIST_SELECTOR
field_27961
f_pkhehiyk
HAS_ALT_DOWN
HAS_ALT_DOWN
private static final List<Boolean>
b
BOOLEAN_OPTIONS
field_27962
f_drnfdszi
BOOLEAN_VALUES
BOOLEAN_VALUES
private final Component
c
name
field_27963
f_curigipy
optionText
optionText
private int
d
index
field_27964
f_skyfeqxy
index
index
private T
f
value
field_27965
f_ibivnqpi
value
value
private final CycleButton$ValueListSupplier<T>
m
values
field_27966
f_ubcidkfh
values
values
private final Function<T, Component>
n
valueStringifier
field_27967
f_mdxlohlo
valueToText
valueToText
private final Function<CycleButton<T>, MutableComponent>
o
narrationProvider
field_27968
f_eyddvhwf
narrationMessageFactory
narrationMessageFactory
private final CycleButton$OnValueChange<T>
p
onValueChange
field_27969
f_buxhlvnr
callback
callback
private final boolean
q
displayOnlyValue
field_27971
f_nbjenoes
optionTextOmitted
optionTextOmitted
private final OptionInstance$TooltipSupplier<T>
r
tooltipSupplier
field_27970
f_jrtxhqoc
tooltipFactory
tooltipFactory

Constructor summary

ModifierConstructor
(int x, int y, int width, int height, Component message, Component optionText, int index, T value, CycleButton$ValueListSupplier<T> values, Function<T, Component> valueToText, Function<CycleButton<T>, MutableComponent> narrationMessageFactory, CycleButton$OnValueChange<T> callback, OptionInstance$TooltipSupplier<T> tooltipFactory, boolean optionTextOmitted)

Method summary

Modifier and TypeMethod
private void
g()
updateTooltip()
method_47403()
m_lycxswnt()
refreshTooltip()
updateTooltip()
public void
b()
onPress()
method_25306()
m_npixagfj()
onPress()
onPress()
private void
a(int arg0)
cycleValue(int arg0)
method_32612(int arg0)
m_nlpdevjj(int arg0)
cycle(int amount)
cycle(int amount)
private T
b(int arg0)
getCycledValue(int arg0)
method_37027(int arg0)
m_mxugbexk(int arg0)
getValue(int offset)
getValue(int offset)
public boolean
a(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
method_25401(double arg0, double arg1, double arg2, double arg3)
m_ztjwzdkn(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
public void
a(T arg0)
setValue(T arg0)
method_32605(T arg0)
m_wanyzkhq(T arg0)
setValue(T value)
setValue(T value)
private void
b(T arg0)
updateValue(T arg0)
method_32609(T arg0)
m_vdgtlpbb(T arg0)
internalSetValue(T value)
internalSetValue(T value)
private Component
c(T arg0)
createLabelForValue(T arg0)
method_37026(T arg0)
m_cqdzljkb(T arg0)
composeText(T value)
composeText(T value)
private MutableComponent
d(T arg0)
createFullName(T arg0)
method_32610(T arg0)
m_jwrniozw(T arg0)
composeGenericOptionText(T value)
composeGenericOptionText(T value)
public T
a()
getValue()
method_32603()
m_zjjuuwww()
getValue()
getValue()
protected MutableComponent
d()
createNarrationMessage()
method_25360()
m_sjpjzqmc()
getNarrationMessage()
getNarrationMessage()
public void
a(fwg arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
m_acsoyrbk(C_pofrkllk arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
updateNarration(NarrationMessageBuilder arg0)
public MutableComponent
c()
createDefaultNarrationMessage()
method_32611()
m_vyqonlij()
getGenericNarrationMessage()
getGenericNarrationMessage()
public static <T> CycleButton$Builder<T>
a(Function<T, wy> arg0)
builder(Function<T, Component> arg0)
method_32606(Function<T, class_2561> arg0)
m_rddtjrbk(Function<T, C_rdaqiwdt> arg0)
builder(Function<T, Text> valueToText)
builder(Function<T, Text> valueToText)
public static CycleButton$Builder<Boolean>
a(wy arg0, wy arg1)
booleanBuilder(Component arg0, Component arg1)
method_32607(class_2561 arg0, class_2561 arg1)
m_jktlprsw(C_rdaqiwdt arg0, C_rdaqiwdt arg1)
onOffBuilder(Text on, Text off)
onOffBuilder(Text on, Text off)
public static CycleButton$Builder<Boolean>
e()
onOffBuilder()
method_32614()
m_wymfsxew()
onOffBuilder()
onOffBuilder()
public static CycleButton$Builder<Boolean>
b(boolean arg0)
onOffBuilder(boolean arg0)
method_32613(boolean arg0)
m_jsgmqbgj(boolean arg0)
onOffBuilder(boolean initialValue)
onOffBuilder(boolean initialValue)