Class LabelNode
java.lang.Object
me.efekos.simpler.commands.node.CommandNode
me.efekos.simpler.commands.node.impl.LabelNode
An example of custom
CommandNode
. A node that holds a simple label. CommandNode.addChild(String)
generates a LabelNode
.-
Constructor Summary
-
Method Summary
Methods inherited from class me.efekos.simpler.commands.node.CommandNode
addChild, addChild, getChildren, getConsoleExecutive, getDescription, getExecutive, getParent, getPermission, setConsoleExecutive, setDescription, setExecutive, setParent, setPermission
-
Constructor Details
-
LabelNode
Creates a new label node.- Parameters:
label
- Main label that this node will hold.
-
-
Method Details
-
getLabel
Returns the label that this node is holding.- Returns:
- Label of this node.
-
suggest
Provides a list that can be added to the final list of tab completion.- Specified by:
suggest
in classCommandNode
- Parameters:
sender
- Sender that needs a tab completion. Probably aPlayer
since console doesn't need a tab completion.args
- List of the other arguments given by the sender.- Returns:
- A list for tab completion.
-