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 Summary
Modifier 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 class
static class
(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static Collection<String>
private static char
private static char
private static char
private static char
private static char
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateTagPredicate(CompoundTag p_99511_)
static NbtPathArgument.NbtPath
getPath(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_99499_, String p_99500_)
private static boolean
isAllowedInUnquotedName(char p_99489_)
static NbtPathArgument
nbtPath()
parse(com.mojang.brigadier.StringReader p_99491_)
private static NbtPathArgument.Node
parseNode(com.mojang.brigadier.StringReader p_99496_, boolean p_99497_)
private static NbtPathArgument.Node
readObjectNode(com.mojang.brigadier.StringReader p_99493_, String p_99494_)
private static String
readUnquotedName(com.mojang.brigadier.StringReader p_99509_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
-
ERROR_INVALID_NODE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID_NODE -
ERROR_NOTHING_FOUND
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOTHING_FOUND -
INDEX_MATCH_START
private static final char INDEX_MATCH_START- See Also:
- Constant Field Values
-
INDEX_MATCH_END
private static final char INDEX_MATCH_END- See Also:
- Constant Field Values
-
KEY_MATCH_START
private static final char KEY_MATCH_START- See Also:
- Constant Field Values
-
KEY_MATCH_END
private static final char KEY_MATCH_END- See Also:
- Constant Field Values
-
QUOTED_KEY_START
private static final char QUOTED_KEY_START- See Also:
- Constant Field Values
-
-
Constructor Details
-
NbtPathArgument
public NbtPathArgument()
-
-
Method Details
-
nbtPath
-
getPath
public static NbtPathArgument.NbtPath getPath(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_99499_, String p_99500_) -
parse
public NbtPathArgument.NbtPath parse(com.mojang.brigadier.StringReader p_99491_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parseNode
private 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
-
readObjectNode
private 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
-
readUnquotedName
private static String readUnquotedName(com.mojang.brigadier.StringReader p_99509_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>
-
isAllowedInUnquotedName
private static boolean isAllowedInUnquotedName(char p_99489_) -
createTagPredicate
-