Class SubCommandHolder

    • Method Detail

      • getSubCommands

        @NotNull
        public @Unmodifiable @NotNull List<CommandgetSubCommands()
        Gets subcommands that is included in this holder.
        Returns:
        the included subcommands in this holder
      • search

        @Nullable
        public @Nullable Command search​(@NotNull
                                        @NotNull Argument argument)
        Gets the command whose name matches the string contained in the Argument.
        Parameters:
        argument - the argument to search
        Returns:
        the matched command, or null if there is no match.
      • search

        @Nullable
        public @Nullable Command search​(@NotNull
                                        @NotNull String str)
        Gets the command whose name matches the string.
        Parameters:
        str - the string to search
        Returns:
        the matched command, or null if there is no match.
      • searchOptional

        @NotNull
        public @NotNull Optional<CommandsearchOptional​(@NotNull
                                                         @NotNull Argument argument)
        Gets the command whose name matches the string contained in the Argument.
        Parameters:
        argument - the argument to search
        Returns:
        the search result
      • searchOptional

        @NotNull
        public @NotNull Optional<CommandsearchOptional​(@NotNull
                                                         @NotNull String str)
        Gets the command whose name matches the string.
        Parameters:
        str - the string to search
        Returns:
        the search result