Class ScrollableTextFieldWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget
Direct Known Subclasses:
EditBoxWidget, ScrollableTextWidget, TelemetryEventWidget

@Environment(CLIENT) public abstract class ScrollableTextFieldWidget extends ScrollableWidget
Mappings:
Namespace Name
named net/minecraft/client/gui/widget/ScrollableTextFieldWidget
intermediary net/minecraft/class_10415
official foq
  • Field Details Link icon

    • TEXTURES Link icon

      private static final ButtonTextures 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 Link icon

      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 Link icon

    • ScrollableTextFieldWidget Link icon

      public ScrollableTextFieldWidget(int x, int y, int width, int height, Text message)
      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 Link icon

    • mouseClicked Link icon

      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 in GLFW class.
      Specified by:
      mouseClicked in interface Element
      Overrides:
      mouseClicked in class ClickableWidget
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - 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 Link icon

      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 in GLFW class.
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      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:
      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 Link icon

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      renderWidget in 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 Link icon

      protected void renderOverlay(DrawContext context)
      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 Link icon

      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 Link icon

      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 Link icon

      public boolean isMouseOver(double mouseX, double mouseY)
      Checks if the mouse position is within the bound of the element.
      Specified by:
      isMouseOver in interface Element
      Overrides:
      isMouseOver in class ClickableWidget
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      Returns:
      true if 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
    • getScrollbarX Link icon

      protected int getScrollbarX()
      Overrides:
      getScrollbarX in 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
    • getContentsHeightWithPadding Link icon

      protected int getContentsHeightWithPadding()
      Specified by:
      getContentsHeightWithPadding in 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 Link icon

      protected void drawBox(DrawContext context)
      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 Link icon

      protected void draw(DrawContext context, int x, int y, int width, int height)
      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 Link icon

      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 Link icon

      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 Link icon

      protected abstract void renderContents(DrawContext context, int mouseX, int mouseY, float delta)
      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 Link icon

      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 Link icon

      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 Link icon

      public void playDownSound(SoundManager soundManager)
      Overrides:
      playDownSound in 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