Class ChatUtil

java.lang.Object
net.minecraft.util.ChatUtil

public class ChatUtil extends Object
Mappings:
Namespace Name
official ahi
intermediary net/minecraft/class_3544
named net/minecraft/util/ChatUtil
  • Field Details

    • PATTERN

      private static final Pattern PATTERN
      Mappings:
      Namespace Name Mixin selector
      official a Lahi;a:Ljava/util/regex/Pattern;
      intermediary field_15771 Lnet/minecraft/class_3544;field_15771:Ljava/util/regex/Pattern;
      named PATTERN Lnet/minecraft/util/ChatUtil;PATTERN:Ljava/util/regex/Pattern;
    • LINE_BREAK

      private static final Pattern LINE_BREAK
      Mappings:
      Namespace Name Mixin selector
      official b Lahi;b:Ljava/util/regex/Pattern;
      intermediary field_29204 Lnet/minecraft/class_3544;field_29204:Ljava/util/regex/Pattern;
      named LINE_BREAK Lnet/minecraft/util/ChatUtil;LINE_BREAK:Ljava/util/regex/Pattern;
    • ENDS_WITH_LINE_BREAK

      private static final Pattern ENDS_WITH_LINE_BREAK
      Mappings:
      Namespace Name Mixin selector
      official c Lahi;c:Ljava/util/regex/Pattern;
      intermediary field_33559 Lnet/minecraft/class_3544;field_33559:Ljava/util/regex/Pattern;
      named ENDS_WITH_LINE_BREAK Lnet/minecraft/util/ChatUtil;ENDS_WITH_LINE_BREAK:Ljava/util/regex/Pattern;
  • Constructor Details

    • ChatUtil

      public ChatUtil()
  • Method Details

    • ticksToString

      public static String ticksToString(int ticks)
      Mappings:
      Namespace Name Mixin selector
      official a Lahi;a(I)Ljava/lang/String;
      intermediary method_15439 Lnet/minecraft/class_3544;method_15439(I)Ljava/lang/String;
      named ticksToString Lnet/minecraft/util/ChatUtil;ticksToString(I)Ljava/lang/String;
    • stripTextFormat

      public static String stripTextFormat(String text)
      Mappings:
      Namespace Name Mixin selector
      official a Lahi;a(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_15440 Lnet/minecraft/class_3544;method_15440(Ljava/lang/String;)Ljava/lang/String;
      named stripTextFormat Lnet/minecraft/util/ChatUtil;stripTextFormat(Ljava/lang/String;)Ljava/lang/String;
    • isEmpty

      public static boolean isEmpty(@Nullable @Nullable String text)
      Mappings:
      Namespace Name Mixin selector
      official b Lahi;b(Ljava/lang/String;)Z
      intermediary method_15438 Lnet/minecraft/class_3544;method_15438(Ljava/lang/String;)Z
      named isEmpty Lnet/minecraft/util/ChatUtil;isEmpty(Ljava/lang/String;)Z
    • truncate

      public static String truncate(String text, int maxLength, boolean addEllipsis)
      Mappings:
      Namespace Name Mixin selector
      official a Lahi;a(Ljava/lang/String;IZ)Ljava/lang/String;
      intermediary method_34963 Lnet/minecraft/class_3544;method_34963(Ljava/lang/String;IZ)Ljava/lang/String;
      named truncate Lnet/minecraft/util/ChatUtil;truncate(Ljava/lang/String;IZ)Ljava/lang/String;
    • countLines

      public static int countLines(String text)
      Mappings:
      Namespace Name Mixin selector
      official c Lahi;c(Ljava/lang/String;)I
      intermediary method_34238 Lnet/minecraft/class_3544;method_34238(Ljava/lang/String;)I
      named countLines Lnet/minecraft/util/ChatUtil;countLines(Ljava/lang/String;)I
    • endsWithLineBreak

      public static boolean endsWithLineBreak(String text)
      Mappings:
      Namespace Name Mixin selector
      official d Lahi;d(Ljava/lang/String;)Z
      intermediary method_36358 Lnet/minecraft/class_3544;method_36358(Ljava/lang/String;)Z
      named endsWithLineBreak Lnet/minecraft/util/ChatUtil;endsWithLineBreak(Ljava/lang/String;)Z