Package dev.jorel.commandapi.executors
Interface CommandBlockCommandExecutor
- All Superinterfaces:
IExecutorNormal<org.bukkit.command.BlockCommandSender>,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 CommandBlockCommandExecutor
extends IExecutorNormal<org.bukkit.command.BlockCommandSender>
A normal command executor for a BlockCommandSender
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExecutorTypegetType()Returns the type of the sender of the current executor.voidThe code to run when this command is performedMethods inherited from interface dev.jorel.commandapi.executors.IExecutorNormal
executeWith
-
Method Details
-
run
void run(org.bukkit.command.BlockCommandSender sender, Object[] args) throws WrapperCommandSyntaxException The code to run when this command is performed- Specified by:
runin interfaceIExecutorNormal<org.bukkit.command.BlockCommandSender>- 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- 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
-