net.minecraft.client.gui.widget

public class CyclingButtonWidget<T>

extends PressableWidget

All mapped superinterfaces:

Drawable, Element, Navigable, Widget, Selectable, Narratable

fxv
net.minecraft.client.gui.components.CycleButton
net.minecraft.class_5676
net.minecraft.client.gui.widget.CyclingButtonWidget
net.minecraft.unmapped.C_ikfvpkkf
net.minecraft.client.gui.widget.button.CyclingButtonWidget
net.minecraft.src.C_141591_

Field summary

Modifier and TypeField
public static final BooleanSupplier
a
DEFAULT_ALT_LIST_SELECTOR
field_27961
HAS_ALT_DOWN
f_pkhehiyk
HAS_ALT_DOWN
f_168856_
private static final List<Boolean>
b
BOOLEAN_OPTIONS
field_27962
BOOLEAN_VALUES
f_drnfdszi
BOOLEAN_VALUES
f_168857_
private final Text
c
name
field_27963
optionText
f_curigipy
optionText
f_168858_
private int
d
index
field_27964
index
f_skyfeqxy
index
f_168859_
private T
f
value
field_27965
value
f_ibivnqpi
value
f_168860_
private final CyclingButtonWidget$Values<T>
m
values
field_27966
values
f_ubcidkfh
values
f_168861_
private final Function<T, Text>
n
valueStringifier
field_27967
valueToText
f_mdxlohlo
valueToText
f_168862_
private final Function<CyclingButtonWidget<T>, MutableText>
o
narrationProvider
field_27968
narrationMessageFactory
f_eyddvhwf
narrationMessageFactory
f_168863_
private final CyclingButtonWidget$UpdateCallback<T>
p
onValueChange
field_27969
callback
f_buxhlvnr
callback
f_168864_
private final boolean
q
displayOnlyValue
field_27971
optionTextOmitted
f_nbjenoes
optionTextOmitted
f_168866_
private final SimpleOption$TooltipFactory<T>
r
tooltipSupplier
field_27970
tooltipFactory
f_jrtxhqoc
tooltipFactory
f_168865_

Constructor summary

ModifierConstructor
(int x, int y, int width, int height, Text message, Text optionText, int index, T value, CyclingButtonWidget$Values<T> values, Function<T, Text> valueToText, Function<CyclingButtonWidget<T>, MutableText> narrationMessageFactory, CyclingButtonWidget$UpdateCallback<T> callback, SimpleOption$TooltipFactory<T> tooltipFactory, boolean optionTextOmitted)

Method summary

Modifier and TypeMethod
private void
g()
updateTooltip()
method_47403()
refreshTooltip()
m_lycxswnt()
updateTooltip()
m_257795_()
public void
b()
onPress()
method_25306()
onPress()
m_npixagfj()
onPress()
m_5691_()
private void
a(int arg0)
cycleValue(int arg0)
method_32612(int arg0)
cycle(int amount)
m_nlpdevjj(int arg0)
cycle(int amount)
m_168908_(int arg0)
private T
b(int arg0)
getCycledValue(int arg0)
method_37027(int arg0)
getValue(int offset)
m_mxugbexk(int arg0)
getValue(int offset)
m_168914_(int arg0)
public boolean
a(double o, double o, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
method_25401(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(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)
m_6050_(double p_168886_, double p_300536_, double arg2, double arg3)
public void
a(T arg0)
setValue(T arg0)
method_32605(T arg0)
setValue(T value)
m_wanyzkhq(T arg0)
setValue(T value)
m_168892_(T arg0)
private void
b(T arg0)
updateValue(T arg0)
method_32609(T arg0)
internalSetValue(T value)
m_vdgtlpbb(T arg0)
internalSetValue(T value)
m_168905_(T arg0)
private Text
c(T arg0)
createLabelForValue(T arg0)
method_37026(T arg0)
composeText(T value)
m_cqdzljkb(T arg0)
composeText(T value)
m_168910_(T arg0)
private MutableText
d(T arg0)
createFullName(T arg0)
method_32610(T arg0)
composeGenericOptionText(T value)
m_jwrniozw(T arg0)
composeGenericOptionText(T value)
m_168912_(T arg0)
public T
a()
getValue()
method_32603()
getValue()
m_zjjuuwww()
getValue()
m_168883_()
protected MutableText
d()
createNarrationMessage()
method_25360()
getNarrationMessage()
m_sjpjzqmc()
getNarrationMessage()
m_5646_()
public void
a(gbt arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
m_acsoyrbk(C_pofrkllk arg0)
updateNarration(NarrationMessageBuilder arg0)
m_168797_(C_141608_ arg0)
public MutableText
c()
createDefaultNarrationMessage()
method_32611()
getGenericNarrationMessage()
m_vyqonlij()
getGenericNarrationMessage()
m_168904_()
public static <T> CyclingButtonWidget$Builder<T>
a(Function<T, xo> o)
builder(Function<T, Component> arg0)
method_32606(Function<T, class_2561> arg0)
builder(Function<T, Text> valueToText)
m_rddtjrbk(Function<T, C_rdaqiwdt> arg0)
builder(Function<T, Text> valueToText)
m_168894_(Function<T, C_4996_> p_168895_)
public static CyclingButtonWidget$Builder<Boolean>
a(xo o, xo o)
booleanBuilder(Component arg0, Component arg1)
method_32607(class_2561 arg0, class_2561 arg1)
onOffBuilder(Text on, Text off)
m_jktlprsw(C_rdaqiwdt arg0, C_rdaqiwdt arg1)
onOffBuilder(Text on, Text off)
m_168896_(C_4996_ p_168897_, C_4996_ p_168898_)
public static CyclingButtonWidget$Builder<Boolean>
e()
onOffBuilder()
method_32614()
onOffBuilder()
m_wymfsxew()
onOffBuilder()
m_168919_()
public static CyclingButtonWidget$Builder<Boolean>
b(boolean o)
onOffBuilder(boolean arg0)
method_32613(boolean arg0)
onOffBuilder(boolean initialValue)
m_jsgmqbgj(boolean arg0)
onOffBuilder(boolean initialValue)
m_168916_(boolean p_168917_)