Package dev.jorel.commandapi.executors
Interface ProxyResultingCommandExecutor
- All Superinterfaces:
IExecutorResulting<NativeProxyCommandSender>,IExecutorTyped
- 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 ProxyResultingCommandExecutor
extends IExecutorResulting<NativeProxyCommandSender>
A resulting command executor for a NativeProxyCommandSender
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExecutorTypegetType()Returns the type of the sender of the current executor.intrun(NativeProxyCommandSender sender, Object[] args) The code to run when this command is performedMethods inherited from interface dev.jorel.commandapi.executors.IExecutorResulting
executeWith
-
Method Details
-
run
The code to run when this command is performed- Specified by:
runin interfaceIExecutorResulting<NativeProxyCommandSender>- Parameters:
sender- The sender of this command (a player, the console etc.)args- The arguments given to this command. The objects are determined by the hashmap of arguments IN THE ORDER of insertion into the hashmap- Returns:
- the result of this command
- Throws:
WrapperCommandSyntaxException- if an error occurs during the execution of this command
-
getType
Returns the type of the sender of the current executor.- Specified by:
getTypein interfaceIExecutorTyped- Returns:
- the type of the sender of the current executor
-