Class MultiLineEditBox
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollWidget
net.minecraft.client.gui.components.MultiLineEditBox
- All Implemented Interfaces:
GuiEventListener
,Renderable
,NarratableEntry
,NarrationSupplier
-
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 final Font
private int
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, WIDGETS_LOCATION, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
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
(PoseStack p_239001_, int p_239002_, int p_239003_, float p_239004_) protected void
renderDecorations
(PoseStack p_239517_) private void
renderHighlight
(PoseStack p_239487_, int p_239488_, int p_239489_, int p_239490_, int p_239491_) protected boolean
protected double
private void
private void
seekCursorScreen
(double p_239276_, double p_239277_) void
setCharacterLimit
(int p_239314_) void
void
setValueListener
(Consumer<String> p_239274_) void
tick()
void
updateWidgetNarration
(NarrationElementOutput p_259393_) Methods inherited from class net.minecraft.client.gui.components.AbstractScrollWidget
getMaxScrollAmount, innerPadding, mouseReleased, mouseScrolled, renderButton, scrollAmount, setScrollAmount, totalInnerPadding, withinContentAreaPoint, withinContentAreaTopBottom
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
changeFocus, clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getX, getY, getYImage, isActive, isFocused, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setPosition, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, wrapDefaultNarrationMessage
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
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
changeFocus, isMouseOver, keyReleased, mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.Renderable
render
-
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:
-
font
-
placeholder
-
textField
-
frame
private int frame
-
-
Constructor Details
-
MultiLineEditBox
-
-
Method Details
-
setCharacterLimit
public void setCharacterLimit(int p_239314_) -
setValueListener
-
setValue
-
getValue
-
tick
public void tick() -
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_) -
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()- Specified by:
scrollbarVisible
in classAbstractScrollWidget
-
scrollRate
protected double scrollRate()- Specified by:
scrollRate
in classAbstractScrollWidget
-
renderHighlight
private void renderHighlight(PoseStack p_239487_, int p_239488_, int p_239489_, int p_239490_, int p_239491_) -
scrollToCursor
private void scrollToCursor() -
getDisplayableLineCount
private double getDisplayableLineCount() -
seekCursorScreen
private void seekCursorScreen(double p_239276_, double p_239277_)
-