Interface CommandTreeNode.Range<S extends Number>

All Superinterfaces:
CommandTreeNode<CommandTreeNode.Range<S>>, CommandTreeNode.Argument<CommandTreeNode.Range<S>>
Enclosing interface:
CommandTreeNode<T extends CommandTreeNode<T>>

public static interface CommandTreeNode.Range<S extends Number> extends CommandTreeNode.Argument<CommandTreeNode.Range<S>>
A CommandTreeNode that allows for a min-max range to be set.
  • Method Details

    • min

      CommandTreeNode.Range<S> min(@Nullable S min)
      Sets the minimum S acceptable for this parameter.
      Parameters:
      min - The minimum, or null if there is no minimum
      Returns:
      This, for chaining
    • max

      CommandTreeNode.Range<S> max(@Nullable S max)
      Sets the maximum S acceptable for this parameter.
      Parameters:
      max - The maximum, or null if there is no maximum
      Returns:
      This, for chaining