Interface CommandExecutor

  • 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 CommandExecutor
    Represents a command executor to define how to execute command. This is a functional interface whose functional method is execute(CommandSender, DataCollection, IOHandler).
    • Method Detail

      • execute

        @NotNull
        CommandResult execute​(CommandSender sender,
                              DataCollection dataCollection,
                              IOHandler ioHandler)
        Used to execute the command under certain conditions
        Parameters:
        sender - the executor of the command
        dataCollection - parse the arguments the command received
        ioHandler - the receiver of the command
        Returns:
        the result of this execution