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_, float p_313197_)
    • 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_)
    • isAllowedChatCharacter

      public static boolean isAllowedChatCharacter(char p_336025_)
    • isValidPlayerName

      public static boolean isValidPlayerName(String p_328576_)
    • filterText

      public static String filterText(String p_329405_)
    • filterText

      public static String filterText(String p_335196_, boolean p_329791_)
    • isWhitespace

      public static boolean isWhitespace(int p_332672_)
    • isBlank

      public static boolean isBlank(@Nullable String p_334499_)