Class MultiLineTextWidget
java.lang.Object
net.minecraft.client.gui.GuiComponent
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
- Direct Known Subclasses:
AccessibilityOnboardingTextWidget
-
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
ACCESSIBILITY_TEXTURE, 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, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
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
(PoseStack p_261473_, 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, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getMessage, getRectangle, getTabOrderGroup, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderTexture, setAlpha, setFGColor, setFocused, setHeight, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, 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
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
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
-