Interface CommandBlockResultingCommandExecutor

All Superinterfaces:
IExecutorResulting<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 CommandBlockResultingCommandExecutor extends IExecutorResulting<org.bukkit.command.BlockCommandSender>
A resulting command executor for a BlockCommandSender
  • Method Summary

    Modifier and Type
    Method
    Description
    default ExecutorType
    Returns the type of the sender of the current executor.
    int
    run(org.bukkit.command.BlockCommandSender sender, Object[] args)
    The code to run when this command is performed

    Methods inherited from interface dev.jorel.commandapi.executors.IExecutorResulting

    executeWith
  • Method Details

    • run

      int run(org.bukkit.command.BlockCommandSender sender, Object[] args) throws WrapperCommandSyntaxException
      The code to run when this command is performed
      Specified by:
      run in interface IExecutorResulting<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
      Returns:
      the result of this command
      Throws:
      WrapperCommandSyntaxException - if an error occurs during the execution of this command
    • getType

      default ExecutorType getType()
      Returns the type of the sender of the current executor.
      Specified by:
      getType in interface IExecutorTyped
      Returns:
      the type of the sender of the current executor