public interface ICommand extends java.lang.Comparable<ICommand>
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermission(MinecraftServer server,
ICommandSender sender) |
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
java.util.List<java.lang.String> |
getAliases() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getTabCompletions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos targetPos) |
java.lang.String |
getUsage(ICommandSender sender) |
boolean |
isUsernameIndex(java.lang.String[] args,
int index) |
java.lang.String getName()
java.lang.String getUsage(ICommandSender sender)
java.util.List<java.lang.String> getAliases()
void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandException
boolean checkPermission(MinecraftServer server, ICommandSender sender)
java.util.List<java.lang.String> getTabCompletions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, @Nullable BlockPos targetPos)
boolean isUsernameIndex(java.lang.String[] args, int index)