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.CommandSyntaxException
CompoundTag readCompoundTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
protected String readString() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
protected Tag parseTagPrimitive() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public Tag parseTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
protected Tag parseTagArray() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public CompoundTag parseCompoundTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private Tag parseListTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private Tag parseTagPrimitiveArray() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private <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