Interface CommandTreeNode.EntitySelection
-
- All Superinterfaces:
CommandTreeNode<CommandTreeNode.EntitySelection>
,CommandTreeNode.Argument<CommandTreeNode.EntitySelection>
- Enclosing interface:
- CommandTreeNode<T extends CommandTreeNode<T>>
public static interface CommandTreeNode.EntitySelection extends CommandTreeNode.Argument<CommandTreeNode.EntitySelection>
ACommandTreeNode
that augments entity based parameters.
-
-
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.EntitySelection
playersOnly()
Indicates that only players can be selected.CommandTreeNode.EntitySelection
single()
Indicates that only one entity can be selected by this parameter.-
Methods inherited from interface org.spongepowered.api.command.registrar.tree.CommandTreeNode
child, child, child, completions, completions, customCompletions, executable, redirect, requires
-
-
-
-
Method Detail
-
playersOnly
CommandTreeNode.EntitySelection playersOnly()
Indicates that only players can be selected. If not called, all entities may selected by this element.- Returns:
- This, for chaining.
-
single
CommandTreeNode.EntitySelection single()
Indicates that only one entity can be selected by this parameter. If this is not called, this element will default to allowing the selection of multiple entities.- Returns:
- This, for chaining.
-
-