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>>
ACommandTreeNode
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandTreeNode.Range<S>
max(@Nullable S max)
Sets the maximumCommandTreeNode.Range
acceptable for this parameter.CommandTreeNode.Range<S>
min(@Nullable S min)
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 Detail
-
min
CommandTreeNode.Range<S> min(@Nullable S min)
Sets the minimumCommandTreeNode.Range
acceptable for this parameter.- Parameters:
min
- The minimum, ornull
if there is no minimum- Returns:
- This, for chaining
-
max
CommandTreeNode.Range<S> max(@Nullable S max)
Sets the maximumCommandTreeNode.Range
acceptable for this parameter.- Parameters:
max
- The maximum, ornull
if there is no maximum- Returns:
- This, for chaining
-
-