net.minecraft.util

public class StringUtil

ame
net.minecraft.util.StringUtil
net.minecraft.class_3544
net.minecraft.util.StringHelper
net.minecraft.src.C_200_
net.minecraft.util.UtilColor

Field summary

Modifier and TypeField
private static final Pattern
a
STRIP_COLOR_PATTERN
field_15771
FORMATTING_CODE
f_14402_
private static final Pattern
b
LINE_PATTERN
field_29204
LINE_BREAK
f_144995_
private static final Pattern
c
LINE_END_PATTERN
field_33559
ENDS_WITH_LINE_BREAK
f_144996_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static String
a(int arg0)
formatTickDuration(int arg0)
method_15439(int arg0)
formatTicks(int ticks)
m_14404_(int p_14405_)
public static String
a(String arg0)
stripColor(String arg0)
method_15440(String arg0)
stripTextFormat(String text)
m_14406_(String p_14407_)
public static boolean
b(String arg0)
isNullOrEmpty(String arg0)
method_15438(String arg0)
isEmpty(String text)
m_14408_(String p_14409_)
public static String
a(String arg0, int arg1, boolean arg2)
truncateStringIfNecessary(String arg0, int arg1, boolean arg2)
method_34963(String arg0, int arg1, boolean arg2)
truncate(String text, int maxLength, boolean addEllipsis)
m_144998_(String p_144999_, int p_145000_, boolean p_145001_)
public static int
c(String arg0)
lineCount(String arg0)
method_34238(String arg0)
countLines(String text)
m_145002_(String p_145003_)
public static boolean
d(String arg0)
endsWithNewLine(String arg0)
method_36358(String arg0)
endsWithLineBreak(String text)
m_145004_(String p_145005_)
public static String
e(String arg0)
trimChatMessage(String arg0)
method_43681(String arg0)
truncateChat(String text)
m_216469_(String p_216470_)