Package net.minecraft.command.arguments
Class NBTPathArgument
java.lang.Object
net.minecraft.command.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
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class(package private) static interface(package private) static class(package private) static classstatic class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTagPredicate(CompoundNBT p_218080_0_) static NBTPathArgument.NBTPathgetPath(com.mojang.brigadier.context.CommandContext<CommandSource> p_197148_0_, String p_197148_1_) private static booleanisAllowedInUnquotedName(char p_197146_0_) static NBTPathArgumentnbtPath()parse(com.mojang.brigadier.StringReader p_parse_1_) private static NBTPathArgument.INodeparseNode(com.mojang.brigadier.StringReader p_218079_0_, boolean p_218079_1_) private static NBTPathArgument.INodereadObjectNode(com.mojang.brigadier.StringReader p_218083_0_, String p_218083_1_) private static StringreadUnquotedName(com.mojang.brigadier.StringReader p_197151_0_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
-
Constructor Details
-
NBTPathArgument
public NBTPathArgument()
-
-
Method Details
-
nbtPath
-
getPath
public static NBTPathArgument.NBTPath getPath(com.mojang.brigadier.context.CommandContext<CommandSource> p_197148_0_, String p_197148_1_) -
parse
public NBTPathArgument.NBTPath parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<NBTPathArgument.NBTPath>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parseNode
private static NBTPathArgument.INode parseNode(com.mojang.brigadier.StringReader p_218079_0_, boolean p_218079_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readObjectNode
private static NBTPathArgument.INode readObjectNode(com.mojang.brigadier.StringReader p_218083_0_, String p_218083_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readUnquotedName
private static String readUnquotedName(com.mojang.brigadier.StringReader p_197151_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<NBTPathArgument.NBTPath>
-
isAllowedInUnquotedName
private static boolean isAllowedInUnquotedName(char p_197146_0_) -
createTagPredicate
-