Package | Description |
---|---|
com.codelanx.codelanxlib.command |
Modifier and Type | Class and Description |
---|---|
class |
HelpCommand<E extends Plugin>
Provides a listing of help information derived from all
CommandNode
objects that are returned from a call to a parent's
traverse() method |
class |
ReloadCommand<E extends Plugin>
|
Modifier and Type | Method and Description |
---|---|
CommandNode<? extends Plugin> |
CommandNode.getChild(String... args)
Iteratively retrieves the child
CommandNode down the command
tree. |
CommandNode<? extends Plugin> |
CommandNode.getChild(String name)
Returns a subcommand, or
null if none exists. |
CommandNode<? extends Plugin> |
CommandNode.getClosestChild(String... args)
Returns the closest possible approximation of where the supplied argument
ladder will stop.
|
static <T extends Plugin> |
CommandNode.getLinkingNode(String command,
T plugin,
Consumer<CommandNode<T>> onConstruct)
Returns an anonymous
CommandNode instance which is defined as
non-executable CommandNode used for chaining together other
CommandNode objects. |
CommandNode<? extends Plugin> |
CommandNode.getParent()
Returns the direct parent
CommandNode for this node |
Modifier and Type | Method and Description |
---|---|
Map<String,CommandNode<? extends Plugin>> |
CommandNode.getAliases()
Returns all
CommandNode objects held by this node that are
aliases of other CommandNodes |
Collection<CommandNode<? extends Plugin>> |
CommandNode.getChildren()
Returns all subcommands as a
Collection |
Collection<CommandNode<? extends Plugin>> |
CommandNode.traverse()
Traverses the command tree with no restrictions (shows all commands)
|
Collection<CommandNode<? extends Plugin>> |
CommandNode.traverse(CommandSender sender,
boolean restrictions)
Traverses the
CommandNode tree and returns all child objects
found that satisfy the following:
The child's parent is the class that maps to it (aliases will be mapped to, but will not have the mapping parent class as an actual parent). |
Modifier and Type | Method and Description |
---|---|
void |
CommandNode.addChild(CommandNode<? extends Plugin>... children)
Adds new child subcommands to this
CommandNode |
<T extends Plugin> |
CommandNode.alias(CommandNode<T> toAlias,
String... args)
Aliases a passed
CommandNode . |
int |
CommandNode.compareTo(CommandNode<?> o)
|
void |
CommandStatus.handle(CommandSender sender,
Lang format,
CommandNode<?> cmd)
Handles output to a
CommandSender upon the execution of a command |
Modifier and Type | Method and Description |
---|---|
static <T extends Plugin> |
CommandNode.getLinkingNode(String command,
T plugin,
Consumer<CommandNode<T>> onConstruct)
Returns an anonymous
CommandNode instance which is defined as
non-executable CommandNode used for chaining together other
CommandNode objects. |
Constructor and Description |
---|
CommandNode(E plugin,
CommandNode<?> parent)
Initializes a new
CommandNode with the passed parent object. |
Copyright © 2017. All rights reserved.