public class SettableDescription extends Object implements Description
Description which has setter methods.| Constructor and Description |
|---|
SettableDescription() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHelp()
Get a longer help text about this command.
|
List<Parameter> |
getParameters()
Get the list of parameters for this command.
|
List<String> |
getPermissions()
Get a list of permissions that the player may have to have permission.
|
String |
getShortDescription()
Get a short one-line description of this command.
|
String |
getUsage()
Get the usage string of this command.
|
void |
overrideUsage(String usage)
Override the usage string returned with a given one.
|
void |
setDescription(String description)
Set the description of the command.
|
void |
setHelp(String help)
Set the help text of the command.
|
void |
setParameters(List<Parameter> parameters)
Set the list of parameters.
|
void |
setPermissions(List<String> permissions)
Set the permissions of this command.
|
String |
toString() |
public List<Parameter> getParameters()
DescriptiongetParameters in interface Descriptionpublic void setParameters(List<Parameter> parameters)
parameters - the list of parametersgetParameters()public String getShortDescription()
DescriptiongetShortDescription in interface Descriptionpublic void setDescription(String description)
description - the descriptiongetShortDescription()public String getHelp()
DescriptiongetHelp in interface Descriptionpublic void setHelp(String help)
help - the help textgetHelp()public List<String> getPermissions()
DescriptionPermission data may or may not be available. This is only useful as a potential hint.
getPermissions in interface Descriptionpublic void setPermissions(List<String> permissions)
permissions - the permissionspublic void overrideUsage(String usage)
usage - usage string, or nullpublic String getUsage()
DescriptionA usage string may look like
[-w <world>] <var1> <var2>.
getUsage in interface DescriptionCopyright © 2015. All Rights Reserved.