CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
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 |
Represents a context for a suggestion, just encompassing a command node and where the completion starts.
<S> | the type of the command source |
com.mojang.brigadier.context.SuggestionContext< S >.SuggestionContext | ( | CommandNode< S > | parent, |
int | startPos | ||
) |
Creates a new SuggestionContext with the given command node and start position.
parent | the node that handles the completion |
startPos | the starting position where it should complete from |