net.minecraft.client.gui.widget

public abstract class AbstractCyclingButtonWidget<Value>

extends PressableWidget implements Updatable

All mapped superinterfaces:

Widget, Drawable, Element, Navigable, Selectable, Narratable, Updatable

net.minecraft.client.gui.components.AbstractCycleButton
net.minecraft.class_5676
net.minecraft.client.gui.widget.AbstractCyclingButtonWidget

Field summary

Modifier and TypeField
public static final BooleanSupplier
DEFAULT_ALT_LIST_SELECTOR
field_27961
HAS_ALT_DOWN
protected final Supplier<Value>
defaultValueSupplier
field_63504
valueSupplier
protected final Text
name
field_27963
optionText
protected int
index
field_27964
index
protected Value
value
field_27965
value
protected final AbstractCyclingButtonWidget$Values<Value>
values
field_27966
values
protected final Function<Value, Text>
valueStringifier
field_27967
valueToText
protected final AbstractCyclingButtonWidget$UpdateCallback<Value>
onValueChange
field_27969
callback
protected final SimpleOption$TooltipFactory<Value>
tooltipSupplier
field_27970
tooltipFactory

Constructor summary

ModifierConstructor
public (int x, int y, int width, int height, Text optionText, int index, Value value, Supplier<Value> valueSupplier, AbstractCyclingButtonWidget$Values<Value> values, Function<Value, Text> valueToText, AbstractCyclingButtonWidget$UpdateCallback<Value> callback, SimpleOption$TooltipFactory<Value> tooltipFactory)

Method summary

Modifier and TypeMethod
protected void
updateTooltip()
method_47403()
refreshTooltip()
public void
onPress(InputWithModifiers input)
method_25306(class_11907 arg0)
onPress(AbstractInput arg0)
private void
cycleValue(int delta)
method_32612(int arg0)
cycle(int amount)
protected Value
getCycledValue(int delta)
method_37027(int arg0)
getValue(int offset)
public boolean
mouseScrolled(double x, double y, double scrollX, double scrollY)
method_25401(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
public void
setValue(Value newValue)
method_32605(Value arg0)
setValue(Value value)
public void
resetValue()
method_75314()
update()
protected void
updateValue(Value newValue)
method_32609(Value arg0)
internalSetValue(Value value)
public Value
getValue()
method_32603()
getValue()
protected Text
createLabelForValue(Value newValue)
method_37026(Value arg0)
composeText(Value value)
protected MutableText
createFullName(Value newValue)
method_32610(Value arg0)
composeGenericOptionText(Value value)
public void
updateWidgetNarration(NarrationElementOutput output)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
private static boolean
lambda$static$0()
method_75350()
method_75350()