Class ITextRenderer.StringRenderer

java.lang.Object
nl.pim16aap2.animatedarchitecture.core.text.ITextRenderer.StringRenderer
All Implemented Interfaces:
ITextRenderer<String>
Enclosing interface:
ITextRenderer<T>

public static class ITextRenderer.StringRenderer extends Object implements ITextRenderer<String>
Implementation of a text renderer that can be used to render Text objects to Strings.
  • Constructor Details

    • StringRenderer

      public StringRenderer(int size)
  • Method Details

    • process

      public void process(String text)
      Description copied from interface: ITextRenderer
      Processes a piece of unstyled text.
      Specified by:
      process in interface ITextRenderer<String>
      Parameters:
      text - The text to process.
    • process

      public void process(String text, TextComponent component)
      Description copied from interface: ITextRenderer
      Processes a piece of styled text.
      Specified by:
      process in interface ITextRenderer<String>
      Parameters:
      text - The text to process.
      component - The component containing additional information for the text processing.
    • getRendered

      public String getRendered()
      Description copied from interface: ITextRenderer
      Getter for the rendered text.
      Specified by:
      getRendered in interface ITextRenderer<String>
      Returns:
      The rendered result.