Class NbtPathArgument
java.lang.Object
net.minecraft.commands.arguments.NbtPathArgument
- All Implemented Interfaces:
ArgumentType<NbtPathArgument.NbtPath>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classstatic classprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleCommandExceptionTypeprivate static final DynamicCommandExceptionTypeprivate static final DynamicCommandExceptionTypestatic final SimpleCommandExceptionTypestatic final DynamicCommandExceptionTypeprivate static final Collection<String> private static final charprivate static final charprivate static final charprivate static final charprivate static final charprivate static final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTagPredicate(CompoundTag pattern) static NbtPathArgument.NbtPathgetPath(CommandContext<CommandSourceStack> context, String name) private static booleanisAllowedInUnquotedName(char c) static NbtPathArgumentnbtPath()parse(StringReader reader) private static NbtPathArgument.NodeparseNode(StringReader reader, boolean firstNode) private static NbtPathArgument.NodereadObjectNode(StringReader reader, String name) private static StringreadUnquotedName(StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
listSuggestions, parse
-
Field Details
-
EXAMPLES
-
ERROR_INVALID_NODE
-
ERROR_DATA_TOO_DEEP
-
ERROR_NOTHING_FOUND
-
ERROR_EXPECTED_LIST
-
ERROR_INVALID_INDEX
-
INDEX_MATCH_START
private static final char INDEX_MATCH_START- See Also:
-
INDEX_MATCH_END
private static final char INDEX_MATCH_END- See Also:
-
KEY_MATCH_START
private static final char KEY_MATCH_START- See Also:
-
KEY_MATCH_END
private static final char KEY_MATCH_END- See Also:
-
QUOTED_KEY_START
private static final char QUOTED_KEY_START- See Also:
-
SINGLE_QUOTED_KEY_START
private static final char SINGLE_QUOTED_KEY_START- See Also:
-
-
Constructor Details
-
NbtPathArgument
public NbtPathArgument()
-
-
Method Details
-
nbtPath
-
getPath
public static NbtPathArgument.NbtPath getPath(CommandContext<CommandSourceStack> context, String name) -
parse
- Specified by:
parsein interfaceArgumentType<NbtPathArgument.NbtPath>- Throws:
CommandSyntaxException
-
parseNode
private static NbtPathArgument.Node parseNode(StringReader reader, boolean firstNode) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
readObjectNode
private static NbtPathArgument.Node readObjectNode(StringReader reader, String name) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
readUnquotedName
- Throws:
CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<NbtPathArgument.NbtPath>
-
isAllowedInUnquotedName
private static boolean isAllowedInUnquotedName(char c) -
createTagPredicate
-