Class MultiLineEditBox

All Implemented Interfaces:
GuiEventListener, Widget, NarratableEntry, NarrationSupplier

public class MultiLineEditBox extends AbstractScrollWidget
  • Field Details

  • Constructor Details

    • MultiLineEditBox

      public MultiLineEditBox(Font p_239008_, int p_239009_, int p_239010_, int p_239011_, int p_239012_, Component p_239013_, Component p_239014_)
  • Method Details

    • setCharacterLimit

      public void setCharacterLimit(int p_239314_)
    • setValueListener

      public void setValueListener(Consumer<String> p_239274_)
    • setValue

      public void setValue(String p_240160_)
    • getValue

      public String getValue()
    • tick

      public void tick()
    • updateNarration

      public void updateNarration(NarrationElementOutput p_240122_)
    • mouseClicked

      public boolean mouseClicked(double p_239101_, double p_239102_, int p_239103_)
      Specified by:
      mouseClicked in interface GuiEventListener
      Overrides:
      mouseClicked in class AbstractScrollWidget
    • mouseDragged

      public boolean mouseDragged(double p_238978_, double p_238979_, int p_238980_, double p_238981_, double p_238982_)
      Specified by:
      mouseDragged in interface GuiEventListener
      Overrides:
      mouseDragged in class AbstractScrollWidget
    • keyPressed

      public boolean keyPressed(int p_239433_, int p_239434_, int p_239435_)
    • charTyped

      public boolean charTyped(char p_239387_, int p_239388_)
    • renderContents

      protected void renderContents(PoseStack p_239001_, int p_239002_, int p_239003_, float p_239004_)
      Specified by:
      renderContents in class AbstractScrollWidget
    • renderDecorations

      protected void renderDecorations(PoseStack p_239517_)
      Overrides:
      renderDecorations in class AbstractScrollWidget
    • getInnerHeight

      public int getInnerHeight()
      Specified by:
      getInnerHeight in class AbstractScrollWidget
    • scrollbarVisible

      protected boolean scrollbarVisible()
      Specified by:
      scrollbarVisible in class AbstractScrollWidget
    • scrollRate

      protected double scrollRate()
      Specified by:
      scrollRate in class AbstractScrollWidget
    • renderHighlight

      private void renderHighlight(PoseStack p_239487_, int p_239488_, int p_239489_, int p_239490_, int p_239491_)
    • scrollToCursor

      private void scrollToCursor()
    • getDisplayableLineCount

      private double getDisplayableLineCount()
    • seekCursorScreen

      private void seekCursorScreen(double p_239276_, double p_239277_)