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 named net/minecraft/client/gui/widget/ScrollableTextWidget
intermediary net/minecraft/class_8577
official fiw
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionScrollableTextWidget
(int x, int y, int width, int height, Text message, TextRenderer textRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
drawBox
(DrawContext context) Draws the box that the contents are rendered over, including its borders.protected int
Returns the total height of the contents.protected double
protected void
renderContents
(DrawContext context, int mouseX, int mouseY, float delta) Renders the scrolled contents.void
renderWidget
(DrawContext context, int mouseX, int mouseY, float delta) void
setWidth
(int width) textColor
(int textColor) boolean
Methods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
drawBox, getMaxScrollY, getPadding, getPaddingDoubled, getScrollerWidth, getScrollY, isVisible, isWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, overflows, renderOverlay, setScrollY
Methods 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, setY
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.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, isFocused, isMouseOver, keyReleased, mouseMoved, setFocused
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
textRenderer
- Mappings:
Namespace Name Mixin selector named textRenderer
Lnet/minecraft/client/gui/widget/ScrollableTextWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
intermediary field_44947
Lnet/minecraft/class_8577;field_44947:Lnet/minecraft/class_327;
official a
Lfiw;a:Lfhx;
-
wrapped
- Mappings:
Namespace Name Mixin selector named wrapped
Lnet/minecraft/client/gui/widget/ScrollableTextWidget;wrapped:Lnet/minecraft/client/gui/widget/MultilineTextWidget;
intermediary field_44948
Lnet/minecraft/class_8577;field_44948:Lnet/minecraft/class_7940;
official b
Lfiw;b:Lfjg;
-
-
Constructor Details
-
ScrollableTextWidget
public ScrollableTextWidget(int x, int y, int width, int height, Text message, TextRenderer textRenderer) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/ScrollableTextWidget;<init>(IIIILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
intermediary <init>
Lnet/minecraft/class_8577;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
official <init>
Lfiw;<init>(IIIILwz;Lfhx;)V
-
-
Method Details
-
textColor
- Mappings:
Namespace Name Mixin selector named textColor
Lnet/minecraft/client/gui/widget/ScrollableTextWidget;textColor(I)Lnet/minecraft/client/gui/widget/ScrollableTextWidget;
intermediary method_52234
Lnet/minecraft/class_8577;method_52234(I)Lnet/minecraft/class_8577;
official a
Lfiw;a(I)Lfiw;
-
setWidth
public void setWidth(int width) - Overrides:
setWidth
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named setWidth
Lnet/minecraft/client/gui/widget/ClickableWidget;setWidth(I)V
intermediary method_25358
Lnet/minecraft/class_339;method_25358(I)V
official k
Lfik;k(I)V
-
getContentsHeight
protected int getContentsHeight()Returns the total height of the contents.- Specified by:
getContentsHeight
in classScrollableWidget
- Returns:
- the total height of the contents
- Mappings:
Namespace Name Mixin selector named getContentsHeight
Lnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeight()I
intermediary method_44391
Lnet/minecraft/class_7528;method_44391()I
official h
Lfig;h()I
-
getDeltaYPerScroll
protected double getDeltaYPerScroll()- Specified by:
getDeltaYPerScroll
in classScrollableWidget
- Mappings:
Namespace Name Mixin selector named getDeltaYPerScroll
Lnet/minecraft/client/gui/widget/ScrollableWidget;getDeltaYPerScroll()D
intermediary method_44393
Lnet/minecraft/class_7528;method_44393()D
official i
Lfig;i()D
-
drawBox
Draws the box that the contents are rendered over, including its borders.- Overrides:
drawBox
in classScrollableWidget
- Mappings:
Namespace Name Mixin selector named drawBox
Lnet/minecraft/client/gui/widget/ScrollableWidget;drawBox(Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_44386
Lnet/minecraft/class_7528;method_44386(Lnet/minecraft/class_332;)V
official b
Lfig;b(Lfhz;)V
-
renderWidget
- Overrides:
renderWidget
in classScrollableWidget
- Mappings:
Namespace Name Mixin selector named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
official b
Lfik;b(Lfhz;IIF)V
-
textOverflows
public boolean textOverflows()- Mappings:
Namespace Name Mixin selector named textOverflows
Lnet/minecraft/client/gui/widget/ScrollableTextWidget;textOverflows()Z
intermediary method_53546
Lnet/minecraft/class_8577;method_53546()Z
official j
Lfiw;j()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:
renderContents
in classScrollableWidget
- Mappings:
Namespace Name Mixin selector named renderContents
Lnet/minecraft/client/gui/widget/ScrollableWidget;renderContents(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_44389
Lnet/minecraft/class_7528;method_44389(Lnet/minecraft/class_332;IIF)V
official c
Lfig;c(Lfhz;IIF)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
official a
Lfik;a(Lfmi;)V
-