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 fvl
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate booleanprivate booleanprivate static final ButtonTexturesFields inherited from class net.minecraft.client.gui.widget.ScrollableWidget
SCROLLBAR_WIDTHFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
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(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 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, 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, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getBorder, getFocusedPath, 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 aLfvl;a:Lfxb;
-
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 cLfvl;c: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 dLfvl;d: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 eLfvl;e: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>Lfvm;<init>(IIIILxk;)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>Lfvl;<init>(IIIILxk;ZZ)V
-
-
Method Details
-
mouseClicked
public 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 interfaceElement- Overrides:
mouseClickedin classClickableWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfxl;a(DDI)Z
-
keyPressed
public 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 theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- 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 keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfxl;a(III)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 bLfvm;b(Lfvb;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 aLfvl;a(Lfvb;)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 aLfvl;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 bLfvl;b()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_Lfxl;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 lLfvh;l()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 nLfvh;n()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 bLfvl;b(Lfvb;)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 aLfvl;a(Lfvb;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 aLfvl;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 cLfvl;c()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 cLfvl;c(Lfvb;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 eLfvl;e()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 pLfvl;p()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 aLfvm;a(Lhtg;)V
-