Class EntityAnchorParser<C>
java.lang.Object
org.incendo.cloud.brigadier.parser.WrappedBrigadierParser<C,net.minecraft.commands.arguments.EntityAnchorArgument.Anchor>
org.incendo.cloud.minecraft.modded.parser.EntityAnchorParser<C>
- Type Parameters:
C- the sender type
- All Implemented Interfaces:
ArgumentParser<C,,net.minecraft.commands.arguments.EntityAnchorArgument.Anchor> SuggestionProvider<C>,SuggestionProviderHolder<C>
public final class EntityAnchorParser<C>
extends WrappedBrigadierParser<C,net.minecraft.commands.arguments.EntityAnchorArgument.Anchor>
An argument parsing an
EntityAnchorArgument.Anchor.-
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.commands.arguments.EntityAnchorArgument.Anchor> Returns aCommandComponent.BuilderusingentityAnchorParser()as the parser.static <C> @NonNull ParserDescriptor<C, net.minecraft.commands.arguments.EntityAnchorArgument.Anchor> Creates a new entity anchor 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
-
entityAnchorParser
public static <C> @NonNull ParserDescriptor<C,net.minecraft.commands.arguments.EntityAnchorArgument.Anchor> entityAnchorParser()Creates a new entity anchor parser.- Type Parameters:
C- command sender type- Returns:
- the created parser
-
entityAnchorComponent
public static <C> @NonNull CommandComponent.Builder<C,net.minecraft.commands.arguments.EntityAnchorArgument.Anchor> entityAnchorComponent()Returns aCommandComponent.BuilderusingentityAnchorParser()as the parser.- Type Parameters:
C- the command sender type- Returns:
- the component builder
-