Class AbstractTextAreaWidget

All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier, IAbstractWidgetExtension
Direct Known Subclasses:
FittingMultiLineTextWidget, MultiLineEditBox, TelemetryEventWidget

public abstract class AbstractTextAreaWidget extends AbstractScrollArea
  • Field Details

  • Constructor Details

    • AbstractTextAreaWidget

      public AbstractTextAreaWidget(int p_388859_, int p_387520_, int p_387683_, int p_387659_, Component p_386737_)
  • Method Details

    • mouseClicked

      public boolean mouseClicked(double p_387557_, double p_388283_, int p_387326_)
      Specified by:
      mouseClicked in interface GuiEventListener
      Overrides:
      mouseClicked in class AbstractWidget
    • keyPressed

      public boolean keyPressed(int p_388331_, int p_388254_, int p_388465_)
    • renderWidget

      public void renderWidget(GuiGraphics p_386672_, int p_387901_, int p_387577_, float p_387259_)
      Specified by:
      renderWidget in class AbstractWidget
    • renderDecorations

      protected void renderDecorations(GuiGraphics p_387032_)
    • innerPadding

      protected int innerPadding()
    • totalInnerPadding

      protected int totalInnerPadding()
    • isMouseOver

      public boolean isMouseOver(double p_386839_, double p_388246_)
      Specified by:
      isMouseOver in interface GuiEventListener
      Overrides:
      isMouseOver in class AbstractWidget
    • scrollBarX

      protected int scrollBarX()
      Overrides:
      scrollBarX in class AbstractScrollArea
    • contentHeight

      protected int contentHeight()
      Specified by:
      contentHeight in class AbstractScrollArea
    • renderBackground

      protected void renderBackground(GuiGraphics p_387240_)
    • renderBorder

      protected void renderBorder(GuiGraphics p_388574_, int p_387898_, int p_387393_, int p_388028_, int p_387158_)
    • withinContentAreaTopBottom

      protected boolean withinContentAreaTopBottom(int p_386967_, int p_387417_)
    • getInnerHeight

      protected abstract int getInnerHeight()
    • renderContents

      protected abstract void renderContents(GuiGraphics p_386674_, int p_387663_, int p_388111_, float p_387720_)
    • getInnerLeft

      protected int getInnerLeft()
    • getInnerTop

      protected int getInnerTop()
    • playDownSound

      public void playDownSound(SoundManager p_386774_)
      Overrides:
      playDownSound in class AbstractWidget