CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
com.mojang.brigadier.context.SuggestionContext< S > Class Template Reference

Represents a context for a suggestion, just encompassing a command node and where the completion starts. More...

Public Member Functions

 SuggestionContext (CommandNode< S > parent, int startPos)
 Creates a new SuggestionContext with the given command node and start position. More...
 

Public Attributes

final CommandNode< S > parent
 
final int startPos
 

Detailed Description

Represents a context for a suggestion, just encompassing a command node and where the completion starts.

Parameters
<S>the type of the command source

Constructor & Destructor Documentation

◆ SuggestionContext()

Creates a new SuggestionContext with the given command node and start position.

Parameters
parentthe node that handles the completion
startPosthe starting position where it should complete from