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.ScrollableTextFieldWidget
net.minecraft.client.gui.widget.ScrollableTextWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/ScrollableTextWidgetintermediary net/minecraft/class_8577official gdz
-
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.ScrollableTextFieldWidget
field_60867Fields inherited from class net.minecraft.client.gui.widget.ScrollableWidget
SCROLLBAR_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionScrollableTextWidget(int x, int y, int width, int height, Text message, TextRenderer textRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddrawBox(DrawContext context) protected intprotected doubleprotected voidrenderContents(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidsetMessage(Text message) voidsetWidth(int width) textColor(int textColor) booleanvoidMethods inherited from class net.minecraft.client.gui.widget.ScrollableTextFieldWidget
draw, getContentsHeightWithPadding, getPadding, getScrollbarX, getTextMargin, getTextX, getTextY, isMouseOver, isVisible, keyPressed, mouseClicked, playDownSound, renderOverlay, renderWidgetMethods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
checkScrollbarDragged, drawScrollbar, getMaxScrollY, getScrollbarThumbHeight, getScrollbarThumbY, getScrollY, method_74038, mouseDragged, mouseScrolled, onRelease, overflows, refreshScroll, setScrollYMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getType, getWidth, getX, getY, isFocused, isHovered, isInteractable, isSelected, isValidClickButton, mouseReleased, onClick, onDrag, playClickSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, 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, getBorder, getFocusedPath, isClickable, keyReleased, mouseMovedMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
textRenderer
- Mappings:
Namespace Name Mixin selector named textRendererLnet/minecraft/client/gui/widget/ScrollableTextWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;intermediary field_44947Lnet/minecraft/class_8577;field_44947:Lnet/minecraft/class_327;official cLgdz;c:Lgda;
-
wrapped
- Mappings:
Namespace Name Mixin selector named wrappedLnet/minecraft/client/gui/widget/ScrollableTextWidget;wrapped:Lnet/minecraft/client/gui/widget/MultilineTextWidget;intermediary field_44948Lnet/minecraft/class_8577;field_44948:Lnet/minecraft/class_7940;official dLgdz;d:Lgek;
-
-
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;)Vintermediary <init>Lnet/minecraft/class_8577;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_327;)Vofficial <init>Lgdz;<init>(IIIILxx;Lgda;)V
-
-
Method Details
-
textColor
- Mappings:
Namespace Name Mixin selector named textColorLnet/minecraft/client/gui/widget/ScrollableTextWidget;textColor(I)Lnet/minecraft/client/gui/widget/ScrollableTextWidget;intermediary method_52234Lnet/minecraft/class_8577;method_52234(I)Lnet/minecraft/class_8577;official aLgdz;a(I)Lgdz;
-
setWidth
public void setWidth(int width) - Overrides:
setWidthin classClickableWidget- Mappings:
Namespace Name Mixin selector named setWidthLnet/minecraft/client/gui/widget/ClickableWidget;setWidth(I)Vintermediary method_25358Lnet/minecraft/class_339;method_25358(I)Vofficial cLgdn;c(I)V
-
getContentsHeight
protected int getContentsHeight()- Specified by:
getContentsHeightin classScrollableTextFieldWidget- Mappings:
Namespace Name Mixin selector named getContentsHeightLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getContentsHeight()Iintermediary method_44391Lnet/minecraft/class_10415;method_44391()Iofficial dLgdm;d()I
-
updateHeight
public void updateHeight()- Mappings:
Namespace Name Mixin selector named updateHeightLnet/minecraft/client/gui/widget/ScrollableTextWidget;updateHeight()Vintermediary method_73390Lnet/minecraft/class_8577;method_73390()Vofficial uLgdz;u()V
-
getDeltaYPerScroll
protected double getDeltaYPerScroll()- Specified by:
getDeltaYPerScrollin classScrollableWidget- Mappings:
Namespace Name Mixin selector named getDeltaYPerScrollLnet/minecraft/client/gui/widget/ScrollableWidget;getDeltaYPerScroll()Dintermediary method_44393Lnet/minecraft/class_7528;method_44393()Dofficial pLgdi;p()D
-
drawBox
- Overrides:
drawBoxin classScrollableTextFieldWidget- Mappings:
Namespace Name Mixin selector named drawBoxLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;drawBox(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_44386Lnet/minecraft/class_10415;method_44386(Lnet/minecraft/class_332;)Vofficial bLgdm;b(Lgdd;)V
-
textOverflows
public boolean textOverflows()- Mappings:
Namespace Name Mixin selector named textOverflowsLnet/minecraft/client/gui/widget/ScrollableTextWidget;textOverflows()Zintermediary method_53546Lnet/minecraft/class_8577;method_53546()Zofficial vLgdz;v()Z
-
renderContents
- Specified by:
renderContentsin classScrollableTextFieldWidget- Mappings:
Namespace Name Mixin selector named renderContentsLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;renderContents(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_44389Lnet/minecraft/class_10415;method_44389(Lnet/minecraft/class_332;IIF)Vofficial cLgdm;c(Lgdd;IIF)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector named appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)Vintermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vofficial aLgdn;a(Lgjl;)V
-
setMessage
- Overrides:
setMessagein classClickableWidget- Mappings:
Namespace Name Mixin selector named setMessageLnet/minecraft/client/gui/widget/ClickableWidget;setMessage(Lnet/minecraft/text/Text;)Vintermediary method_25355Lnet/minecraft/class_339;method_25355(Lnet/minecraft/class_2561;)Vofficial a_Lgdn;a_(Lxx;)V
-