ArgumentCommandNode

class ArgumentCommandNode<S, T>(name: String, val type: ArgumentType<T>, command: Command<S>?, requirement: (S) -> Boolean, redirect: CommandNode<S>? = null, forks: Boolean = false, children: Map<String, CommandNode<S>>, customSuggestions: SuggestionProvider<S>? = null) : CommandNode<S>

Constructors

Link copied to clipboard
constructor(name: String, type: ArgumentType<T>, command: Command<S>?, requirement: (S) -> Boolean, redirect: CommandNode<S>? = null, forks: Boolean = false, children: Map<String, CommandNode<S>>, customSuggestions: SuggestionProvider<S>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val examples: Set<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val usageText: String

Functions

Link copied to clipboard
open operator override fun compareTo(other: CommandNode<S>): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open suspend override fun listSuggestions(context: CommandContext<S>, builder: SuggestionsBuilder): Suggestions
Link copied to clipboard
fun <S, R, T> ArgumentCommandNode<S, T>.mapSource(mapper: (R) -> S): ArgumentCommandNode<R, T>

Converts the given ArgumentCommandNode with source type S to an ArgumentCommandNode with source type R.

fun <S, R> CommandNode<S>.mapSource(mapper: (R) -> S): CommandNode<R>

Converts the given CommandNode with source type S to an CommandNode with source type R.

Link copied to clipboard
open override fun toBuilder(): RequiredArgumentBuilder<S, T>
Link copied to clipboard
open override fun toString(): String