Package top.focess.qq.api.command
Interface SpecialArgumentHandler
-
- All Superinterfaces:
SpecialArgumentComplexHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SpecialArgumentHandler extends SpecialArgumentComplexHandler
This class is used to handle special arguments, which start with "@". This is a functional interface whose functional method ishandle(CommandSender, Command, String[], int).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NonNull Stringhandle(String name, CommandSender sender, Command command, String[] args, int i, String... arguments)Handle the special argument@NonNull Stringhandle(CommandSender sender, Command command, String[] args, int i)Handle the special argument-
Methods inherited from interface top.focess.qq.api.command.SpecialArgumentComplexHandler
unregister
-
-
-
-
Method Detail
-
handle
@NonNull String handle(CommandSender sender, Command command, String[] args, int i)
Handle the special argument- Parameters:
sender- the sender of the commandcommand- the commandargs- the argumentsi- the index of the argument- Returns:
- the argument after handle
-
handle
default @NonNull String handle(String name, CommandSender sender, Command command, String[] args, int i, String... arguments)
Description copied from interface:SpecialArgumentComplexHandlerHandle the special argument- Specified by:
handlein interfaceSpecialArgumentComplexHandler- Parameters:
name- the name of the special argumentsender- the sender of the commandcommand- the commandargs- the arguments of the commandi- the index of the argumentarguments- the arguments of the special argument- Returns:
- the argument after handle
-
-