net.minecraft.client.gui.widget

public class EditBoxWidget

extends ScrollableTextFieldWidget

All mapped superinterfaces:

Widget, Drawable, Element, Navigable, Selectable, Narratable

net.minecraft.client.gui.components.MultiLineEditBox
net.minecraft.class_7529
net.minecraft.client.gui.widget.EditBoxWidget

Field summary

Modifier and TypeField
private static final int
CURSOR_COLOR
field_39503
CURSOR_COLOR
private static final int
PLACEHOLDER_TEXT_COLOR
field_39506
UNFOCUSED_BOX_TEXT_COLOR
private final TextRenderer
font
field_39507
textRenderer
private final Text
placeholder
field_39508
placeholder
private final EditBox
textField
field_39509
editBox
private final int
textColor
field_60439
textColor
private final boolean
textShadow
field_60440
textShadow
private final int
cursorColor
field_60441
cursorColor
private ImePreEditWidget
preeditOverlay
field_1_2098
preEditWidget
private long
focusedTime
field_45364
lastSwitchFocusTime

Constructor summary

ModifierConstructor
private (TextRenderer textRenderer, int x, int y, int width, int height, Text placeholder, Text message, int textColor, boolean textShadow, int cursorColor, boolean hasBackground, boolean hasOverlay)

Method summary

Modifier and TypeMethod
public void
setCharacterLimit(int characterLimit)
method_44402(int arg0)
setMaxLength(int maxLength)
public void
setLineLimit(int lineLimit)
method_71506(int arg0)
setMaxLines(int maxLines)
public void
setValueListener(Consumer<String> valueListener)
method_44401(Consumer<String> arg0)
setChangeListener(Consumer<String> changeListener)
public void
setValue(String value)
method_44400(String arg0)
setText(String text)
public void
setValue(String value, boolean allowOverflowLineLimit)
method_72234(String arg0, boolean arg1)
setText(String text, boolean allowOverflow)
public String
getValue()
method_44405()
getText()
public void
updateWidgetNarration(NarrationElementOutput output)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
public void
onClick(MouseButtonEvent event, boolean doubleClick)
method_25348(class_11909 arg0, boolean arg1)
onClick(Click arg0, boolean arg1)
protected void
onDrag(MouseButtonEvent event, double dx, double dy)
method_25349(class_11909 arg0, double arg1, double arg2)
onDrag(Click arg0, double arg1, double arg2)
public boolean
keyPressed(KeyEvent event)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
public boolean
charTyped(CharacterEvent event)
method_25400(class_11905 arg0)
charTyped(CharInput arg0)
public boolean
preeditUpdated(PreeditEvent event)
method_1_2559(class_1_359 arg0)
preEdit(ImePreEditInput arg0)
protected void
extractContents(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_44389(class_332 arg0, int arg1, int arg2, float arg3)
renderContents(DrawContext arg0, int arg1, int arg2, float arg3)
protected void
extractDecorations(GuiGraphicsExtractor graphics)
method_44384(class_332 arg0)
renderOverlay(DrawContext arg0)
public int
getInnerHeight()
method_44391()
getContentsHeight()
private void
scrollToCursor()
method_44407()
onCursorChange()
private void
seekCursorScreen(double x, double y)
method_44404(double arg0, double arg1)
moveCursor(double mouseX, double mouseY)
public void
setFocused(boolean focused)
method_25365(boolean arg0)
setFocused(boolean arg0)
public static EditBoxWidget$Builder
builder()
method_71507()
builder()