Class AbstractTextAreaWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
net.minecraft.client.gui.components.AbstractTextAreaWidget
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
,IAbstractWidgetExtension
- Direct Known Subclasses:
FittingMultiLineTextWidget
,MultiLineEditBox
,TelemetryEventWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.components.AbstractScrollArea
SCROLLBAR_WIDTH
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
ConstructorsConstructorDescriptionAbstractTextAreaWidget
(int p_388859_, int p_387520_, int p_387683_, int p_387659_, Component p_386737_) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected abstract int
protected int
protected int
protected int
boolean
isMouseOver
(double p_386839_, double p_388246_) boolean
keyPressed
(int p_388331_, int p_388254_, int p_388465_) boolean
mouseClicked
(double p_387557_, double p_388283_, int p_387326_) void
playDownSound
(SoundManager p_386774_) protected void
renderBackground
(GuiGraphics p_387240_) protected void
renderBorder
(GuiGraphics p_388574_, int p_387898_, int p_387393_, int p_388028_, int p_387158_) protected abstract void
renderContents
(GuiGraphics p_386674_, int p_387663_, int p_388111_, float p_387720_) protected void
renderDecorations
(GuiGraphics p_387032_) void
renderWidget
(GuiGraphics p_386672_, int p_387901_, int p_387577_, float p_387259_) protected int
protected int
protected boolean
withinContentAreaTopBottom
(int p_386967_, int p_387417_) Methods inherited from class net.minecraft.client.gui.components.AbstractScrollArea
maxScrollAmount, mouseDragged, mouseScrolled, onRelease, refreshScrollAmount, renderScrollbar, scrollAmount, scrollbarVisible, scrollBarY, scrollerHeight, scrollRate, setScrollAmount, updateScrolling
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isValidClickButton, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, playButtonClickSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, updateWidgetNarration, 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
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseMoved
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.narration.NarratableEntry
getNarratables
-
Field Details
-
BACKGROUND_SPRITES
-
INNER_PADDING
private static final int INNER_PADDING- See Also:
-
-
Constructor Details
-
AbstractTextAreaWidget
public AbstractTextAreaWidget(int p_388859_, int p_387520_, int p_387683_, int p_387659_, Component p_386737_)
-
-
Method Details
-
mouseClicked
public boolean mouseClicked(double p_387557_, double p_388283_, int p_387326_) - Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classAbstractWidget
-
keyPressed
public boolean keyPressed(int p_388331_, int p_388254_, int p_388465_) -
renderWidget
- Specified by:
renderWidget
in classAbstractWidget
-
renderDecorations
-
innerPadding
protected int innerPadding() -
totalInnerPadding
protected int totalInnerPadding() -
isMouseOver
public boolean isMouseOver(double p_386839_, double p_388246_) - Specified by:
isMouseOver
in interfaceGuiEventListener
- Overrides:
isMouseOver
in classAbstractWidget
-
scrollBarX
protected int scrollBarX()- Overrides:
scrollBarX
in classAbstractScrollArea
-
contentHeight
protected int contentHeight()- Specified by:
contentHeight
in classAbstractScrollArea
-
renderBackground
-
renderBorder
protected void renderBorder(GuiGraphics p_388574_, int p_387898_, int p_387393_, int p_388028_, int p_387158_) -
withinContentAreaTopBottom
protected boolean withinContentAreaTopBottom(int p_386967_, int p_387417_) -
getInnerHeight
protected abstract int getInnerHeight() -
renderContents
protected abstract void renderContents(GuiGraphics p_386674_, int p_387663_, int p_388111_, float p_387720_) -
getInnerLeft
protected int getInnerLeft() -
getInnerTop
protected int getInnerTop() -
playDownSound
- Overrides:
playDownSound
in classAbstractWidget
-