Class RichTextView

All Implemented Interfaces:
org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.IHoverable, org.rusherhack.core.interfaces.INamed, org.rusherhack.core.interfaces.IScrollable, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.ITypeable

public class RichTextView extends ScrollableView
A scrollable view meant for displaying logs

TODO: add selection copying

  • Constructor Details

    • RichTextView

      public RichTextView(Window window)
    • RichTextView

      public RichTextView(String name, Window window)
  • Method Details

    • add

      public void add(String text, int color)
    • add

      public void add(net.minecraft.network.chat.Component text, int color)
    • renderViewContent

      public void renderViewContent(double mouseX, double mouseY)
      Overrides:
      renderViewContent in class ScrollableView
    • newComponent

      protected void newComponent(RichTextView.RichTextComponent c, int color)
    • clear

      public void clear()
    • shouldClampToBottom

      protected boolean shouldClampToBottom()
      Overrides:
      shouldClampToBottom in class ScrollableView