net.minecraft.util

public class StringUtil

azl
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, float arg1)
formatTickDuration(int arg0, float arg1)
method_15439(int arg0, float arg1)
formatTicks(int ticks, float tickRate)
m_14404_(int p_14405_, float p_313197_)
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_)
public static boolean
a(char arg0)
isAllowedChatCharacter(char arg0)
method_57175(char arg0)
isValidChar(char c)
m_324425_(char p_336025_)
public static boolean
f(String arg0)
isValidPlayerName(String arg0)
method_57179(String arg0)
isValidPlayerName(String name)
m_319148_(String p_328576_)
public static String
g(String arg0)
filterText(String arg0)
method_57180(String arg0)
stripInvalidChars(String string)
m_319203_(String p_329405_)
public static String
a(String arg0, boolean arg1)
filterText(String arg0, boolean arg1)
method_57177(String arg0, boolean arg1)
stripInvalidChars(String string, boolean allowLinebreak)
m_323063_(String p_335196_, boolean p_329791_)
public static boolean
a(int arg0)
isWhitespace(int arg0)
method_57176(int arg0)
isWhitespace(int c)
m_321934_(int p_332672_)
public static boolean
h(String arg0)
isBlank(String arg0)
method_57181(String arg0)
isBlank(String string)
m_320314_(String p_334499_)