public class MCCommand
extends java.lang.Object
implements crafttweaker.api.command.ICommand
| Constructor and Description |
|---|
MCCommand(net.minecraft.command.ICommand iCommand) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPermission(crafttweaker.api.server.IServer server,
crafttweaker.api.command.ICommandSender sender) |
int |
compare(crafttweaker.api.command.ICommand other) |
void |
execute(crafttweaker.api.server.IServer server,
crafttweaker.api.command.ICommandSender sender,
java.lang.String[] args) |
java.util.List<java.lang.String> |
getAliases() |
net.minecraft.command.ICommand |
getInternal() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getTabCompletions(crafttweaker.api.server.IServer server,
crafttweaker.api.command.ICommandSender sender,
java.lang.String[] args,
crafttweaker.api.world.IBlockPos targetPos) |
java.lang.String |
getUsage(crafttweaker.api.command.ICommandSender sender) |
boolean |
isUsernameIndex(java.lang.String[] args,
int index) |
public java.lang.String getName()
getName in interface crafttweaker.api.command.ICommandpublic java.lang.String getUsage(crafttweaker.api.command.ICommandSender sender)
getUsage in interface crafttweaker.api.command.ICommandpublic java.util.List<java.lang.String> getAliases()
getAliases in interface crafttweaker.api.command.ICommandpublic void execute(crafttweaker.api.server.IServer server,
crafttweaker.api.command.ICommandSender sender,
java.lang.String[] args)
execute in interface crafttweaker.api.command.ICommandpublic boolean checkPermission(crafttweaker.api.server.IServer server,
crafttweaker.api.command.ICommandSender sender)
checkPermission in interface crafttweaker.api.command.ICommandpublic java.util.List<java.lang.String> getTabCompletions(crafttweaker.api.server.IServer server,
crafttweaker.api.command.ICommandSender sender,
java.lang.String[] args,
crafttweaker.api.world.IBlockPos targetPos)
getTabCompletions in interface crafttweaker.api.command.ICommandpublic boolean isUsernameIndex(java.lang.String[] args,
int index)
isUsernameIndex in interface crafttweaker.api.command.ICommandpublic int compare(crafttweaker.api.command.ICommand other)
compare in interface crafttweaker.api.command.ICommandpublic net.minecraft.command.ICommand getInternal()
getInternal in interface crafttweaker.api.command.ICommand