Class ChatFormatter

java.lang.Object
com.djrapitops.plan.utilities.chat.ChatFormatter

public class ChatFormatter extends Object
Formats chat messages in different ways.

Original code

  • Method Details

    • leftPad

      public static String leftPad(String message, int spaces)
    • columns

      public static String columns(int columns, String[] lines, String separator)
    • getLastStyle

      public static String getLastStyle(String message)
    • center

      public static String center(String message)
    • compensate

      public static void compensate(int toCompensate, int compensated, StringBuilder builder, String currentStyle)
    • getPxMessageWidth

      public static int getPxMessageWidth(String message)