public class StringNbtReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ARRAY_INVALID |
static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
ARRAY_MIXED |
private static Pattern |
BYTE_PATTERN |
private static Pattern |
DOUBLE_PATTERN |
private static Pattern |
DOUBLE_PATTERN_IMPLICIT |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
EXPECTED_KEY |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
EXPECTED_VALUE |
private static Pattern |
FLOAT_PATTERN |
private static Pattern |
INT_PATTERN |
static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
LIST_MIXED |
private static Pattern |
LONG_PATTERN |
private com.mojang.brigadier.StringReader |
reader |
private static Pattern |
SHORT_PATTERN |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
TRAILING |
| Constructor and Description |
|---|
StringNbtReader(com.mojang.brigadier.StringReader reader) |
| Modifier and Type | Method and Description |
|---|---|
private void |
expect(char char2) |
static CompoundTag |
parse(String string) |
CompoundTag |
parseCompoundTag() |
private Tag |
parseListTag() |
private Tag |
parsePrimitive(String input) |
Tag |
parseTag() |
protected Tag |
parseTagArray() |
protected Tag |
parseTagPrimitive() |
private Tag |
parseTagPrimitiveArray() |
private <T extends Number> |
readArray(TagReader<?> arrayTypeReader,
TagReader<?> typeReader) |
private boolean |
readComma() |
(package private) CompoundTag |
readCompoundTag() |
protected String |
readString() |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TRAILING
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXPECTED_KEY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXPECTED_VALUE
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType LIST_MIXED
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ARRAY_MIXED
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ARRAY_INVALID
private static final Pattern DOUBLE_PATTERN_IMPLICIT
private static final Pattern DOUBLE_PATTERN
private static final Pattern FLOAT_PATTERN
private static final Pattern BYTE_PATTERN
private static final Pattern LONG_PATTERN
private static final Pattern SHORT_PATTERN
private static final Pattern INT_PATTERN
private final com.mojang.brigadier.StringReader reader
public static CompoundTag parse(String string) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionCompoundTag readCompoundTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprotected String readString() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprotected Tag parseTagPrimitive() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic Tag parseTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprotected Tag parseTagArray() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic CompoundTag parseCompoundTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprivate Tag parseListTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprivate Tag parseTagPrimitiveArray() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprivate <T extends Number> List<T> readArray(TagReader<?> arrayTypeReader, TagReader<?> typeReader)
private boolean readComma()
private void expect(char char2)
throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException