net.minecraft.util

public class StringUtil

bbb
net.minecraft.util.StringUtil
net.minecraft.class_3544
net.minecraft.util.StringHelper
net.minecraft.util.UtilColor

Field summary

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

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)
public static String
a(String arg0)
stripColor(String arg0)
method_15440(String arg0)
stripTextFormat(String text)
public static boolean
b(String arg0)
isNullOrEmpty(String arg0)
method_15438(String arg0)
isEmpty(String text)
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)
public static int
c(String arg0)
lineCount(String arg0)
method_34238(String arg0)
countLines(String text)
public static boolean
d(String arg0)
endsWithNewLine(String arg0)
method_36358(String arg0)
endsWithLineBreak(String text)
public static String
e(String arg0)
trimChatMessage(String arg0)
method_43681(String arg0)
truncateChat(String text)
public static boolean
a(char arg0)
isAllowedChatCharacter(char arg0)
method_57175(char arg0)
isValidChar(char c)
public static boolean
f(String arg0)
isValidPlayerName(String arg0)
method_57179(String arg0)
isValidPlayerName(String name)
public static String
g(String arg0)
filterText(String arg0)
method_57180(String arg0)
stripInvalidChars(String string)
public static String
a(String arg0, boolean arg1)
filterText(String arg0, boolean arg1)
method_57177(String arg0, boolean arg1)
stripInvalidChars(String string, boolean allowLinebreak)
public static boolean
a(int arg0)
isWhitespace(int arg0)
method_57176(int arg0)
isWhitespace(int c)
public static boolean
h(String arg0)
isBlank(String arg0)
method_57181(String arg0)
isBlank(String string)