Class EnumArgumentNode
java.lang.Object
me.efekos.simpler.commands.node.CommandNode
me.efekos.simpler.commands.node.ArgumentNode
me.efekos.simpler.commands.node.impl.ListArgumentNode
me.efekos.simpler.commands.node.impl.EnumArgumentNode
An example of custom
ArgumentNode
s. Allows player to choose an argument from the enumerator given.-
Constructor Summary
ConstructorDescriptionEnumArgumentNode
(Class<? extends Enum<?>> enumClass) Constructs a new node.EnumArgumentNode
(Class<? extends Enum<?>> enumClass, CommandNode... children) Constructs a new node. -
Method Summary
Methods inherited from class me.efekos.simpler.commands.node.impl.ListArgumentNode
isCorrect, suggest
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
-
EnumArgumentNode
Constructs a new node.- Parameters:
enumClass
- Anenum
class to generate a list of valid strings of this node.
-
EnumArgumentNode
Constructs a new node.- Parameters:
enumClass
- Anenum
class to generate a list of valid strings of this node.children
- Children of this node
-