Class ResourceLocationParser<C>
java.lang.Object
org.incendo.cloud.brigadier.parser.WrappedBrigadierParser<C,net.minecraft.resources.ResourceLocation>
org.incendo.cloud.minecraft.modded.parser.ResourceLocationParser<C>
- Type Parameters:
C- the sender type
- All Implemented Interfaces:
ArgumentParser<C,,net.minecraft.resources.ResourceLocation> SuggestionProvider<C>,SuggestionProviderHolder<C>
public final class ResourceLocationParser<C>
extends WrappedBrigadierParser<C,net.minecraft.resources.ResourceLocation>
An argument parsing a
ResourceLocation.-
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.resources.ResourceLocation> Returns aCommandComponent.BuilderusingresourceLocationParser()as the parser.static <C> @NonNull ParserDescriptor<C, net.minecraft.resources.ResourceLocation> Creates a new resource location 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
-
resourceLocationParser
public static <C> @NonNull ParserDescriptor<C,net.minecraft.resources.ResourceLocation> resourceLocationParser()Creates a new resource location parser.- Type Parameters:
C- command sender type- Returns:
- the created parser
-
resourceLocationComponent
public static <C> @NonNull CommandComponent.Builder<C,net.minecraft.resources.ResourceLocation> resourceLocationComponent()Returns aCommandComponent.BuilderusingresourceLocationParser()as the parser.- Type Parameters:
C- the command sender type- Returns:
- the component builder
-