public final class ImmutableDescription extends Object implements Description
Use ImmutableDescription.Builder to create instances.
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDescription.Builder
Builds instances of
ImmutableDescription. |
| 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.
|
String |
toString() |
public List<Parameter> getParameters()
DescriptiongetParameters in interface Description@Nullable public String getShortDescription()
DescriptiongetShortDescription in interface Description@Nullable public String getHelp()
DescriptiongetHelp in interface Descriptionpublic List<String> getPermissions()
DescriptionPermission data may or may not be available. This is only useful as a potential hint.
getPermissions in interface Descriptionpublic String getUsage()
DescriptionA usage string may look like
[-w <world>] <var1> <var2>.
getUsage in interface DescriptionCopyright © 2015. All Rights Reserved.