Package net.minecraft.client.gui.widget
Class ScrollableTextWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ScrollableWidget
net.minecraft.client.gui.widget.ScrollableTextWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget
- Mappings:
Namespace Name official exqintermediary net/minecraft/class_8577named net/minecraft/client/gui/widget/ScrollableTextWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionScrollableTextWidget(int x, int y, int width, int height, Text message, TextRenderer textRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddrawBox(DrawContext context) Draws the box that the contents are rendered over, including its borders.protected intReturns the total height of the contents.protected doubleprotected voidrenderContents(DrawContext context, int mouseX, int mouseY, float delta) Renders the scrolled contents.voidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) voidsetWidth(int width) textColor(int textColor) booleanMethods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
drawBox, getMaxScrollY, getPadding, getPaddingDoubled, getScrollerWidth, getScrollY, isVisible, isWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, overflows, renderOverlay, setScrollYMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, isFocused, isMouseOver, keyReleased, mouseMoved, setFocusedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
textRenderer
- Mappings:
Namespace Name Mixin selector official aLexq;a:Lews;intermediary field_44947Lnet/minecraft/class_8577;field_44947:Lnet/minecraft/class_327;named textRendererLnet/minecraft/client/gui/widget/ScrollableTextWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
wrapped
- Mappings:
Namespace Name Mixin selector official bLexq;b:Leya;intermediary field_44948Lnet/minecraft/class_8577;field_44948:Lnet/minecraft/class_7940;named wrappedLnet/minecraft/client/gui/widget/ScrollableTextWidget;wrapped:Lnet/minecraft/client/gui/widget/MultilineTextWidget;
-
-
Constructor Details
-
ScrollableTextWidget
public ScrollableTextWidget(int x, int y, int width, int height, Text message, TextRenderer textRenderer) - Mappings:
Namespace Name Mixin selector official <init>Lexq;<init>(IIIILvf;Lews;)Vintermediary <init>Lnet/minecraft/class_8577;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_327;)Vnamed <init>Lnet/minecraft/client/gui/widget/ScrollableTextWidget;<init>(IIIILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
-
-
Method Details
-
textColor
- Mappings:
Namespace Name Mixin selector official aLexq;a(I)Lexq;intermediary method_52234Lnet/minecraft/class_8577;method_52234(I)Lnet/minecraft/class_8577;named textColorLnet/minecraft/client/gui/widget/ScrollableTextWidget;textColor(I)Lnet/minecraft/client/gui/widget/ScrollableTextWidget;
-
setWidth
public void setWidth(int width) - Overrides:
setWidthin classClickableWidget- Mappings:
Namespace Name Mixin selector official lLexe;l(I)Vintermediary method_25358Lnet/minecraft/class_339;method_25358(I)Vnamed setWidthLnet/minecraft/client/gui/widget/ClickableWidget;setWidth(I)V
-
getContentsHeight
protected int getContentsHeight()Returns the total height of the contents.- Specified by:
getContentsHeightin classScrollableWidget- Returns:
- the total height of the contents
- Mappings:
Namespace Name Mixin selector official gLexa;g()Iintermediary method_44391Lnet/minecraft/class_7528;method_44391()Inamed getContentsHeightLnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeight()I
-
getDeltaYPerScroll
protected double getDeltaYPerScroll()- Specified by:
getDeltaYPerScrollin classScrollableWidget- Mappings:
Namespace Name Mixin selector official iLexa;i()Dintermediary method_44393Lnet/minecraft/class_7528;method_44393()Dnamed getDeltaYPerScrollLnet/minecraft/client/gui/widget/ScrollableWidget;getDeltaYPerScroll()D
-
drawBox
Draws the box that the contents are rendered over, including its borders.- Overrides:
drawBoxin classScrollableWidget- Mappings:
Namespace Name Mixin selector official bLexa;b(Lewu;)Vintermediary method_44386Lnet/minecraft/class_7528;method_44386(Lnet/minecraft/class_332;)Vnamed drawBoxLnet/minecraft/client/gui/widget/ScrollableWidget;drawBox(Lnet/minecraft/client/gui/DrawContext;)V
-
renderWidget
- Overrides:
renderWidgetin classScrollableWidget- Mappings:
Namespace Name Mixin selector official bLexe;b(Lewu;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vnamed renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
textOverflows
public boolean textOverflows()- Mappings:
Namespace Name Mixin selector official jLexq;j()Zintermediary method_53546Lnet/minecraft/class_8577;method_53546()Znamed textOverflowsLnet/minecraft/client/gui/widget/ScrollableTextWidget;textOverflows()Z
-
renderContents
Renders the scrolled contents. Subclasses must override this. The rendered contents may overflow; the caller should trim those usingDrawContext.enableScissor(int, int, int, int).- Specified by:
renderContentsin classScrollableWidget- Mappings:
Namespace Name Mixin selector official cLexa;c(Lewu;IIF)Vintermediary method_44389Lnet/minecraft/class_7528;method_44389(Lnet/minecraft/class_332;IIF)Vnamed renderContentsLnet/minecraft/client/gui/widget/ScrollableWidget;renderContents(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector official aLexe;a(Lfaz;)Vintermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vnamed appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-