Class WordWrapper

java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.utils.WordWrapper

public class WordWrapper extends Object
  • Constructor Details

    • WordWrapper

      public WordWrapper(@NotNull @NotNull String rawString, int lineLength)
  • Method Details

    • wrap

      @NotNull public @NotNull String[] wrap()
    • split

      @NotNull public static @NotNull List<String> split(@NotNull @NotNull String input, int length)
      Breaks a String, using the passed length and respecting color codes, into a List of Strings
      Parameters:
      input - the input
      Returns:
      the split input