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 - eps- intermediary - net/minecraft/class_8577- named - net/minecraft/client/gui/widget/ScrollableTextWidget
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFieldsFields inherited from class net.minecraft.client.gui.widget.ClickableWidgetACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionScrollableTextWidget(int x, int y, int width, int height, Text message, TextRenderer textRenderer) 
- 
Method SummaryModifier 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 doublevoidrenderButton(DrawContext context, int mouseX, int mouseY, float delta) protected voidrenderContents(DrawContext context, int mouseX, int mouseY, float delta) Renders the scrolled contents.voidsetWidth(int width) textColor(int textColor) Methods inherited from class net.minecraft.client.gui.widget.ScrollableWidgetdrawBox, getMaxScrollY, getPadding, getPaddingDoubled, getScrollY, isVisible, isWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, overflows, renderOverlay, setScrollYMethods inherited from class net.minecraft.client.gui.widget.ClickableWidgetappendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltip, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setFocused, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setX, setYMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getFocusedPath, getNavigationFocus, getNavigationPath, isFocused, isMouseOver, keyReleased, mouseMoved, setFocusedMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrderMethods inherited from interface net.minecraft.client.gui.widget.WidgetsetPosition
- 
Field Details- 
textRenderer- Mappings:
- Namespace - Name - Mixin selector - official - a- Leps;a:Leov;- intermediary - field_44947- Lnet/minecraft/class_8577;field_44947:Lnet/minecraft/class_327;- named - textRenderer- Lnet/minecraft/client/gui/widget/ScrollableTextWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
 
- 
wrapped- Mappings:
- Namespace - Name - Mixin selector - official - b- Leps;b:Leqa;- intermediary - field_44948- Lnet/minecraft/class_8577;field_44948:Lnet/minecraft/class_7940;- named - wrapped- Lnet/minecraft/client/gui/widget/ScrollableTextWidget;wrapped:Lnet/minecraft/client/gui/widget/MultilineTextWidget;
 
 
- 
- 
Constructor Details- 
ScrollableTextWidgetpublic ScrollableTextWidget(int x, int y, int width, int height, Text message, TextRenderer textRenderer) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Leps;<init>(IIIILsw;Leov;)V- intermediary - <init>- Lnet/minecraft/class_8577;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V- named - <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 - a- Leps;a(I)Leps;- intermediary - method_52234- Lnet/minecraft/class_8577;method_52234(I)Lnet/minecraft/class_8577;- named - textColor- Lnet/minecraft/client/gui/widget/ScrollableTextWidget;textColor(I)Lnet/minecraft/client/gui/widget/ScrollableTextWidget;
 
- 
setWidthpublic void setWidth(int width) - Overrides:
- setWidthin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lepf;d(I)V- intermediary - method_25358- Lnet/minecraft/class_339;method_25358(I)V- named - setWidth- Lnet/minecraft/client/gui/widget/ClickableWidget;setWidth(I)V
 
- 
getContentsHeightprotected int getContentsHeight()Returns the total height of the contents.- Specified by:
- getContentsHeightin class- ScrollableWidget
- Returns:
- the total height of the contents
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lepb;f()I- intermediary - method_44391- Lnet/minecraft/class_7528;method_44391()I- named - getContentsHeight- Lnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeight()I
 
- 
getDeltaYPerScrollprotected double getDeltaYPerScroll()- Specified by:
- getDeltaYPerScrollin class- ScrollableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - g- Lepb;g()D- intermediary - method_44393- Lnet/minecraft/class_7528;method_44393()D- named - getDeltaYPerScroll- Lnet/minecraft/client/gui/widget/ScrollableWidget;getDeltaYPerScroll()D
 
- 
drawBoxDraws the box that the contents are rendered over, including its borders.- Overrides:
- drawBoxin class- ScrollableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lepb;b(Leox;)V- intermediary - method_44386- Lnet/minecraft/class_7528;method_44386(Lnet/minecraft/class_332;)V- named - drawBox- Lnet/minecraft/client/gui/widget/ScrollableWidget;drawBox(Lnet/minecraft/client/gui/DrawContext;)V
 
- 
renderButton- Overrides:
- renderButtonin class- ScrollableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lepf;b(Leox;IIF)V- intermediary - method_48579- Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V- named - renderButton- Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
 
- 
renderContentsRenders 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 class- ScrollableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lepb;c(Leox;IIF)V- intermediary - method_44389- Lnet/minecraft/class_7528;method_44389(Lnet/minecraft/class_332;IIF)V- named - renderContents- Lnet/minecraft/client/gui/widget/ScrollableWidget;renderContents(Lnet/minecraft/client/gui/DrawContext;IIF)V
 
- 
appendClickableNarrations- Specified by:
- appendClickableNarrationsin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lepf;a(Lesp;)V- intermediary - method_47399- Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V- named - appendClickableNarrations- Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
 
 
-