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
Modifier 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 class
static class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateTagPredicate
(CompoundNBT p_218080_0_) static NBTPathArgument.NBTPath
getPath
(com.mojang.brigadier.context.CommandContext<CommandSource> p_197148_0_, String p_197148_1_) private static boolean
isAllowedInUnquotedName
(char p_197146_0_) static NBTPathArgument
nbtPath()
parse
(com.mojang.brigadier.StringReader p_parse_1_) private static NBTPathArgument.INode
parseNode
(com.mojang.brigadier.StringReader p_218079_0_, boolean p_218079_1_) private static NBTPathArgument.INode
readObjectNode
(com.mojang.brigadier.StringReader p_218083_0_, String p_218083_1_) private static String
readUnquotedName
(com.mojang.brigadier.StringReader p_197151_0_) 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
-
-
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:
parse
in 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:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<NBTPathArgument.NBTPath>
-
isAllowedInUnquotedName
private static boolean isAllowedInUnquotedName(char p_197146_0_) -
createTagPredicate
-