类 TagParser
java.lang.Object
net.minecraft.nbt.TagParser
-
字段概要
字段修饰符和类型字段说明private static final Pattern
private static final Pattern
private static final Pattern
static final char
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final Pattern
private static final Pattern
private static final char
private static final char
private static final Pattern
static final char
private final com.mojang.brigadier.StringReader
private static final Pattern
private static final char
private static final char
-
构造器概要
构造器 -
方法概要
-
字段详细资料
-
ERROR_TRAILING_DATA
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TRAILING_DATA -
ERROR_EXPECTED_KEY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_KEY -
ERROR_EXPECTED_VALUE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_VALUE -
ERROR_INSERT_MIXED_LIST
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INSERT_MIXED_LIST -
ERROR_INSERT_MIXED_ARRAY
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INSERT_MIXED_ARRAY -
ERROR_INVALID_ARRAY
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_ARRAY -
ELEMENT_SEPARATOR
public static final char ELEMENT_SEPARATOR- 另请参阅:
-
NAME_VALUE_SEPARATOR
public static final char NAME_VALUE_SEPARATOR- 另请参阅:
-
LIST_OPEN
private static final char LIST_OPEN- 另请参阅:
-
LIST_CLOSE
private static final char LIST_CLOSE- 另请参阅:
-
STRUCT_CLOSE
private static final char STRUCT_CLOSE- 另请参阅:
-
STRUCT_OPEN
private static final char STRUCT_OPEN- 另请参阅:
-
DOUBLE_PATTERN_NOSUFFIX
-
DOUBLE_PATTERN
-
FLOAT_PATTERN
-
BYTE_PATTERN
-
LONG_PATTERN
-
SHORT_PATTERN
-
INT_PATTERN
-
reader
private final com.mojang.brigadier.StringReader reader
-
-
构造器详细资料
-
TagParser
public TagParser(com.mojang.brigadier.StringReader pReader)
-
-
方法详细资料
-
parseTag
public static CompoundTag parseTag(String pText) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readSingleStruct
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readKey
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readTypedValue
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
type
-
readValue
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readList
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readStruct
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readListTag
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readArrayTag
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readArray
private <T extends Number> List<T> readArray(TagType<?> pArrayType, TagType<?> pElementType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
hasElementSeparator
private boolean hasElementSeparator() -
expect
private void expect(char pExpected) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-