public class MinecraftCommandWrapper extends Object implements org.spongepowered.api.util.command.CommandCallable
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.command.ICommand |
command |
Constructor and Description |
---|
MinecraftCommandWrapper(org.spongepowered.api.plugin.PluginContainer owner,
net.minecraft.command.ICommand command) |
Modifier and Type | Method and Description |
---|---|
String |
getCommandPermission() |
Optional<org.spongepowered.api.text.Text> |
getHelp(org.spongepowered.api.util.command.CommandSource source) |
List<String> |
getNames() |
org.spongepowered.api.plugin.PluginContainer |
getOwner() |
int |
getPermissionLevel() |
Optional<org.spongepowered.api.text.Text> |
getShortDescription(org.spongepowered.api.util.command.CommandSource source) |
List<String> |
getSuggestions(org.spongepowered.api.util.command.CommandSource source,
String arguments) |
org.spongepowered.api.text.Text |
getUsage(org.spongepowered.api.util.command.CommandSource source) |
org.spongepowered.api.util.command.CommandResult |
process(org.spongepowered.api.util.command.CommandSource source,
String arguments) |
static void |
setError(Throwable error) |
boolean |
testPermission(org.spongepowered.api.util.command.CommandSource source) |
protected boolean |
throwEvent(net.minecraft.command.ICommandSender sender,
String[] args) |
public MinecraftCommandWrapper(org.spongepowered.api.plugin.PluginContainer owner, net.minecraft.command.ICommand command)
public org.spongepowered.api.util.command.CommandResult process(org.spongepowered.api.util.command.CommandSource source, String arguments) throws org.spongepowered.api.util.command.CommandException
process
in interface org.spongepowered.api.util.command.CommandCallable
org.spongepowered.api.util.command.CommandException
protected boolean throwEvent(net.minecraft.command.ICommandSender sender, String[] args) throws org.spongepowered.api.util.command.InvocationCommandException
org.spongepowered.api.util.command.InvocationCommandException
public int getPermissionLevel()
public String getCommandPermission()
public org.spongepowered.api.plugin.PluginContainer getOwner()
public boolean testPermission(org.spongepowered.api.util.command.CommandSource source)
testPermission
in interface org.spongepowered.api.util.command.CommandCallable
public Optional<org.spongepowered.api.text.Text> getShortDescription(org.spongepowered.api.util.command.CommandSource source)
getShortDescription
in interface org.spongepowered.api.util.command.CommandCallable
public Optional<org.spongepowered.api.text.Text> getHelp(org.spongepowered.api.util.command.CommandSource source)
getHelp
in interface org.spongepowered.api.util.command.CommandCallable
public org.spongepowered.api.text.Text getUsage(org.spongepowered.api.util.command.CommandSource source)
getUsage
in interface org.spongepowered.api.util.command.CommandCallable
public List<String> getSuggestions(org.spongepowered.api.util.command.CommandSource source, String arguments) throws org.spongepowered.api.util.command.CommandException
getSuggestions
in interface org.spongepowered.api.util.command.CommandCallable
org.spongepowered.api.util.command.CommandException
public static void setError(Throwable error)