Class FittingMultiLineTextWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollWidget
net.minecraft.client.gui.components.FittingMultiLineTextWidget
- 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
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
ConstructorDescriptionFittingMultiLineTextWidget
(int p_289785_, int p_289777_, int p_289760_, int p_289801_, Component p_289788_, Font p_289781_) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected void
renderBackground
(GuiGraphics p_289758_) protected void
renderContents
(GuiGraphics p_289766_, int p_289790_, int p_289786_, float p_289767_) void
renderWidget
(GuiGraphics p_289802_, int p_289778_, int p_289798_, float p_289804_) protected double
setColor
(int p_289780_) void
setWidth
(int p_289765_) boolean
protected void
updateWidgetNarration
(NarrationElementOutput p_289784_) Methods inherited from class net.minecraft.client.gui.components.AbstractScrollWidget
getMaxScrollAmount, innerPadding, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, renderBorder, renderDecorations, scrollAmount, scrollbarVisible, 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, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, 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, getRectangle, isFocused, isMouseOver, keyReleased, mouseMoved, nextFocusPath, setFocused
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
-
font
-
multilineWidget
-
-
Constructor Details
-
FittingMultiLineTextWidget
-
-
Method Details
-
setColor
-
setWidth
public void setWidth(int p_289765_) - Overrides:
setWidth
in classAbstractWidget
-
getInnerHeight
protected int getInnerHeight()- Specified by:
getInnerHeight
in classAbstractScrollWidget
-
scrollRate
protected double scrollRate()- Specified by:
scrollRate
in classAbstractScrollWidget
-
renderBackground
- Overrides:
renderBackground
in classAbstractScrollWidget
-
renderWidget
- Overrides:
renderWidget
in classAbstractScrollWidget
-
showingScrollBar
public boolean showingScrollBar() -
renderContents
- Specified by:
renderContents
in classAbstractScrollWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-