Class EnumArgumentNode


public class EnumArgumentNode extends ListArgumentNode
An example of custom ArgumentNodes. Allows player to choose an argument from the enumerator given.
  • Constructor Details

    • EnumArgumentNode

      public EnumArgumentNode(Class<? extends Enum<?>> enumClass)
      Constructs a new node.
      Parameters:
      enumClass - An enum class to generate a list of valid strings of this node.
    • EnumArgumentNode

      public EnumArgumentNode(Class<? extends Enum<?>> enumClass, CommandNode... children)
      Constructs a new node.
      Parameters:
      enumClass - An enum class to generate a list of valid strings of this node.
      children - Children of this node