net.minecraft.client.gui.widget

public abstract class ButtonWidget

extends PressableWidget

All mapped superinterfaces:

Widget, Drawable, Element, Navigable, Selectable, Narratable

net.minecraft.client.gui.components.Button
net.minecraft.class_4185
net.minecraft.client.gui.widget.ButtonWidget

Field summary

Modifier and TypeField
public static final int
SMALL_WIDTH
field_39499
DEFAULT_WIDTH_SMALL
public static final int
DEFAULT_WIDTH
field_39500
DEFAULT_WIDTH
public static final int
BIG_WIDTH
field_49479
field_49479
public static final int
DEFAULT_HEIGHT
field_39501
DEFAULT_HEIGHT
public static final int
DEFAULT_SPACING
field_46856
field_46856
protected static final ButtonWidget$NarrationSupplier
DEFAULT_NARRATION
field_40754
DEFAULT_NARRATION_SUPPLIER
protected final ButtonWidget$PressAction
onPress
field_22767
onPress
protected final ButtonWidget$NarrationSupplier
createNarration
field_40755
narrationSupplier

Constructor summary

ModifierConstructor
protected (int x, int y, int width, int height, Text message, ButtonWidget$PressAction onPress, ButtonWidget$NarrationSupplier narrationSupplier)

Method summary

Modifier and TypeMethod
public static ButtonWidget$Builder
builder(Component message, Button$OnPress onPress)
method_46430(class_2561 arg0, class_4185$class_4241 arg1)
builder(Text message, ButtonWidget$PressAction onPress)
public void
onPress(InputWithModifiers input)
method_25306(class_11907 arg0)
onPress(AbstractInput arg0)
protected MutableText
createNarrationMessage()
method_25360()
getNarrationMessage()
public void
updateWidgetNarration(NarrationElementOutput output)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
private MutableText
lambda$createNarrationMessage$1()
method_46428()
method_46428()
private static MutableText
lambda$static$0(Supplier arg0)
method_46429(Supplier arg0)
method_46429(Supplier textSupplier)