public final class CommandFunction extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
defined |
CommandExecutor |
executor |
Method |
function |
static String |
FUNCTION_NAME |
boolean |
hasSender |
CommandRunner |
info |
int |
neededAttributesCount |
boolean |
parsable |
ArgumentParserHandler |
parserHandler |
| Constructor and Description |
|---|
CommandFunction(CommandExecutor executor,
CommandRunner info,
Method function) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(CommandSender sender,
List<String> args) |
int |
getNeededAttributesCount() |
boolean |
hasSender() |
boolean |
isDefined() |
boolean |
isExecutable(int argsCount) |
boolean |
isExecutable(List<String> args) |
boolean |
isParsable() |
boolean |
isRespectingArguments(int argsCount) |
public static final String FUNCTION_NAME
public final CommandExecutor executor
public final CommandRunner info
public final Method function
public final boolean hasSender
public final ArgumentParserHandler parserHandler
public final boolean parsable
public final boolean defined
public final int neededAttributesCount
public CommandFunction(CommandExecutor executor, CommandRunner info, Method function)
public boolean hasSender()
public boolean isParsable()
public boolean isDefined()
public int getNeededAttributesCount()
public boolean isExecutable(int argsCount)
public boolean isRespectingArguments(int argsCount)
public boolean execute(CommandSender sender, List<String> args)
Copyright © 2016. All rights reserved.