Class ExecSelectionCommand

    • Constructor Detail

      • ExecSelectionCommand

        public ExecSelectionCommand​(@NotNull
                                    @NotNull GUIItemList<?> list,
                                    @NotNull
                                    @NotNull CommandType command,
                                    @NotNull
                                    @NotNull CrossfireServerConnection crossfireServerConnection,
                                    @NotNull
                                    @NotNull FloorView floorView,
                                    @NotNull
                                    @NotNull CommandQueue commandQueue)
        Creates a new instance.
        Parameters:
        list - the list to execute in
        command - the command to execute
        crossfireServerConnection - the connection to execute commands on
        floorView - the floor view to use
        commandQueue - the command queue to use
    • Method Detail

      • canExecute

        public boolean canExecute()
        Description copied from interface: GUICommand
        Returns whether this command may be executed.
        Specified by:
        canExecute in interface GUICommand
        Returns:
        whether this command may be executed