Class MethodCommandExecutor<S extends Source>
java.lang.Object
studio.mevera.imperat.annotations.base.MethodCommandExecutor<S>
- All Implemented Interfaces:
CommandExecution<S>
@Internal
public class MethodCommandExecutor<S extends Source>
extends Object
implements CommandExecution<S>
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(S source, ExecutionContext<S> context) Executes the command's actionsstatic <S extends Source>
MethodCommandExecutor<S>of(Imperat<S> imperat, MethodElement method, List<CommandParameter<S>> fullParameters)
-
Method Details
-
of
public static <S extends Source> MethodCommandExecutor<S> of(Imperat<S> imperat, MethodElement method, List<CommandParameter<S>> fullParameters) -
execute
Executes the command's actions- Specified by:
executein interfaceCommandExecution<S extends Source>- Parameters:
source- the source/sender of this commandcontext- the context of the command- Throws:
ImperatException
-