Class MultiLineTextWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractStringWidget
net.minecraft.client.gui.components.MultiLineTextWidget
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
,IAbstractWidgetExtension
- Direct Known Subclasses:
FocusableTextWidget
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SingleKeyCache<MultiLineTextWidget.CacheKey,
MultiLineLabel> private boolean
private OptionalInt
private OptionalInt
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
ConstructorDescriptionMultiLineTextWidget
(int p_270325_, int p_270355_, Component p_270069_, Font p_270673_) MultiLineTextWidget
(Component p_270532_, Font p_270639_) -
Method Summary
Modifier and TypeMethodDescriptionprivate MultiLineTextWidget.CacheKey
int
int
getWidth()
void
renderWidget
(GuiGraphics p_282535_, int p_261774_, int p_261640_, float p_261514_) setCentered
(boolean p_270493_) setColor
(int p_270378_) setMaxRows
(int p_270085_) setMaxWidth
(int p_270776_) Methods inherited from class net.minecraft.client.gui.components.AbstractStringWidget
getColor, getFont, updateWidgetNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, 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
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClick
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
maxWidth
-
maxRows
-
cache
-
centered
private boolean centered
-
-
Constructor Details
-
MultiLineTextWidget
-
MultiLineTextWidget
-
-
Method Details
-
setColor
- Overrides:
setColor
in classAbstractStringWidget
-
setMaxWidth
-
setMaxRows
-
setCentered
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceLayoutElement
- Overrides:
getWidth
in classAbstractWidget
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceLayoutElement
- Overrides:
getHeight
in classAbstractWidget
-
renderWidget
- Specified by:
renderWidget
in classAbstractWidget
-
getFreshCacheKey
-