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/ScrollableTextFieldWidget- intermediary - net/minecraft/class_10415- official - foq
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFieldsFields inherited from class net.minecraft.client.gui.widget.ScrollableWidgetSCROLLBAR_WIDTHFields inherited from class net.minecraft.client.gui.widget.ClickableWidgetactive, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionScrollableTextFieldWidget(int x, int y, int width, int height, Text message) 
- 
Method SummaryModifier 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(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidplayDownSound(SoundManager soundManager) protected abstract voidrenderContents(DrawContext context, int mouseX, int mouseY, float delta) protected voidrenderOverlay(DrawContext context) voidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.ScrollableWidgetcheckScrollbarDragged, drawScrollbar, getDeltaYPerScroll, getMaxScrollY, getScrollbarThumbHeight, getScrollbarThumbY, getScrollY, mouseDragged, mouseScrolled, onRelease, overflows, refreshScroll, setScrollYMethods inherited from class net.minecraft.client.gui.widget.ClickableWidgetappendClickableNarrations, appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isNarratable, isSelected, isValidClickButton, mouseReleased, onClick, onDrag, playClickSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, 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, getBorder, getFocusedPath, keyReleased, mouseMovedMethods inherited from interface net.minecraft.client.gui.SelectablegetNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.WidgetsetPosition
- 
Field Details- 
TEXTURES- Mappings:
- Namespace - Name - Mixin selector - named - TEXTURES- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;- intermediary - field_55260- Lnet/minecraft/class_10415;field_55260:Lnet/minecraft/class_8666;- official - a- Lfoq;a:Lfqh;
 
- 
field_55261private static final int field_55261- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_55261- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;field_55261:I- intermediary - field_55261- Lnet/minecraft/class_10415;field_55261:I- official - c- Lfoq;c:I
 
 
- 
- 
Constructor Details- 
ScrollableTextFieldWidget- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/gui/widget/ClickableWidget;<init>(IIIILnet/minecraft/text/Text;)V- intermediary - <init>- Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)V- official - <init>- Lfos;<init>(IIIILwp;)V
 
 
- 
- 
Method Details- 
mouseClickedpublic boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
- mouseClickedin interface- Element
- Overrides:
- mouseClickedin class- ClickableWidget
- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - mouseClicked- Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z- intermediary - method_25402- Lnet/minecraft/class_364;method_25402(DDI)Z- official - a- Lfqr;a(DDI)Z
 
- 
keyPressedpublic boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
- keyCode- the named key code of the event as described in the- GLFWclass
- scanCode- the unique/platform-specific scan code of the keyboard input
- modifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - keyPressed- Lnet/minecraft/client/gui/Element;keyPressed(III)Z- intermediary - method_25404- Lnet/minecraft/class_364;method_25404(III)Z- official - a- Lfqr;a(III)Z
 
- 
renderWidget- Specified by:
- renderWidgetin class- ClickableWidget
- 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- Lfos;b(Lfof;IIF)V
 
- 
renderOverlay- Mappings:
- Namespace - Name - Mixin selector - named - renderOverlay- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;renderOverlay(Lnet/minecraft/client/gui/DrawContext;)V- intermediary - method_44384- Lnet/minecraft/class_10415;method_44384(Lnet/minecraft/class_332;)V- official - b- Lfoq;b(Lfof;)V
 
- 
getTextMarginprotected int getTextMargin()- Mappings:
- Namespace - Name - Mixin selector - named - getTextMargin- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getTextMargin()I- intermediary - method_65509- Lnet/minecraft/class_10415;method_65509()I- official - a- Lfoq;a()I
 
- 
getPaddingprotected int getPadding()- Mappings:
- Namespace - Name - Mixin selector - named - getPadding- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getPadding()I- intermediary - method_65512- Lnet/minecraft/class_10415;method_65512()I- official - b- Lfoq;b()I
 
- 
isMouseOverpublic boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
- isMouseOverin interface- Element
- Overrides:
- isMouseOverin class- ClickableWidget
- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- Returns:
- trueif the mouse is within the bound of the element, otherwise- false
- Mappings:
- Namespace - Name - Mixin selector - named - isMouseOver- Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z- intermediary - method_25405- Lnet/minecraft/class_364;method_25405(DD)Z- official - a_- Lfqr;a_(DD)Z
 
- 
getScrollbarXprotected int getScrollbarX()- Overrides:
- getScrollbarXin class- ScrollableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - getScrollbarX- Lnet/minecraft/client/gui/widget/ScrollableWidget;getScrollbarX()I- intermediary - method_65507- Lnet/minecraft/class_7528;method_65507()I- official - l- Lfom;l()I
 
- 
getContentsHeightWithPaddingprotected int getContentsHeightWithPadding()- Specified by:
- getContentsHeightWithPaddingin class- ScrollableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - getContentsHeightWithPadding- Lnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeightWithPadding()I- intermediary - method_44395- Lnet/minecraft/class_7528;method_44395()I- official - n- Lfom;n()I
 
- 
drawBox- Mappings:
- Namespace - Name - Mixin selector - named - drawBox- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;drawBox(Lnet/minecraft/client/gui/DrawContext;)V- intermediary - method_44386- Lnet/minecraft/class_10415;method_44386(Lnet/minecraft/class_332;)V- official - c- Lfoq;c(Lfof;)V
 
- 
draw- Mappings:
- Namespace - Name - Mixin selector - named - draw- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;draw(Lnet/minecraft/client/gui/DrawContext;IIII)V- intermediary - method_65511- Lnet/minecraft/class_10415;method_65511(Lnet/minecraft/class_332;IIII)V- official - a- Lfoq;a(Lfof;IIII)V
 
- 
isVisibleprotected boolean isVisible(int textTop, int textBottom) - Mappings:
- Namespace - Name - Mixin selector - named - isVisible- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;isVisible(II)Z- intermediary - method_65510- Lnet/minecraft/class_10415;method_65510(II)Z- official - a- Lfoq;a(II)Z
 
- 
getContentsHeightprotected abstract int getContentsHeight()- Mappings:
- Namespace - Name - Mixin selector - named - getContentsHeight- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getContentsHeight()I- intermediary - method_44391- Lnet/minecraft/class_10415;method_44391()I- official - c- Lfoq;c()I
 
- 
renderContents- Mappings:
- Namespace - Name - Mixin selector - named - renderContents- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;renderContents(Lnet/minecraft/client/gui/DrawContext;IIF)V- intermediary - method_44389- Lnet/minecraft/class_10415;method_44389(Lnet/minecraft/class_332;IIF)V- official - c- Lfoq;c(Lfof;IIF)V
 
- 
getTextXprotected int getTextX()- Mappings:
- Namespace - Name - Mixin selector - named - getTextX- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getTextX()I- intermediary - method_65513- Lnet/minecraft/class_10415;method_65513()I- official - e- Lfoq;e()I
 
- 
getTextYprotected int getTextY()- Mappings:
- Namespace - Name - Mixin selector - named - getTextY- Lnet/minecraft/client/gui/widget/ScrollableTextFieldWidget;getTextY()I- intermediary - method_65514- Lnet/minecraft/class_10415;method_65514()I- official - p- Lfoq;p()I
 
- 
playDownSound- Overrides:
- playDownSoundin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - playDownSound- Lnet/minecraft/client/gui/widget/ClickableWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)V- intermediary - method_25354- Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)V- official - a- Lfos;a(Lhjw;)V
 
 
-