CommandAPI 9.3.0
An API for the command UI introduced in Minecraft 1.13
com.mojang.brigadier.AmbiguityConsumer< S > Interface Template Reference

A consumer that is notified of found ambiguities in the command tree. More...

Public Member Functions

void ambiguous (final CommandNode< S > parent, final CommandNode< S > child, final CommandNode< S > sibling, final Collection< String > inputs)
 Invoked when ambiguities are detected. More...
 

Detailed Description

A consumer that is notified of found ambiguities in the command tree.

Parameters
<S>the command source
See also
CommandDispatcher::findAmbiguities

Member Function Documentation

◆ ambiguous()

void com.mojang.brigadier.AmbiguityConsumer< S >.ambiguous ( final CommandNode< S >  parent,
final CommandNode< S >  child,
final CommandNode< S >  sibling,
final Collection< String >  inputs 
)

Invoked when ambiguities are detected.

Parameters
parentthe parent command of the command that is ambiguous
childthe first command that is ambiguous
siblingthe second command that is ambiguous
inputsthe inputs for which they both matched and therefore were ambiguous