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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.command.registrar.tree.CommandTreeNode
CommandTreeNode.Amount, CommandTreeNode.Argument<T extends CommandTreeNode<T>>, CommandTreeNode.Basic, CommandTreeNode.EntitySelection, CommandTreeNode.NodeFactory, CommandTreeNode.Range<S extends Number>, CommandTreeNode.Root, CommandTreeNode.StringParser
-
Method Summary
Modifier and TypeMethodDescriptionSets the maximumCommandTreeNode.Range
acceptable for this parameter.Sets the minimumCommandTreeNode.Range
acceptable for this parameter.Methods inherited from interface org.spongepowered.api.command.registrar.tree.CommandTreeNode
child, child, child, completions, completions, customCompletions, executable, redirect, requires
-
Method Details
-
min
Sets the minimumCommandTreeNode.Range
acceptable for this parameter.- Parameters:
min
- The minimum, ornull
if there is no minimum- Returns:
- This, for chaining
-
max
Sets the maximumCommandTreeNode.Range
acceptable for this parameter.- Parameters:
max
- The maximum, ornull
if there is no maximum- Returns:
- This, for chaining
-