Package studio.mevera.imperat.type
Class TargetSelectorArgument
java.lang.Object
studio.mevera.imperat.util.TypeCapturer
studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,TargetSelector>
studio.mevera.imperat.type.TargetSelectorArgument
- All Implemented Interfaces:
studio.mevera.imperat.util.priority.Prioritizable
public final class TargetSelectorArgument
extends studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,TargetSelector>
-
Field Summary
Fields inherited from class studio.mevera.imperat.command.arguments.type.ArgumentType
suggestions, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstudio.mevera.imperat.providers.SuggestionProvider<BukkitCommandSource>Returns the suggestion resolver associated with this parameter type.parse(@NotNull studio.mevera.imperat.context.CommandContext<BukkitCommandSource> context, @NotNull studio.mevera.imperat.command.arguments.Argument<BukkitCommandSource> argument, @NotNull String input) parse(@NotNull studio.mevera.imperat.context.ExecutionContext<BukkitCommandSource> context, @NonNull studio.mevera.imperat.context.internal.Cursor<BukkitCommandSource> cursor) Methods inherited from class studio.mevera.imperat.command.arguments.type.ArgumentType
addStaticSuggestions, equalsExactly, getDefaultValueProvider, getNumberOfParametersToConsume, getPriority, isGreedy, isRelatedToType, type, wrappedTypeMethods inherited from class studio.mevera.imperat.util.TypeCapturer
extractType, extractType
-
Constructor Details
-
TargetSelectorArgument
public TargetSelectorArgument()
-
-
Method Details
-
parse
public TargetSelector parse(@NotNull @NotNull studio.mevera.imperat.context.CommandContext<BukkitCommandSource> context, @NotNull @NotNull studio.mevera.imperat.command.arguments.Argument<BukkitCommandSource> argument, @NotNull @NotNull String input) throws studio.mevera.imperat.exception.CommandException - Specified by:
parsein classstudio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,TargetSelector> - Throws:
studio.mevera.imperat.exception.CommandException
-
parse
public TargetSelector parse(@NotNull @NotNull studio.mevera.imperat.context.ExecutionContext<BukkitCommandSource> context, @NonNull studio.mevera.imperat.context.internal.Cursor<BukkitCommandSource> cursor) throws studio.mevera.imperat.exception.CommandException - Overrides:
parsein classstudio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,TargetSelector> - Throws:
studio.mevera.imperat.exception.CommandException
-
getSuggestionProvider
public studio.mevera.imperat.providers.SuggestionProvider<BukkitCommandSource> getSuggestionProvider()Returns the suggestion resolver associated with this parameter type.- Overrides:
getSuggestionProviderin classstudio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,TargetSelector> - Returns:
- the suggestion resolver for generating suggestions based on the parameter type.
-