public class CommandUsageBox extends TextComponentProducer
Constructor and Description |
---|
CommandUsageBox(java.util.List<org.enginehub.piston.Command> commands,
java.lang.String commandString,
java.lang.String helpRootCommand)
Create a new usage box.
|
CommandUsageBox(java.util.List<org.enginehub.piston.Command> commands,
java.lang.String commandString,
java.lang.String helpRootCommand,
org.enginehub.piston.CommandParameters parameters)
Create a new usage box.
|
append, append, create, getBuilder, newline, reset
public CommandUsageBox(java.util.List<org.enginehub.piston.Command> commands, java.lang.String commandString, java.lang.String helpRootCommand) throws InvalidComponentException
commands
- the commands to describecommandString
- the commands that were used, such as "/we" or "/brush sphere"helpRootCommand
- the command used to get subcommand helpInvalidComponentException
public CommandUsageBox(java.util.List<org.enginehub.piston.Command> commands, java.lang.String commandString, java.lang.String helpRootCommand, @Nullable org.enginehub.piston.CommandParameters parameters) throws InvalidComponentException
commands
- the commands to describecommandString
- the commands that were used, such as "/we" or "/brush sphere"helpRootCommand
- the command used to get subcommand helpparameters
- list of parameters to useInvalidComponentException