public class ProvidedValue<T> extends java.lang.Object implements CommandExecutor<T>
Modifier and Type | Method and Description |
---|---|
T |
call(CommandArgs args,
CommandLocals locals) |
static <T> ProvidedValue<T> |
create(T value,
java.lang.String description) |
java.lang.String |
getDescription() |
java.util.List<java.lang.String> |
getSuggestions(CommandArgs args,
CommandLocals locals) |
java.lang.String |
getUsage() |
boolean |
testPermission(CommandLocals locals) |
public T call(CommandArgs args, CommandLocals locals) throws CommandException
call
in interface CommandExecutor<T>
CommandException
public java.util.List<java.lang.String> getSuggestions(CommandArgs args, CommandLocals locals) throws MissingArgumentException
getSuggestions
in interface CommandExecutor<T>
MissingArgumentException
public java.lang.String getUsage()
getUsage
in interface CommandExecutor<T>
public java.lang.String getDescription()
getDescription
in interface CommandExecutor<T>
public boolean testPermission(CommandLocals locals)
testPermission
in interface CommandExecutor<T>
public static <T> ProvidedValue<T> create(T value, java.lang.String description)