Package org.core.command.argument
Interface SuggestCommandArgument<T>
- All Known Subinterfaces:
CommandArgument<T>
- All Known Implementing Classes:
AnyArgument
,BlockGroupArgument
,BlockPositionArgument
,BlockTypeArgument
,BlockTypesArgument
,BooleanArgument
,DoubleArgument
,EnumArgument
,ExactArgument
,ExactPositionArgument
,FlatRemainingArgument
,FloatArgument
,IdentifiableArgument
,IntegerArgument
,LivePlayerArgument
,MappedArgumentWrapper
,OptionalArgument
,PermissionOrArgument
,PositionArgument
,RemainingArgument
,SourceOrLivePlayerArgument
,StringArgument
,StringParserArgument
,SuggestionArgument
,UserArgument
,Vector3Argument
,Vector3DoubleArgument
,Vector3IntegerArgument
,WorldArgument
public interface SuggestCommandArgument<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<net.kyori.adventure.text.Component>
errorMessage(CommandContext context, CommandArgumentContext<T> argument)
suggest(CommandContext commandContext, CommandArgumentContext<T> argument)
-
Method Details
-
errorMessage
default Optional<net.kyori.adventure.text.Component> errorMessage(CommandContext context, CommandArgumentContext<T> argument) -
suggest
Collection<String> suggest(CommandContext commandContext, CommandArgumentContext<T> argument) throws NotEnoughArguments- Throws:
NotEnoughArguments
-