Package top.focess.qq.api.command
Interface SpecialArgumentComplexHandler
-
- All Known Subinterfaces:
SpecialArgumentHandler
- 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 SpecialArgumentComplexHandler
This class is used to handle special arguments, which start with "@". This is a functional interface whose functional method ishandle(String, CommandSender, Command, String[], int, String...).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @NonNull Stringhandle(String name, CommandSender sender, Command command, String[] args, int i, String... arguments)Handle the special argumentdefault voidunregister()Unregister the special argument
-
-
-
Method Detail
-
handle
@NonNull String handle(String name, CommandSender sender, Command command, String[] args, int i, String... arguments)
Handle the special argument- 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
-
unregister
default void unregister()
Unregister the special argument
-
-