Interface CommandTreeNodeType<T extends CommandTreeNode<T>>
@CatalogedBy(CommandTreeNodeTypes.class) public interface CommandTreeNodeType<T extends CommandTreeNode<T>> extends DefaultedRegistryValue, ResourceKeyedRepresents the client-side behavior of a
CommandTreeNode, for use with
command registrarsthat require such nodes to specify client side behaviour (for example,
These types affect the following behaviours of client-side command handling:
- The allowed form of an argument - i.e. how the client decides an argument will be accepted or not.
- The available tab-completions for a given argument (which may either be wholly client-side, or require a request to the server).
Some of these types may have an alternative
completion providerthat may be used in conjunction with this node type that provides alternative completions.
Note that these types do not contain any parsing logic themselves, they are purely used to inform the client of the behavior it should exhibit when displaying and completing command strings.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key