Class NbtPathParser<C>
java.lang.Object
org.incendo.cloud.brigadier.parser.WrappedBrigadierParser<C, net.minecraft.commands.arguments.NbtPathArgument.NbtPath>
org.incendo.cloud.minecraft.modded.parser.NbtPathParser<C>
- Type Parameters:
C- the sender type
- All Implemented Interfaces:
ArgumentParser<C, net.minecraft.commands.arguments.NbtPathArgument.NbtPath>, SuggestionProvider<C>, SuggestionProviderHolder<C>
public final class NbtPathParser<C>
extends WrappedBrigadierParser<C, net.minecraft.commands.arguments.NbtPathArgument.NbtPath>
An argument for
NBT paths to locations within
Tags.-
Nested Class Summary
Nested classes/interfaces inherited from class WrappedBrigadierParser
WrappedBrigadierParser.ParseFunction<T>Nested classes/interfaces inherited from interface ArgumentParser
ArgumentParser.FutureArgumentParser<C,T> -
Field Summary
Fields inherited from class WrappedBrigadierParser
COMMAND_CONTEXT_BRIGADIER_NATIVE_SENDER -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull CommandComponent.Builder<C, net.minecraft.commands.arguments.NbtPathArgument.NbtPath> Returns aCommandComponent.BuilderusingnbtPathParser()as the parser.static <C> @NonNull ParserDescriptor<C, net.minecraft.commands.arguments.NbtPathArgument.NbtPath> Creates a new nbt path parser.Methods inherited from class WrappedBrigadierParser
nativeArgumentType, parse, suggestionsFutureMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentParser
flatMap, flatMapSuccess, mapSuccess, parseFuture, suggestionProvider
-
Method Details
-
nbtPathParser
public static <C> @NonNull ParserDescriptor<C, net.minecraft.commands.arguments.NbtPathArgument.NbtPath> nbtPathParser()Creates a new nbt path parser.- Type Parameters:
C- command sender type- Returns:
- the created parser
-
nbtPathComponent
public static <C> @NonNull CommandComponent.Builder<C, net.minecraft.commands.arguments.NbtPathArgument.NbtPath> nbtPathComponent()Returns aCommandComponent.BuilderusingnbtPathParser()as the parser.- Type Parameters:
C- the command sender type- Returns:
- the component builder
-