Package net.minecraft.client.gui.widget
Class ScrollableTextFieldWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ScrollableWidget
net.minecraft.client.gui.widget.ScrollableTextFieldWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget
- Direct Known Subclasses:
EditBoxWidget,ScrollableTextWidget,TelemetryEventWidget
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/ScrollableTextFieldWidgetintermediary net/minecraft/class_10415official gdm
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intstatic final intprivate booleanprivate booleanprivate static final ButtonTexturesFields inherited from class net.minecraft.client.gui.widget.ScrollableWidget
SCROLLBAR_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionScrollableTextFieldWidget(int x, int y, int width, int height, Text message) ScrollableTextFieldWidget(int x, int y, int width, int height, Text message, boolean hasBackground, boolean hasOverlay) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddraw(DrawContext context, int x, int y, int width, int height) protected voiddrawBox(DrawContext context) protected abstract intprotected intprotected intprotected intprotected intprotected intgetTextX()protected intgetTextY()booleanisMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.protected booleanisVisible(int textTop, int textBottom) booleankeyPressed(KeyInput input) Callback for when a key down event has been captured.booleanmouseClicked(Click click, boolean doubled) Callback for when a mouse button down event has been captured.voidplayDownSound(SoundManager soundManager) protected abstract voidrenderContents(DrawContext context, int mouseX, int mouseY, float deltaTicks) protected voidrenderOverlay(DrawContext context) voidrenderWidget(DrawContext context, int mouseX, int mouseY, float deltaTicks) Methods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
checkScrollbarDragged, drawScrollbar, getDeltaYPerScroll, getMaxScrollY, getScrollbarThumbHeight, getScrollbarThumbY, getScrollY, isInScrollbar, mouseDragged, mouseScrolled, onRelease, overflows, refreshScroll, setScrollYMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendClickableNarrations, 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, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, 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
-
TEXTURES
- Mappings:
Namespace Name Mixin selector named TEXTURESLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;intermediary field_55260Lnet/minecraft/class_10415;field_55260:Lnet/minecraft/class_8666;official cLgdm;c:Lgfe;
-
field_55261
private static final int field_55261- See Also:
- Mappings:
Namespace Name Mixin selector named field_55261Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;field_55261:Iintermediary field_55261Lnet/minecraft/class_10415;field_55261:Iofficial dLgdm;d:I
-
field_60867
public static final int field_60867- See Also:
- Mappings:
Namespace Name Mixin selector named field_60867Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;field_60867:Iintermediary field_60867Lnet/minecraft/class_10415;field_60867:Iofficial aLgdm;a:I
-
hasBackground
private boolean hasBackground- Mappings:
Namespace Name Mixin selector named hasBackgroundLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;hasBackground:Zintermediary field_60433Lnet/minecraft/class_10415;field_60433:Zofficial eLgdm;e:Z
-
hasOverlay
private boolean hasOverlay- Mappings:
Namespace Name Mixin selector named hasOverlayLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;hasOverlay:Zintermediary field_60434Lnet/minecraft/class_10415;field_60434:Zofficial lLgdm;l:Z
-
-
Constructor Details
-
ScrollableTextFieldWidget
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/widget/ClickableWidget;<init>(IIIILnet/minecraft/text/Text;)Vintermediary <init>Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)Vofficial <init>Lgdn;<init>(IIIILxx;)V
-
ScrollableTextFieldWidget
public ScrollableTextFieldWidget(int x, int y, int width, int height, Text message, boolean hasBackground, boolean hasOverlay) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;<init>(IIIILnet/minecraft/text/Text;ZZ)Vintermediary <init>Lnet/minecraft/class_10415;<init>(IIIILnet/minecraft/class_2561;ZZ)Vofficial <init>Lgdm;<init>(IIIILxx;ZZ)V
-
-
Method Details
-
mouseClicked
Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Overrides:
mouseClickedin classClickableWidget- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(Lnet/minecraft/client/gui/Click;Z)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(Lnet/minecraft/class_11909;Z)Zofficial aLggw;a(Lgti;Z)Z
-
keyPressed
Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Zofficial aLggw;a(Lgth;)Z
-
renderWidget
- Specified by:
renderWidgetin classClickableWidget- Mappings:
Namespace Name Mixin selector named renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial bLgdn;b(Lgdd;IIF)V
-
renderOverlay
- Mappings:
Namespace Name Mixin selector named renderOverlayLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;renderOverlay(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_44384Lnet/minecraft/class_10415;method_44384(Lnet/minecraft/class_332;)Vofficial aLgdm;a(Lgdd;)V
-
getTextMargin
protected int getTextMargin()- Mappings:
Namespace Name Mixin selector named getTextMarginLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getTextMargin()Iintermediary method_65509Lnet/minecraft/class_10415;method_65509()Iofficial aLgdm;a()I
-
getPadding
protected int getPadding()- Mappings:
Namespace Name Mixin selector named getPaddingLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getPadding()Iintermediary method_65512Lnet/minecraft/class_10415;method_65512()Iofficial cLgdm;c()I
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOverin interfaceElement- Overrides:
isMouseOverin classClickableWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouse- Returns:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector named isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Zofficial a_Lggw;a_(DD)Z
-
getScrollbarX
protected int getScrollbarX()- Overrides:
getScrollbarXin classScrollableWidget- Mappings:
Namespace Name Mixin selector named getScrollbarXLnet/minecraft/client/gui/widget/ScrollableWidget;getScrollbarX()Iintermediary method_65507Lnet/minecraft/class_7528;method_65507()Iofficial mLgdi;m()I
-
getContentsHeightWithPadding
protected int getContentsHeightWithPadding()- Specified by:
getContentsHeightWithPaddingin classScrollableWidget- Mappings:
Namespace Name Mixin selector named getContentsHeightWithPaddingLnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeightWithPadding()Iintermediary method_44395Lnet/minecraft/class_7528;method_44395()Iofficial oLgdi;o()I
-
drawBox
- 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
-
draw
- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;draw(Lnet/minecraft/client/gui/DrawContext;IIII)Vintermediary method_65511Lnet/minecraft/class_10415;method_65511(Lnet/minecraft/class_332;IIII)Vofficial aLgdm;a(Lgdd;IIII)V
-
isVisible
protected boolean isVisible(int textTop, int textBottom) - Mappings:
Namespace Name Mixin selector named isVisibleLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;isVisible(II)Zintermediary method_65510Lnet/minecraft/class_10415;method_65510(II)Zofficial aLgdm;a(II)Z
-
getContentsHeight
protected abstract int getContentsHeight()- 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
-
renderContents
protected abstract void renderContents(DrawContext context, int mouseX, int mouseY, float deltaTicks) - 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
-
getTextX
protected int getTextX()- Mappings:
Namespace Name Mixin selector named getTextXLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getTextX()Iintermediary method_65513Lnet/minecraft/class_10415;method_65513()Iofficial fLgdm;f()I
-
getTextY
protected int getTextY()- Mappings:
Namespace Name Mixin selector named getTextYLnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getTextY()Iintermediary method_65514Lnet/minecraft/class_10415;method_65514()Iofficial tLgdm;t()I
-
playDownSound
- Overrides:
playDownSoundin classClickableWidget- Mappings:
Namespace Name Mixin selector named playDownSoundLnet/minecraft/client/gui/widget/ClickableWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)Vintermediary method_25354Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)Vofficial aLgdn;a(Lihq;)V
-