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
Modifier and TypeFieldDescriptionprivate static final String
private static final int
private static final int
private static final int
private long
private final Font
private final Component
private static final int
private static final int
private final MultilineTextField
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionMultiLineEditBox
(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 TypeMethodDescriptionboolean
charTyped
(char p_239387_, int p_239388_) private double
int
getValue()
boolean
keyPressed
(int p_239433_, int p_239434_, int p_239435_) boolean
mouseClicked
(double p_239101_, double p_239102_, int p_239103_) boolean
mouseDragged
(double p_238978_, double p_238979_, int p_238980_, double p_238981_, double p_238982_) protected void
renderContents
(GuiGraphics p_283676_, int p_281538_, int p_283033_, float p_281767_) protected void
renderDecorations
(GuiGraphics p_282551_) private void
renderHighlight
(GuiGraphics p_282092_, int p_282814_, int p_282908_, int p_281451_, int p_281765_) protected boolean
protected double
private void
private void
seekCursorScreen
(double p_239276_, double p_239277_) void
setCharacterLimit
(int p_239314_) void
setFocused
(boolean p_295271_) void
void
setValueListener
(Consumer<String> p_239274_) void
updateWidgetNarration
(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, withinContentAreaTopBottom
Methods 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, wrapDefaultNarrationMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getCurrentFocusPath, getRectangle, isFocused, isMouseOver, keyReleased, mouseMoved, nextFocusPath
Methods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClick
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
Methods inherited from interface net.minecraft.client.gui.components.Renderable
render
Methods 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:
updateWidgetNarration
in classAbstractWidget
-
mouseClicked
public boolean mouseClicked(double p_239101_, double p_239102_, int p_239103_) - Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classAbstractScrollWidget
-
mouseDragged
public boolean mouseDragged(double p_238978_, double p_238979_, int p_238980_, double p_238981_, double p_238982_) - Specified by:
mouseDragged
in interfaceGuiEventListener
- Overrides:
mouseDragged
in classAbstractScrollWidget
-
keyPressed
public boolean keyPressed(int p_239433_, int p_239434_, int p_239435_) - Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classAbstractScrollWidget
-
charTyped
public boolean charTyped(char p_239387_, int p_239388_) -
renderContents
- Specified by:
renderContents
in classAbstractScrollWidget
-
renderDecorations
- Overrides:
renderDecorations
in classAbstractScrollWidget
-
getInnerHeight
public int getInnerHeight()- Specified by:
getInnerHeight
in classAbstractScrollWidget
-
scrollbarVisible
protected boolean scrollbarVisible()- Overrides:
scrollbarVisible
in classAbstractScrollWidget
-
scrollRate
protected double scrollRate()- Specified by:
scrollRate
in 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:
setFocused
in interfaceGuiEventListener
- Overrides:
setFocused
in classAbstractWidget
-