Package me.efekos.simpler.commands.node
Class ArgumentNode
java.lang.Object
me.efekos.simpler.commands.node.CommandNode
me.efekos.simpler.commands.node.ArgumentNode
- Direct Known Subclasses:
DoubleArgumentNode
,IntegerArgumentNode
,ListArgumentNode
,PlayerArgumentNode
,StringArgumentNode
Main that is used for making argument nodes. It is highly recommended to extend this class instead of
CommandNode
if your node is an argument. Because this is the only type that Simpler understands about argument nodes.-
Constructor Summary
ConstructorDescriptionArgumentNode
(CommandNode... children) Created a newArgumentNode
to be used inCommandTree
s. -
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, suggest
-
Constructor Details
-
ArgumentNode
Created a newArgumentNode
to be used inCommandTree
s.- Parameters:
children
- Children of this node if you would like to add any.
-
-
Method Details
-
isCorrect
Checks for a given argument and ensures that the argument is correct.- Parameters:
given
- Argument that was given for this node.- Returns:
- Whether the argument is correct or not.
-