public class NbtPathArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<NbtPathArgumentType.NbtPath>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
NbtPathArgumentType.AllListElementNode |
(package private) static class |
NbtPathArgumentType.FilteredListElementNode |
(package private) static class |
NbtPathArgumentType.FilteredNamedNode |
(package private) static class |
NbtPathArgumentType.FilteredRootNode |
(package private) static class |
NbtPathArgumentType.IndexedListElementNode |
(package private) static class |
NbtPathArgumentType.NamedNode |
static class |
NbtPathArgumentType.NbtPath |
(package private) static interface |
NbtPathArgumentType.PathNode |
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INVALID_PATH_NODE_EXCEPTION |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
NOTHING_FOUND_EXCEPTION |
Constructor and Description |
---|
NbtPathArgumentType() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
static NbtPathArgumentType.NbtPath |
getNbtPath(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
private static Predicate<Tag> |
getPredicate(CompoundTag filter) |
private static boolean |
isNameCharacter(char c) |
static NbtPathArgumentType |
nbtPath() |
NbtPathArgumentType.NbtPath |
parse(com.mojang.brigadier.StringReader stringReader) |
private static NbtPathArgumentType.PathNode |
parseNode(com.mojang.brigadier.StringReader reader,
boolean root) |
private static NbtPathArgumentType.PathNode |
readCompoundChildNode(com.mojang.brigadier.StringReader reader,
String name) |
private static String |
readName(com.mojang.brigadier.StringReader reader) |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_PATH_NODE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOTHING_FOUND_EXCEPTION
public static NbtPathArgumentType nbtPath()
public static NbtPathArgumentType.NbtPath getNbtPath(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public NbtPathArgumentType.NbtPath parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<NbtPathArgumentType.NbtPath>
com.mojang.brigadier.exceptions.CommandSyntaxException
private static NbtPathArgumentType.PathNode parseNode(com.mojang.brigadier.StringReader reader, boolean root) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static NbtPathArgumentType.PathNode readCompoundChildNode(com.mojang.brigadier.StringReader reader, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static String readName(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<NbtPathArgumentType.NbtPath>
private static boolean isNameCharacter(char c)
private static Predicate<Tag> getPredicate(CompoundTag filter)