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_314711_)
    • 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_330599_)
    • isValidPlayerName

      public static boolean isValidPlayerName(String p_330229_)
    • filterText

      public static String filterText(String p_330272_)
    • filterText

      public static String filterText(String p_332058_, boolean p_330572_)
    • isWhitespace

      public static boolean isWhitespace(int p_331212_)
    • isBlank

      public static boolean isBlank(@Nullable String p_330852_)