Class NbtTagParser<C>
java.lang.Object
org.incendo.cloud.brigadier.parser.WrappedBrigadierParser<C,net.minecraft.nbt.Tag>
org.incendo.cloud.minecraft.modded.parser.NbtTagParser<C>
- Type Parameters:
C- the sender type
- All Implemented Interfaces:
ArgumentParser<C,,net.minecraft.nbt.Tag> SuggestionProvider<C>,SuggestionProviderHolder<C>
An argument for the string representation of an NBT
Tag.-
Nested Class Summary
Nested classes/interfaces inherited from class org.incendo.cloud.brigadier.parser.WrappedBrigadierParser
WrappedBrigadierParser.ParseFunction<T>Nested classes/interfaces inherited from interface org.incendo.cloud.parser.ArgumentParser
ArgumentParser.FutureArgumentParser<C,T> -
Field Summary
Fields inherited from class org.incendo.cloud.brigadier.parser.WrappedBrigadierParser
COMMAND_CONTEXT_BRIGADIER_NATIVE_SENDER -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull CommandComponent.Builder<C, net.minecraft.nbt.Tag> Returns aCommandComponent.BuilderusingnbtTagParser()as the parser.static <C> @NonNull ParserDescriptor<C, net.minecraft.nbt.Tag> Creates a new nbt tag parser.Methods inherited from class org.incendo.cloud.brigadier.parser.WrappedBrigadierParser
nativeArgumentType, parse, suggestionsFutureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.parser.ArgumentParser
flatMap, flatMapSuccess, mapSuccess, parseFuture, suggestionProvider
-
Method Details
-
nbtTagParser
Creates a new nbt tag parser.- Type Parameters:
C- command sender type- Returns:
- the created parser
-
nbtTagComponent
Returns aCommandComponent.BuilderusingnbtTagParser()as the parser.- Type Parameters:
C- the command sender type- Returns:
- the component builder
-