public interface CommandPart
Modifier and Type | Method and Description |
---|---|
net.kyori.text.Component |
getDescription()
Returns the description of this part.
|
net.kyori.text.Component |
getTextRepresentation()
Returns the text representation of this part.
|
default boolean |
in(CommandParameters parameters) |
boolean |
isRequired()
Returns
true if this part is required, and may not be
missing from the command line. |
default boolean in(CommandParameters parameters)
net.kyori.text.Component getTextRepresentation()
For flags, this could be something like `-flag`. For arguments and commands, this could be their name.
net.kyori.text.Component getDescription()
boolean isRequired()
true
if this part is required, and may not be
missing from the command line.