Index
All Classes and Interfaces|All Packages|Serialized Form
A
- aliases() - Method in interface com.cotani.command.api.CommandNode
-
Set of alternative aliases for this node.
- aliases(String...) - Method in class com.cotani.command.api.CommandBuilder
-
Adds alternative aliases for this command.
- aliases(Collection) - Method in class com.cotani.command.api.CommandBuilder
-
Adds alternative aliases for this command.
- ANY - Enum constant in enum class com.cotani.command.api.SenderType
-
The command can be executed by any sender (players, console, block, etc.).
- apply(CommandSender, String) - Method in interface com.cotani.command.api.CooldownEvaluator
-
Applies the cooldown for the sender.
- argument(Argument) - Method in class com.cotani.command.api.CommandBuilder
-
Appends an argument definition to this command node.
- Argument<T> - Interface in com.cotani.command.argument
-
Represents a typed, parsed command argument in the command tree.
- ArgumentParser<T> - Interface in com.cotani.command.argument
-
Functional parser converting command arguments into a typed object.
- arguments() - Method in interface com.cotani.command.api.CommandNode
-
List of argument definitions expected by this command node.
- arguments(Argument...) - Method in class com.cotani.command.api.CommandBuilder
-
Appends multiple argument definitions to this command node.
- Arguments - Class in com.cotani.command.argument
-
Standard factory methods for building typed command
Argumentinstances. - asOptional() - Method in interface com.cotani.command.argument.Argument
-
Returns a copy of this argument marked as optional without a default value.
- ASYNC - Enum constant in enum class com.cotani.command.api.CommandExecutionMode
-
Executes asynchronously on a background worker thread.
- AsyncCommandHandler - Interface in com.cotani.command.api
-
Functional handler for asynchronous command execution.
- asyncHandler() - Method in interface com.cotani.command.api.CommandNode
-
Returns the asynchronous handler if registered.
B
- bigDecimal(String) - Static method in class com.cotani.command.argument.Arguments
-
Exact
BigDecimalargument without bounds. - bigDecimal(String, BigDecimal, BigDecimal) - Static method in class com.cotani.command.argument.Arguments
-
Exact
BigDecimalargument bounded by optional minimum and maximum. - bool(String) - Static method in class com.cotani.command.argument.Arguments
-
Boolean argument accepting true/false, yes/no, on/off, 1/0.
- build() - Method in class com.cotani.command.api.CommandBuilder
-
Builds an immutable
CommandNode. - build() - Method in class com.cotani.command.feedback.CommandFeedback.Builder
- builder() - Static method in interface com.cotani.command.feedback.CommandFeedback
-
Creates a new feedback builder to customize messages.
- builder(String) - Static method in class com.cotani.command.CotaniCommands
-
Helper to start building a command node.
- Builder() - Constructor for class com.cotani.command.feedback.CommandFeedback.Builder
C
- canExecute() - Method in interface com.cotani.command.api.CommandNode
-
Checks whether this node has an executable handler attached.
- check(CommandSender, String) - Method in interface com.cotani.command.api.CooldownEvaluator
-
Checks if a cooldown is currently active for the sender.
- choice(String, String...) - Static method in class com.cotani.command.argument.Arguments
-
Choice argument matching one of the provided vararg string choices.
- choice(String, Collection) - Static method in class com.cotani.command.argument.Arguments
-
Choice argument matching one of the provided string choices (case-insensitive).
- close() - Method in class com.cotani.command.CotaniCommands
- closeAsync() - Method in class com.cotani.command.CotaniCommands
- com.cotani.command - package com.cotani.command
- com.cotani.command.api - package com.cotani.command.api
- com.cotani.command.argument - package com.cotani.command.argument
- com.cotani.command.feedback - package com.cotani.command.feedback
- CommandBuilder - Class in com.cotani.command.api
-
Fluent builder for constructing immutable
CommandNodeinstances. - CommandContext - Interface in com.cotani.command.api
-
Execution context provided when a command or subcommand is dispatched.
- CommandExecutionException - Exception Class in com.cotani.command.api
-
Domain exception thrown during command execution or argument evaluation.
- CommandExecutionException(String) - Constructor for exception class com.cotani.command.api.CommandExecutionException
- CommandExecutionException(String, Throwable) - Constructor for exception class com.cotani.command.api.CommandExecutionException
- CommandExecutionException(Component) - Constructor for exception class com.cotani.command.api.CommandExecutionException
- CommandExecutionException(Component, Throwable) - Constructor for exception class com.cotani.command.api.CommandExecutionException
- CommandExecutionMode - Enum Class in com.cotani.command.api
-
Defines how a command execution handler should be scheduled and run.
- CommandFeedback - Interface in com.cotani.command.feedback
-
Message provider generating formatted MiniMessage feedback components for command events and errors.
- CommandFeedback.Builder - Class in com.cotani.command.feedback
- CommandNode - Interface in com.cotani.command.api
-
Immutable tree node representing a command or subcommand with its arguments and execution targets.
- CONSOLE - Enum constant in enum class com.cotani.command.api.SenderType
-
The command can only be executed by the server console or remote console.
- consoleOnly() - Method in class com.cotani.command.api.CommandBuilder
-
Restricts execution strictly to the server console.
- consoleOnly(String) - Method in class com.cotani.command.feedback.CommandFeedback.Builder
- consumedArgs() - Method in record class com.cotani.command.argument.ParseResult.Success
-
Returns the value of the
consumedArgsrecord component. - cooldown() - Method in interface com.cotani.command.api.CommandNode
-
Cooldown evaluator for this node.
- cooldown(CooldownEvaluator) - Method in class com.cotani.command.api.CommandBuilder
-
Sets a custom cooldown evaluator.
- cooldown(CooldownService, Duration) - Method in class com.cotani.command.api.CommandBuilder
-
Applies a
CooldownService-backed cooldown to this command. - cooldown(Duration) - Method in class com.cotani.command.api.CommandBuilder
-
Applies a duration-based in-memory cooldown to this command.
- cooldownActive(String) - Method in class com.cotani.command.feedback.CommandFeedback.Builder
- CooldownEvaluator - Interface in com.cotani.command.api
-
Evaluates and enforces cooldowns on command execution.
- CotaniCommands - Class in com.cotani.command
-
Main entry point and lifecycle manager for the Cotani command framework.
- create(Plugin, PaperTaskScheduler) - Static method in class com.cotani.command.CotaniCommands
-
Creates a new CotaniCommands manager with default feedback messages.
- create(Plugin, PaperTaskScheduler, CommandFeedback) - Static method in class com.cotani.command.CotaniCommands
-
Creates a new CotaniCommands manager with custom feedback messages.
- currentArg() - Method in record class com.cotani.command.argument.ParseContext
-
Returns the argument token at the current index.
- currentIndex() - Method in record class com.cotani.command.argument.ParseContext
-
Returns the value of the
currentIndexrecord component. - currentInput() - Method in record class com.cotani.command.argument.SuggestionContext
-
Returns the value of the
currentInputrecord component. - custom(String, ArgumentParser, SuggestionProvider) - Static method in class com.cotani.command.argument.Arguments
-
Custom argument with provided parser and suggester.
D
- decimal(String) - Static method in class com.cotani.command.argument.Arguments
-
Double argument without bounds.
- decimal(String, double, double) - Static method in class com.cotani.command.argument.Arguments
-
Double argument bounded between
minandmaxinclusive. - defaultFeedback() - Static method in interface com.cotani.command.feedback.CommandFeedback
-
Returns the default Cotani command feedback implementation.
- defaultValue() - Method in interface com.cotani.command.argument.Argument
-
Returns the default value if the argument is omitted.
- description() - Method in interface com.cotani.command.api.CommandNode
-
Optional description of what this command does.
- description() - Method in interface com.cotani.command.argument.Argument
-
Returns the optional human-readable description for usage/help.
- description(String) - Method in class com.cotani.command.api.CommandBuilder
-
Sets the human-readable description for this command.
- duration(String) - Static method in class com.cotani.command.argument.Arguments
-
Human-readable
Durationargument (e.g.
E
- empty() - Static method in interface com.cotani.command.argument.SuggestionProvider
-
Returns an empty suggestion provider.
- ENTITY_REGION - Enum constant in enum class com.cotani.command.api.CommandExecutionMode
-
Executes on the player's entity/region thread.
- EntityCommandHandler - Interface in com.cotani.command.api
-
Functional handler for command execution scheduled on the player's entity/region thread (Paper and Folia).
- entityHandler() - Method in interface com.cotani.command.api.CommandNode
-
Returns the entity/region handler if registered.
- enumeration(String, Class) - Static method in class com.cotani.command.argument.Arguments
-
Enum argument parsing matching constant names (case-insensitive).
- equals(Object) - Method in record class com.cotani.command.argument.ParseContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.command.argument.ParseResult.Failure
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.command.argument.ParseResult.Success
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.command.argument.PlayerRef
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.command.argument.SuggestionContext
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class com.cotani.command.argument.ParseResult.Failure
-
Returns the value of the
errorrecord component. - execute(CommandContext) - Method in interface com.cotani.command.api.SyncCommandHandler
-
Executes the command logic synchronously.
- executeAsync(CommandContext) - Method in interface com.cotani.command.api.AsyncCommandHandler
-
Executes the command logic asynchronously.
- executeEntity(CommandContext, Player) - Method in interface com.cotani.command.api.EntityCommandHandler
-
Executes the command logic on the player's entity/region thread.
- executes(SyncCommandHandler) - Method in class com.cotani.command.api.CommandBuilder
-
Registers a synchronous handler for this command node.
- executesAsync(AsyncCommandHandler) - Method in class com.cotani.command.api.CommandBuilder
-
Registers an asynchronous handler for this command node.
- executesEntity(EntityCommandHandler) - Method in class com.cotani.command.api.CommandBuilder
-
Registers a player entity/region thread handler (Paper and Folia safe) for this command node.
- executionError(String) - Method in class com.cotani.command.feedback.CommandFeedback.Builder
- executionMode() - Method in interface com.cotani.command.api.CommandNode
-
Command execution mode (Sync, Async, or Entity Region).
F
- failure(String) - Static method in interface com.cotani.command.argument.ParseResult
-
Creates a failure parse result from a MiniMessage template.
- failure(Component) - Static method in interface com.cotani.command.argument.ParseResult
-
Creates a failure parse result with an Adventure component error message.
- Failure(Component) - Constructor for record class com.cotani.command.argument.ParseResult.Failure
-
Creates an instance of a
Failurerecord class. - feedback() - Method in class com.cotani.command.CotaniCommands
-
Returns the configured
CommandFeedback. - findSubcommand(String) - Method in interface com.cotani.command.api.CommandNode
-
Finds a child subcommand by name or alias.
- formatConsoleOnly() - Method in interface com.cotani.command.feedback.CommandFeedback
- formatCooldownActive(Duration) - Method in interface com.cotani.command.feedback.CommandFeedback
- formatExecutionError() - Method in interface com.cotani.command.feedback.CommandFeedback
- formatInvalidUsage(String) - Method in interface com.cotani.command.feedback.CommandFeedback
- formatPermissionDenied(Optional) - Method in interface com.cotani.command.feedback.CommandFeedback
- formatPlayerOnly() - Method in interface com.cotani.command.feedback.CommandFeedback
- formatUnknownCommand() - Method in interface com.cotani.command.feedback.CommandFeedback
- formatUnknownSubcommand(String, String) - Method in interface com.cotani.command.feedback.CommandFeedback
G
- get(Argument) - Method in interface com.cotani.command.api.CommandContext
-
Returns the parsed value for the given argument.
- get(String, Class) - Method in interface com.cotani.command.api.CommandContext
-
Returns the parsed value for the argument with the given name.
- getBigDecimal(String) - Method in interface com.cotani.command.api.CommandContext
-
Returns the
BigDecimalvalue for the given argument name. - getBoolean(String) - Method in interface com.cotani.command.api.CommandContext
-
Returns the boolean value for the given argument name.
- getDouble(String) - Method in interface com.cotani.command.api.CommandContext
-
Returns the double value for the given argument name.
- getDuration(String) - Method in interface com.cotani.command.api.CommandContext
-
Returns the
Durationvalue for the given argument name. - getEnum(String, Class) - Method in interface com.cotani.command.api.CommandContext
-
Returns the Enum constant value for the given argument name.
- getInt(String) - Method in interface com.cotani.command.api.CommandContext
-
Returns the integer value for the given argument name.
- getLong(String) - Method in interface com.cotani.command.api.CommandContext
-
Returns the long value for the given argument name.
- getOptional(Argument) - Method in interface com.cotani.command.api.CommandContext
-
Returns the optional parsed value for the given argument.
- getOptional(String, Class) - Method in interface com.cotani.command.api.CommandContext
-
Returns the optional parsed value for the argument with the given name.
- getPlayerRef(String) - Method in interface com.cotani.command.api.CommandContext
-
Returns the immutable
PlayerRefvalue parsed for the given argument name. - getString(String) - Method in interface com.cotani.command.api.CommandContext
-
Returns the string value for the given argument name.
- getUUID(String) - Method in interface com.cotani.command.api.CommandContext
-
Returns the
UUIDvalue for the given argument name. - greedyString(String) - Static method in class com.cotani.command.argument.Arguments
-
Greedy string argument that consumes all remaining command tokens.
H
- has(String) - Method in interface com.cotani.command.api.CommandContext
-
Checks if a parsed value exists for the given argument name.
- hashCode() - Method in record class com.cotani.command.argument.ParseContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.command.argument.ParseResult.Failure
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.command.argument.ParseResult.Success
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.command.argument.PlayerRef
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.command.argument.SuggestionContext
-
Returns a hash code value for this object.
- hasMore() - Method in record class com.cotani.command.argument.ParseContext
-
Checks if there are more arguments available from the current index.
- hasSubcommands() - Method in interface com.cotani.command.api.CommandNode
-
Checks if this node contains any subcommands.
I
- id() - Method in record class com.cotani.command.argument.PlayerRef
-
Returns the value of the
idrecord component. - integer(String) - Static method in class com.cotani.command.argument.Arguments
-
Integer argument without bounds.
- integer(String, int, int) - Static method in class com.cotani.command.argument.Arguments
-
Integer argument bounded between
minandmaxinclusive. - invalidUsage(String) - Method in class com.cotani.command.feedback.CommandFeedback.Builder
- isConsole() - Method in interface com.cotani.command.api.CommandContext
-
Checks if the sender is the console or a remote console.
- isExhausted() - Method in record class com.cotani.command.argument.ParseContext
-
Checks if no more arguments remain to be parsed from the current index.
- isOptional() - Method in interface com.cotani.command.argument.Argument
-
Checks if this argument is optional.
- isPlayer() - Method in interface com.cotani.command.api.CommandContext
-
Checks if the sender is an in-game
Player.
L
- longNumber(String) - Static method in class com.cotani.command.argument.Arguments
-
64-bit Long argument without bounds.
- longNumber(String, long, long) - Static method in class com.cotani.command.argument.Arguments
-
64-bit Long argument bounded between
minandmaxinclusive.
M
- matchedAlias() - Method in interface com.cotani.command.api.CommandContext
-
Returns the command alias or name used to invoke the command.
N
- name() - Method in interface com.cotani.command.api.CommandNode
-
Primary name of the command or subcommand.
- name() - Method in interface com.cotani.command.argument.Argument
-
Returns the name / identifier of the argument.
- name() - Method in record class com.cotani.command.argument.PlayerRef
-
Returns the value of the
namerecord component. - node() - Method in interface com.cotani.command.api.PermissionRequirement
-
Returns the permission node string if available.
- none() - Static method in interface com.cotani.command.api.CooldownEvaluator
-
Returns a no-op cooldown evaluator (no cooldown enforced).
- none() - Static method in interface com.cotani.command.api.PermissionRequirement
-
Returns a permission requirement that always allows execution.
O
- of(CooldownService, Duration) - Static method in interface com.cotani.command.api.CooldownEvaluator
-
Creates a cooldown evaluator backed by
CooldownService. - of(String) - Static method in class com.cotani.command.api.CommandBuilder
-
Creates a new command builder with the given name.
- of(String) - Static method in interface com.cotani.command.api.PermissionRequirement
-
Creates a permission requirement based on a Bukkit permission node.
- of(String...) - Static method in interface com.cotani.command.argument.SuggestionProvider
-
Creates a suggestion provider from varargs of options.
- of(String, ArgumentParser, SuggestionProvider) - Static method in interface com.cotani.command.argument.Argument
-
Creates a new required argument.
- of(Duration) - Static method in interface com.cotani.command.api.CooldownEvaluator
-
Creates an in-memory duration-based cooldown evaluator.
- of(Collection) - Static method in interface com.cotani.command.argument.SuggestionProvider
-
Creates a suggestion provider from a fixed collection of options, filtered by prefix.
- of(Player) - Static method in record class com.cotani.command.argument.PlayerRef
-
Captures a reference from a live player.
- offlinePlayer(String) - Static method in class com.cotani.command.argument.Arguments
-
OfflinePlayerargument resolved by username or UUID.
P
- parse(ParseContext) - Method in interface com.cotani.command.argument.ArgumentParser
-
Parses tokens from the given
ParseContext. - ParseContext - Record Class in com.cotani.command.argument
-
Context provided during argument parsing.
- ParseContext(CommandSender, List, int) - Constructor for record class com.cotani.command.argument.ParseContext
-
Creates an instance of a
ParseContextrecord class. - parser() - Method in interface com.cotani.command.argument.Argument
-
Returns the parser used to convert tokens to
T. - ParseResult<T> - Interface in com.cotani.command.argument
-
Result of parsing a command argument.
- ParseResult.Failure<T> - Record Class in com.cotani.command.argument
-
Failed argument parse outcome with a user-facing error component.
- ParseResult.Success<T> - Record Class in com.cotani.command.argument
-
Successful argument parse outcome.
- permission() - Method in interface com.cotani.command.api.CommandNode
-
Permission requirement to execute or view this node.
- permission(PermissionRequirement) - Method in class com.cotani.command.api.CommandBuilder
-
Sets the required permission requirement.
- permission(String) - Method in class com.cotani.command.api.CommandBuilder
-
Sets the required Bukkit permission node.
- permissionDenied(String) - Method in class com.cotani.command.feedback.CommandFeedback.Builder
- PermissionRequirement - Interface in com.cotani.command.api
-
Functional check and metadata for command permissions.
- player() - Method in interface com.cotani.command.api.CommandContext
-
Returns the sender as a
Playerif the sender is an in-game player. - player(String) - Static method in class com.cotani.command.argument.Arguments
-
Online player argument resolved by username.
- player(String, boolean) - Static method in class com.cotani.command.argument.Arguments
-
Online player argument resolved by username with optional vanish bypass.
- PLAYER - Enum constant in enum class com.cotani.command.api.SenderType
-
The command can only be executed by an in-game
Player. - playerId() - Method in interface com.cotani.command.api.CommandContext
-
Returns the immutable identity of the sender when the sender is an in-game player.
- playerOnly() - Method in class com.cotani.command.api.CommandBuilder
-
Restricts execution strictly to in-game players.
- playerOnly(String) - Method in class com.cotani.command.feedback.CommandFeedback.Builder
- PlayerRef - Record Class in com.cotani.command.argument
-
Immutable snapshot of an online player captured while parsing a command on the main thread.
- PlayerRef(UUID, String) - Constructor for record class com.cotani.command.argument.PlayerRef
-
Creates an instance of a
PlayerRefrecord class. - players() - Static method in interface com.cotani.command.argument.SuggestionProvider
-
Creates a suggestion provider that returns online player names visible to the sender.
- predicate(Predicate) - Static method in interface com.cotani.command.api.PermissionRequirement
-
Creates a dynamic permission requirement based on a predicate.
- ptBR() - Static method in interface com.cotani.command.feedback.CommandFeedback
-
Returns standard feedback messages in Brazilian Portuguese (pt-BR).
Q
- quotedString(String) - Static method in class com.cotani.command.argument.Arguments
-
String argument supporting quotation marks (e.g.
R
- rawArgs() - Method in interface com.cotani.command.api.CommandContext
-
Returns an unmodifiable list of the raw string arguments supplied by the sender.
- rawArgs() - Method in record class com.cotani.command.argument.ParseContext
-
Returns the value of the
rawArgsrecord component. - rawArgs() - Method in record class com.cotani.command.argument.SuggestionContext
-
Returns the value of the
rawArgsrecord component. - register(CommandNode) - Method in class com.cotani.command.CotaniCommands
-
Registers a command node into Bukkit's
CommandMap. - register(String, Consumer) - Method in class com.cotani.command.CotaniCommands
-
Builds and registers a command node using a configuration lambda.
- registerAll(CommandNode...) - Method in class com.cotani.command.CotaniCommands
-
Registers multiple command nodes into Bukkit's
CommandMap. - registerAll(Collection) - Method in class com.cotani.command.CotaniCommands
-
Registers a collection of command nodes into Bukkit's
CommandMap. - remainingArgs() - Method in record class com.cotani.command.argument.ParseContext
-
Returns all remaining arguments starting from
ParseContext.currentIndex. - reply(String) - Method in interface com.cotani.command.api.CommandContext
-
Sends a MiniMessage-formatted message to the sender.
- reply(String, TagResolver...) - Method in interface com.cotani.command.api.CommandContext
-
Sends a MiniMessage-formatted message with custom tag resolvers to the sender.
- reply(Component) - Method in interface com.cotani.command.api.CommandContext
-
Sends an Adventure
Componentmessage to the sender. - replyError(String) - Method in interface com.cotani.command.api.CommandContext
-
Sends an error MiniMessage-formatted message to the sender.
- replyError(String, TagResolver...) - Method in interface com.cotani.command.api.CommandContext
-
Sends an error MiniMessage-formatted message with custom tag resolvers to the sender.
- replyInfo(String) - Method in interface com.cotani.command.api.CommandContext
-
Sends an informational MiniMessage-formatted message to the sender.
- replyInfo(String, TagResolver...) - Method in interface com.cotani.command.api.CommandContext
-
Sends an informational MiniMessage-formatted message with custom tag resolvers to the sender.
- replySuccess(String) - Method in interface com.cotani.command.api.CommandContext
-
Sends a success MiniMessage-formatted message to the sender.
- replySuccess(String, TagResolver...) - Method in interface com.cotani.command.api.CommandContext
-
Sends a success MiniMessage-formatted message with custom tag resolvers to the sender.
- requirePlayer() - Method in interface com.cotani.command.api.CommandContext
-
Returns the sender as a
Playeror throwsCommandExecutionExceptionif not a player.
S
- scheduler() - Method in interface com.cotani.command.api.CommandContext
-
Returns the active
PaperTaskSchedulerinstance. - scheduler() - Method in class com.cotani.command.CotaniCommands
-
Returns the associated
PaperTaskScheduler. - sender() - Method in interface com.cotani.command.api.CommandContext
-
Returns the command sender (player, console, block, etc.).
- sender() - Method in record class com.cotani.command.argument.ParseContext
-
Returns the value of the
senderrecord component. - sender() - Method in record class com.cotani.command.argument.SuggestionContext
-
Returns the value of the
senderrecord component. - sender(SenderType) - Method in class com.cotani.command.api.CommandBuilder
-
Restricts execution to the specified
SenderType. - senderType() - Method in interface com.cotani.command.api.CommandNode
-
Sender restriction for this node.
- SenderType - Enum Class in com.cotani.command.api
-
Defines which type of sender is allowed to execute a command.
- string(String) - Static method in class com.cotani.command.argument.Arguments
-
Unquoted single-word string argument.
- subcommand(CommandBuilder) - Method in class com.cotani.command.api.CommandBuilder
-
Builds and adds a child subcommand.
- subcommand(CommandNode) - Method in class com.cotani.command.api.CommandBuilder
-
Adds a child subcommand node.
- subcommand(String, Consumer) - Method in class com.cotani.command.api.CommandBuilder
-
Configures and adds a child subcommand using a builder consumer.
- subcommands() - Method in interface com.cotani.command.api.CommandNode
-
Map of subcommands keyed by name and alias in lowercase.
- success(T) - Static method in interface com.cotani.command.argument.ParseResult
-
Creates a successful parse result consuming 1 argument token.
- success(T, int) - Static method in interface com.cotani.command.argument.ParseResult
-
Creates a successful parse result consuming multiple argument tokens.
- Success(T, int) - Constructor for record class com.cotani.command.argument.ParseResult.Success
-
Creates an instance of a
Successrecord class. - suggest(SuggestionContext) - Method in interface com.cotani.command.argument.SuggestionProvider
-
Calculates suggestions matching the given context.
- suggester() - Method in interface com.cotani.command.argument.Argument
-
Returns the suggestion provider for tab completion.
- SuggestionContext - Record Class in com.cotani.command.argument
-
Context provided when calculating tab-completion suggestions.
- SuggestionContext(CommandSender, List, String) - Constructor for record class com.cotani.command.argument.SuggestionContext
-
Creates an instance of a
SuggestionContextrecord class. - SuggestionProvider - Interface in com.cotani.command.argument
-
Functional provider for tab-completion suggestions.
- SYNC - Enum constant in enum class com.cotani.command.api.CommandExecutionMode
-
Executes synchronously on the caller's thread.
- SyncCommandHandler - Interface in com.cotani.command.api
-
Functional handler for synchronous command execution.
- syncHandler() - Method in interface com.cotani.command.api.CommandNode
-
Returns the synchronous handler if registered.
T
- test(CommandSender) - Method in interface com.cotani.command.api.PermissionRequirement
-
Checks if the sender has permission to run the command.
- test(CommandSender) - Method in enum class com.cotani.command.api.SenderType
-
Tests whether the given sender satisfies this sender requirement.
- toString() - Method in record class com.cotani.command.argument.ParseContext
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.command.argument.ParseResult.Failure
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.command.argument.ParseResult.Success
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.command.argument.PlayerRef
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.command.argument.SuggestionContext
-
Returns a string representation of this record class.
- tryAcquire(CommandSender, String) - Method in interface com.cotani.command.api.CooldownEvaluator
-
Atomically checks and applies the cooldown for one command execution.
U
- unknownCommand(String) - Method in class com.cotani.command.feedback.CommandFeedback.Builder
- unknownSubcommand(String) - Method in class com.cotani.command.feedback.CommandFeedback.Builder
- unregister(String) - Method in class com.cotani.command.CotaniCommands
-
Unregisters a specific command by primary name.
- unregisterAll() - Method in class com.cotani.command.CotaniCommands
-
Unregisters all commands registered by this module.
- usage() - Method in interface com.cotani.command.api.CommandNode
-
Optional explicit usage string (e.g.
- usage(String) - Method in class com.cotani.command.api.CommandBuilder
-
Sets an explicit usage string format (e.g.,
"/pay <player> <amount>"). - userMessage() - Method in exception class com.cotani.command.api.CommandExecutionException
-
Returns the formatted message intended for the command sender, if provided.
- uuid(String) - Static method in class com.cotani.command.argument.Arguments
-
UUID argument.
V
- value() - Method in record class com.cotani.command.argument.ParseResult.Success
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class com.cotani.command.api.CommandExecutionMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.cotani.command.api.SenderType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.cotani.command.api.CommandExecutionMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.cotani.command.api.SenderType
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- withDefault(T) - Method in interface com.cotani.command.argument.Argument
-
Returns a copy of this argument marked as optional with the specified default value.
- withDescription(String) - Method in interface com.cotani.command.argument.Argument
-
Returns a copy of this argument with a new description.
- withSuggester(SuggestionProvider) - Method in interface com.cotani.command.argument.Argument
-
Returns a copy of this argument with a custom suggestion provider.
All Classes and Interfaces|All Packages|Serialized Form