Class TagParser<T>
java.lang.Object
net.minecraft.nbt.TagParser<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final SimpleCommandExceptionTypestatic final SimpleCommandExceptionTypestatic final Codec<CompoundTag> static final Codec<CompoundTag> static final charprivate final DynamicOps<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static CompoundTagcastToCompoundOrThrow(StringReader reader, Tag result) static <T> TagParser<T> create(DynamicOps<T> ops) getOps()parseAsArgument(StringReader reader) static CompoundTagparseCompoundAsArgument(StringReader reader) static CompoundTagparseCompoundFully(String input) parseFully(StringReader reader) parseFully(String input)
-
Field Details
-
ERROR_TRAILING_DATA
-
ERROR_EXPECTED_COMPOUND
-
ELEMENT_SEPARATOR
public static final char ELEMENT_SEPARATOR- See Also:
-
NAME_VALUE_SEPARATOR
public static final char NAME_VALUE_SEPARATOR- See Also:
-
NBT_OPS_PARSER
-
FLATTENED_CODEC
-
LENIENT_CODEC
-
ops
-
grammar
-
-
Constructor Details
-
TagParser
-
-
Method Details
-
getOps
-
create
-
castToCompoundOrThrow
private static CompoundTag castToCompoundOrThrow(StringReader reader, Tag result) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
parseCompoundFully
- Throws:
CommandSyntaxException
-
parseFully
- Throws:
CommandSyntaxException
-
parseFully
- Throws:
CommandSyntaxException
-
parseAsArgument
- Throws:
CommandSyntaxException
-
parseCompoundAsArgument
public static CompoundTag parseCompoundAsArgument(StringReader reader) throws CommandSyntaxException - Throws:
CommandSyntaxException
-