RodTypeParser

class RodTypeParser<C> : ArgumentParser<C, String> , BlockingSuggestionProvider.Strings<CommandSender> , KoinComponent

ロッドタイプのコマンド引数パーサー 既存のプリセットのrodTypeを基にサジェストを提供しつつ、任意の文字列も受け入れる

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@API(status = API.Status.STABLE)
open fun <O : Any> flatMap(mapper: MappedArgumentParser.Mapper<C, String, O>): @NonNull ArgumentParser.FutureArgumentParser<C, O>
Link copied to clipboard
@API(status = API.Status.STABLE)
open fun <O : Any> flatMapSuccess(mapper: @NonNull BiFunction<CommandContext<C>, String, CompletableFuture<ArgumentParseResult<O>>>): @NonNull ArgumentParser.FutureArgumentParser<C, O>
Link copied to clipboard
open fun getKoin(): Koin
Link copied to clipboard
@API(status = API.Status.STABLE)
open fun <O : Any> mapSuccess(mapper: @NonNull BiFunction<CommandContext<C>, String, CompletableFuture<O>>): @NonNull ArgumentParser.FutureArgumentParser<C, O>
Link copied to clipboard
open override fun parse(commandContext: CommandContext<C & Any>, commandInput: CommandInput): ArgumentParseResult<String>

ロッドタイプの文字列を解析(任意の文字列を受け入れる)

Link copied to clipboard
@API(status = API.Status.STABLE)
open fun parseFuture(commandContext: @NonNull CommandContext<C>, commandInput: @NonNull CommandInput): @NonNull CompletableFuture<@NonNull ArgumentParseResult<String>>
Link copied to clipboard
open override fun stringSuggestions(commandContext: CommandContext<CommandSender?>, input: CommandInput): Iterable<String>

既存のプリセットのrodTypeを基にサジェストを提供

Link copied to clipboard
open override fun suggestionProvider(): @NonNull SuggestionProvider<C>
Link copied to clipboard
open override fun suggestions(context: @NonNull CommandContext<CommandSender>, input: @NonNull CommandInput): @NonNull MutableIterable<@NonNull Suggestion>
Link copied to clipboard
open override fun suggestionsFuture(context: @NonNull CommandContext<CommandSender>, input: @NonNull CommandInput): @NonNull CompletableFuture<out @NonNull MutableIterable<@NonNull Suggestion>>