LiteralCommandNode

class LiteralCommandNode<S>(literal: String, command: Command<S>?, requirement: (S) -> Boolean, redirect: CommandNode<S>?, forks: Boolean, children: Map<String, CommandNode<S>> = emptyMap()) : CommandNode<S>

Constructors

Link copied to clipboard
constructor(literal: String, command: Command<S>?, requirement: (S) -> Boolean, redirect: CommandNode<S>?, forks: Boolean, children: Map<String, CommandNode<S>> = emptyMap())

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
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> CommandNode<S>.mapSource(mapper: (R) -> S): CommandNode<R>

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

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

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