public interface Command
with/add
functions,
which return new instances with the specified changes. Only the name of a command
is required, so be careful not to make commands that don't do anything.
This class is immutable.
Modifier and Type | Interface and Description |
---|---|
static interface |
Command.Action
Represents what a command does.
|
static interface |
Command.Builder
Builder for a command.
|
static interface |
Command.Condition
Represents a condition for the execution of a command.
|
Modifier and Type | Method and Description |
---|---|
Command.Action |
getAction() |
com.google.common.collect.ImmutableList<java.lang.String> |
getAliases() |
Command.Condition |
getCondition() |
net.kyori.text.Component |
getDescription() |
java.util.Optional<net.kyori.text.Component> |
getFooter() |
default net.kyori.text.Component |
getFullHelp() |
java.lang.String |
getName() |
com.google.common.collect.ImmutableList<CommandPart> |
getParts() |
SuggestionProvider |
getSuggester() |
default net.kyori.text.Component |
getUsage() |
Command.Builder |
toBuilder() |
java.lang.String getName()
com.google.common.collect.ImmutableList<java.lang.String> getAliases()
net.kyori.text.Component getDescription()
java.util.Optional<net.kyori.text.Component> getFooter()
com.google.common.collect.ImmutableList<CommandPart> getParts()
Command.Condition getCondition()
Command.Action getAction()
SuggestionProvider getSuggester()
Command.Builder toBuilder()
default net.kyori.text.Component getUsage()
default net.kyori.text.Component getFullHelp()