Class MultiLineEditBox
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollWidget
net.minecraft.client.gui.components.MultiLineEditBox
- All Implemented Interfaces:
GuiEventListener,Renderable,TabOrderedElement,LayoutElement,NarratableEntry,NarrationSupplier,IAbstractWidgetExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final intprivate static final intprivate static final intprivate longprivate final Fontprivate final Componentprivate static final intprivate static final intprivate final MultilineTextFieldFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionMultiLineEditBox(Font p_239008_, int p_239009_, int p_239010_, int p_239011_, int p_239012_, Component p_239013_, Component p_239014_) -
Method Summary
Modifier and TypeMethodDescriptionbooleancharTyped(char p_239387_, int p_239388_) private doubleintgetValue()booleankeyPressed(int p_239433_, int p_239434_, int p_239435_) booleanmouseClicked(double p_239101_, double p_239102_, int p_239103_) booleanmouseDragged(double p_238978_, double p_238979_, int p_238980_, double p_238981_, double p_238982_) protected voidrenderContents(GuiGraphics p_283676_, int p_281538_, int p_283033_, float p_281767_) protected voidrenderDecorations(GuiGraphics p_282551_) private voidrenderHighlight(GuiGraphics p_282092_, int p_282814_, int p_282908_, int p_281451_, int p_281765_) protected booleanprotected doubleprivate voidprivate voidseekCursorScreen(double p_239276_, double p_239277_) voidsetCharacterLimit(int p_239314_) voidsetFocused(boolean p_295271_) voidvoidsetValueListener(Consumer<String> p_239274_) voidupdateWidgetNarration(NarrationElementOutput p_259393_) Methods inherited from class net.minecraft.client.gui.components.AbstractScrollWidget
getMaxScrollAmount, innerPadding, mouseReleased, mouseScrolled, renderBackground, renderBorder, renderWidget, scrollAmount, scrollbarWidth, setScrollAmount, totalInnerPadding, withinContentAreaPoint, withinContentAreaTopBottomMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getCurrentFocusPath, getRectangle, isFocused, isMouseOver, keyReleased, mouseMoved, nextFocusPathMethods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClickMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.Renderable
renderMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
CURSOR_INSERT_WIDTH
private static final int CURSOR_INSERT_WIDTH- See Also:
-
CURSOR_INSERT_COLOR
private static final int CURSOR_INSERT_COLOR- See Also:
-
CURSOR_APPEND_CHARACTER
- See Also:
-
TEXT_COLOR
private static final int TEXT_COLOR- See Also:
-
PLACEHOLDER_TEXT_COLOR
private static final int PLACEHOLDER_TEXT_COLOR- See Also:
-
CURSOR_BLINK_INTERVAL_MS
private static final int CURSOR_BLINK_INTERVAL_MS- See Also:
-
font
-
placeholder
-
textField
-
focusedTime
private long focusedTime
-
-
Constructor Details
-
MultiLineEditBox
-
-
Method Details
-
setCharacterLimit
public void setCharacterLimit(int p_239314_) -
setValueListener
-
setValue
-
getValue
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
mouseClicked
public boolean mouseClicked(double p_239101_, double p_239102_, int p_239103_) - Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classAbstractScrollWidget
-
mouseDragged
public boolean mouseDragged(double p_238978_, double p_238979_, int p_238980_, double p_238981_, double p_238982_) - Specified by:
mouseDraggedin interfaceGuiEventListener- Overrides:
mouseDraggedin classAbstractScrollWidget
-
keyPressed
public boolean keyPressed(int p_239433_, int p_239434_, int p_239435_) - Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classAbstractScrollWidget
-
charTyped
public boolean charTyped(char p_239387_, int p_239388_) -
renderContents
- Specified by:
renderContentsin classAbstractScrollWidget
-
renderDecorations
- Overrides:
renderDecorationsin classAbstractScrollWidget
-
getInnerHeight
public int getInnerHeight()- Specified by:
getInnerHeightin classAbstractScrollWidget
-
scrollbarVisible
protected boolean scrollbarVisible()- Overrides:
scrollbarVisiblein classAbstractScrollWidget
-
scrollRate
protected double scrollRate()- Specified by:
scrollRatein classAbstractScrollWidget
-
renderHighlight
private void renderHighlight(GuiGraphics p_282092_, int p_282814_, int p_282908_, int p_281451_, int p_281765_) -
scrollToCursor
private void scrollToCursor() -
getDisplayableLineCount
private double getDisplayableLineCount() -
seekCursorScreen
private void seekCursorScreen(double p_239276_, double p_239277_) -
setFocused
public void setFocused(boolean p_295271_) - Specified by:
setFocusedin interfaceGuiEventListener- Overrides:
setFocusedin classAbstractWidget
-