public class CommandData extends Object
Command constructors, use the
builder(String) method to obtain a builder.PluginCommand| Modifier and Type | Class and Description |
|---|---|
static class |
CommandData.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CommandData.Builder |
builder(@NonNull String commandName) |
List<String> |
getAliases() |
String |
getDescription() |
List<CommandParameter[]> |
getOverloads() |
String |
getPermissionMessage() |
List<String> |
getPermissions() |
String |
getRegisteredName() |
String |
getUsage() |
void |
removeAlias(String alias) |
void |
setRegisteredName(String name) |
com.nukkitx.protocol.bedrock.data.command.CommandData |
toNetwork() |
public static CommandData.Builder builder(@NonNull @NonNull String commandName)
public String getRegisteredName()
public void setRegisteredName(String name)
public String getDescription()
public void removeAlias(String alias)
public com.nukkitx.protocol.bedrock.data.command.CommandData toNetwork()
public List<CommandParameter[]> getOverloads()
public String getPermissionMessage()
public String getUsage()
Copyright © 2020. All rights reserved.