public class ChatAllowedCharacters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char[] |
ILLEGAL_FILE_CHARACTERS
Array of the special characters that are allowed in any text drawing of Minecraft.
|
static char[] |
ILLEGAL_STRUCTURE_CHARACTERS |
static Level |
NETTY_LEAK_DETECTION |
Constructor and Description |
---|
ChatAllowedCharacters() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
filterAllowedCharacters(java.lang.String input)
Filter a string, keeping only characters for which
isAllowedCharacter(char) returns true. |
static boolean |
isAllowedCharacter(char character)
Checks if the given character is allowed to be put into chat.
|
public static final Level NETTY_LEAK_DETECTION
public static final char[] ILLEGAL_STRUCTURE_CHARACTERS
public static final char[] ILLEGAL_FILE_CHARACTERS
public static boolean isAllowedCharacter(char character)
character
- The character to checkpublic static java.lang.String filterAllowedCharacters(java.lang.String input)
isAllowedCharacter(char)
returns true.
Note that this method strips line breaks, as isAllowedCharacter(char)
returns false for those.input
- The string to filter