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 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.ScrollableWidget
SCROLLBAR_WIDTH
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
ConstructorsConstructorDescriptionScrollableTextFieldWidget
(int x, int y, int width, int height, Text message) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
draw
(DrawContext context, int x, int y, int width, int height) protected void
drawBox
(DrawContext context) protected abstract int
protected int
protected int
protected int
protected int
protected int
getTextX()
protected int
getTextY()
boolean
isMouseOver
(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.protected boolean
isVisible
(int textTop, int textBottom) boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.boolean
mouseClicked
(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.void
playDownSound
(SoundManager soundManager) protected abstract void
renderContents
(DrawContext context, int mouseX, int mouseY, float delta) protected void
renderOverlay
(DrawContext context) void
renderWidget
(DrawContext context, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
checkScrollbarDragged, drawScrollbar, getDeltaYPerScroll, getMaxScrollY, getScrollbarThumbHeight, getScrollbarThumbY, getScrollY, mouseDragged, mouseScrolled, onRelease, overflows, refreshScroll, setScrollY
Methods 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, 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, 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, getBorder, getFocusedPath, keyReleased, mouseMoved
Methods inherited from interface net.minecraft.client.gui.Selectable
getNarratedParts
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
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_55261
private 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
-
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 inGLFW
class.- Specified by:
mouseClicked
in interfaceElement
- Overrides:
mouseClicked
in classClickableWidget
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to 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
-
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 inGLFW
class.- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- 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:
true
to 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:
renderWidget
in classClickableWidget
- 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
-
getTextMargin
protected 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
-
getPadding
protected 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
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOver
in interfaceElement
- Overrides:
isMouseOver
in classClickableWidget
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mouse- Returns:
true
if the mouse is within the bound of the element, otherwisefalse
- 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
-
getScrollbarX
protected int getScrollbarX()- Overrides:
getScrollbarX
in classScrollableWidget
- 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
-
getContentsHeightWithPadding
protected int getContentsHeightWithPadding()- Specified by:
getContentsHeightWithPadding
in classScrollableWidget
- 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
-
isVisible
protected 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
-
getContentsHeight
protected 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
-
getTextX
protected 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
-
getTextY
protected 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:
playDownSound
in classClickableWidget
- 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
-