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
-
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
ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, 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_) 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, setScrollAmount, totalInnerPadding, withinContentAreaPoint, withinContentAreaTopBottom
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderTexture, setAlpha, setFGColor, setFocused, setHeight, setMessage, 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.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
-
renderContents
- Specified by:
renderContents
in classAbstractScrollWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-