RodPresetParser

class RodPresetParser<C> : ArgumentParser<C, RodConfiguration> , BlockingSuggestionProvider.Strings<CommandSender> , KoinComponent

ロッドプリセットのコマンド引数パーサー プリセット名の自動補完とバリデーションを提供

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, RodConfiguration, 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>, RodConfiguration, 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>, RodConfiguration, CompletableFuture<O>>): @NonNull ArgumentParser.FutureArgumentParser<C, O>
Link copied to clipboard
open override fun parse(commandContext: CommandContext<C & Any>, commandInput: CommandInput): ArgumentParseResult<RodConfiguration>

プリセット名を解析してRodConfigurationを取得

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

利用可能なプリセット名のサジェストを提供

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>>