Class StringUtil

java.lang.Object
net.minecraft.util.StringUtil

public class StringUtil extends Object
  • Field Details

    • STRIP_COLOR_PATTERN

      private static final Pattern STRIP_COLOR_PATTERN
    • LINE_PATTERN

      private static final Pattern LINE_PATTERN
    • LINE_END_PATTERN

      private static final Pattern LINE_END_PATTERN
  • Constructor Details

    • StringUtil

      public StringUtil()
  • Method Details

    • formatTickDuration

      public static String formatTickDuration(int p_14405_)
    • stripColor

      public static String stripColor(String p_14407_)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(@Nullable String p_14409_)
    • truncateStringIfNecessary

      public static String truncateStringIfNecessary(String p_144999_, int p_145000_, boolean p_145001_)
    • lineCount

      public static int lineCount(String p_145003_)
    • endsWithNewLine

      public static boolean endsWithNewLine(String p_145005_)
    • trimChatMessage

      public static String trimChatMessage(String p_216470_)