Class FittingMultiLineTextWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
net.minecraft.client.gui.components.AbstractTextAreaWidget
net.minecraft.client.gui.components.FittingMultiLineTextWidget
- All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractScrollArea
AbstractScrollArea.ScrollbarSettingsNested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsFields inherited from class AbstractTextAreaWidget
DEFAULT_TOTAL_PADDINGFields inherited from class AbstractScrollArea
SCROLLBAR_WIDTHFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionFittingMultiLineTextWidget(int x, int y, int width, int height, Component message, Font font) -
Method Summary
Modifier and TypeMethodDescriptionprotected intvoidprotected voidrenderBackground(GuiGraphics graphics) protected voidrenderContents(GuiGraphics graphics, int mouseX, int mouseY, float a) voidsetMessage(Component message) voidsetWidth(int width) booleanprotected voidMethods inherited from class AbstractTextAreaWidget
contentHeight, getInnerLeft, getInnerTop, innerPadding, isMouseOver, keyPressed, mouseClicked, playDownSound, renderBorder, renderDecorations, renderWidget, scrollBarX, totalInnerPadding, withinContentAreaTopBottomMethods inherited from class AbstractScrollArea
defaultSettings, isOverScrollbar, maxScrollAmount, mouseDragged, mouseScrolled, onRelease, refreshScrollAmount, renderScrollbar, scrollable, scrollAmount, scrollbarWidth, scrollBarY, scrollerHeight, scrollRate, setScrollAmount, updateScrollingMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isFocused, isHovered, isHoveredOrFocused, isValidClickButton, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, playButtonClickSound, render, renderScrollingStringOverContents, setAlpha, setFGColor, setFocused, setHeight, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface NarratableEntry
getNarratables
-
Field Details
-
multilineWidget
-
-
Constructor Details
-
FittingMultiLineTextWidget
-
-
Method Details
-
setWidth
public void setWidth(int width) - Overrides:
setWidthin classAbstractWidget
-
getInnerHeight
protected int getInnerHeight()- Specified by:
getInnerHeightin classAbstractTextAreaWidget
-
minimizeHeight
public void minimizeHeight() -
renderBackground
- Overrides:
renderBackgroundin classAbstractTextAreaWidget
-
showingScrollBar
public boolean showingScrollBar() -
renderContents
- Specified by:
renderContentsin classAbstractTextAreaWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
setMessage
- Overrides:
setMessagein classAbstractWidget
-