Package net.minecraft.commands.arguments
Class NbtPathArgument
java.lang.Object
net.minecraft.commands.arguments.NbtPathArgument
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>
public class NbtPathArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static classstatic class(package private) static interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType(package private) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType(package private) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateTagPredicate(CompoundTag p_99511_) static NbtPathArgument.NbtPathgetPath(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_99499_, String p_99500_) private static booleanisAllowedInUnquotedName(char p_99489_) static NbtPathArgumentnbtPath()parse(com.mojang.brigadier.StringReader p_99491_) private static NbtPathArgument.NodeparseNode(com.mojang.brigadier.StringReader p_99496_, boolean p_99497_) private static NbtPathArgument.NodereadObjectNode(com.mojang.brigadier.StringReader p_99493_, String p_99494_) private static StringreadUnquotedName(com.mojang.brigadier.StringReader p_99509_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentTypelistSuggestions
- 
Field Details- 
EXAMPLES
- 
ERROR_INVALID_NODEpublic static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID_NODE
- 
ERROR_DATA_TOO_DEEPpublic static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_DATA_TOO_DEEP
- 
ERROR_NOTHING_FOUNDpublic static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOTHING_FOUND
- 
ERROR_EXPECTED_LISTstatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_EXPECTED_LIST
- 
ERROR_INVALID_INDEXstatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_INDEX
- 
INDEX_MATCH_STARTprivate static final char INDEX_MATCH_START- See Also:
 
- 
INDEX_MATCH_ENDprivate static final char INDEX_MATCH_END- See Also:
 
- 
KEY_MATCH_STARTprivate static final char KEY_MATCH_START- See Also:
 
- 
KEY_MATCH_ENDprivate static final char KEY_MATCH_END- See Also:
 
- 
QUOTED_KEY_STARTprivate static final char QUOTED_KEY_START- See Also:
 
- 
SINGLE_QUOTED_KEY_STARTprivate static final char SINGLE_QUOTED_KEY_START- See Also:
 
 
- 
- 
Constructor Details- 
NbtPathArgumentpublic NbtPathArgument()
 
- 
- 
Method Details- 
nbtPath
- 
getPathpublic static NbtPathArgument.NbtPath getPath(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_99499_, String p_99500_) 
- 
parsepublic NbtPathArgument.NbtPath parse(com.mojang.brigadier.StringReader p_99491_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- parsein interface- com.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
parseNodeprivate static NbtPathArgument.Node parseNode(com.mojang.brigadier.StringReader p_99496_, boolean p_99497_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
readObjectNodeprivate static NbtPathArgument.Node readObjectNode(com.mojang.brigadier.StringReader p_99493_, String p_99494_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
readUnquotedNameprivate static String readUnquotedName(com.mojang.brigadier.StringReader p_99509_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
getExamples- Specified by:
- getExamplesin interface- com.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>
 
- 
isAllowedInUnquotedNameprivate static boolean isAllowedInUnquotedName(char p_99489_) 
- 
createTagPredicate
 
-