Interface CommandExecutor

  • All Superinterfaces:
    top.focess.command.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
    extends top.focess.command.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 Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default top.focess.command.CommandResult execute​(top.focess.command.CommandSender commandSender, top.focess.command.DataCollection dataCollection, top.focess.command.IOHandler ioHandler)  
      top.focess.command.CommandResult execute​(CommandSender sender, top.focess.command.DataCollection dataCollection, IOHandler ioHandler)
      Used to execute the command under certain conditions
    • Method Detail

      • execute

        @NotNull
        top.focess.command.CommandResult execute​(CommandSender sender,
                                                 top.focess.command.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
      • execute

        @NotNull
        default top.focess.command.CommandResult execute​(top.focess.command.CommandSender commandSender,
                                                         top.focess.command.DataCollection dataCollection,
                                                         @NotNull
                                                         top.focess.command.IOHandler ioHandler)
        Specified by:
        execute in interface top.focess.command.CommandExecutor