public class NBTPathArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<NBTPathArgument.NBTPath>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
NBTPathArgument.CollectionNode |
(package private) static class |
NBTPathArgument.CompoundNode |
(package private) static class |
NBTPathArgument.EmptyListNode |
(package private) static interface |
NBTPathArgument.INode |
(package private) static class |
NBTPathArgument.JsonNode |
(package private) static class |
NBTPathArgument.ListNode |
static class |
NBTPathArgument.NBTPath |
(package private) static class |
NBTPathArgument.StringNode |
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
NOTHING_FOUND |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
PATH_MALFORMED |
Constructor and Description |
---|
NBTPathArgument() |
Modifier and Type | Method and Description |
---|---|
private static java.util.function.Predicate<INBT> |
equalToCompoundPredicate(CompoundNBT p_218080_0_) |
private static NBTPathArgument.INode |
func_218079_a(com.mojang.brigadier.StringReader p_218079_0_,
boolean p_218079_1_) |
private static NBTPathArgument.INode |
func_218083_a(com.mojang.brigadier.StringReader p_218083_0_,
java.lang.String p_218083_1_) |
java.util.Collection<java.lang.String> |
getExamples() |
static NBTPathArgument.NBTPath |
getNBTPath(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
private static boolean |
isSimpleNameChar(char ch) |
static NBTPathArgument |
nbtPath() |
NBTPathArgument.NBTPath |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
private static java.lang.String |
readTagName(com.mojang.brigadier.StringReader p_197151_0_) |
private static final java.util.Collection<java.lang.String> EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PATH_MALFORMED
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOTHING_FOUND
public static NBTPathArgument nbtPath()
public static NBTPathArgument.NBTPath getNBTPath(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name)
public NBTPathArgument.NBTPath parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<NBTPathArgument.NBTPath>
com.mojang.brigadier.exceptions.CommandSyntaxException
private static NBTPathArgument.INode func_218079_a(com.mojang.brigadier.StringReader p_218079_0_, boolean p_218079_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static NBTPathArgument.INode func_218083_a(com.mojang.brigadier.StringReader p_218083_0_, java.lang.String p_218083_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static java.lang.String readTagName(com.mojang.brigadier.StringReader p_197151_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<NBTPathArgument.NBTPath>
private static boolean isSimpleNameChar(char ch)
private static java.util.function.Predicate<INBT> equalToCompoundPredicate(CompoundNBT p_218080_0_)