JSPrismarine
Preparing search index...
@jsprismarine/brigadier
CommandContextBuilder
Class CommandContextBuilder<S>
Type Parameters
S
Index
Constructors
constructor
Methods
build
copy
find
Suggestion
Context
get
Arguments
get
Child
get
Command
get
Dispatcher
get
Last
Child
get
Nodes
get
Range
get
Root
Node
get
Source
with
Argument
with
Child
with
Command
with
Node
with
Source
Constructors
constructor
new
CommandContextBuilder
<
S
>
(
dispatcher
:
CommandDispatcher
<
S
>
,
source
:
S
,
rootNode
:
null
|
CommandNode
<
S
>
,
start
:
number
,
)
:
CommandContextBuilder
<
S
>
Type Parameters
S
Parameters
dispatcher
:
CommandDispatcher
<
S
>
source
:
S
rootNode
:
null
|
CommandNode
<
S
>
start
:
number
Returns
CommandContextBuilder
<
S
>
Methods
build
build
(
input
:
string
)
:
CommandContext
<
S
>
Parameters
input
:
string
Returns
CommandContext
<
S
>
copy
copy
()
:
CommandContextBuilder
<
S
>
Returns
CommandContextBuilder
<
S
>
find
Suggestion
Context
findSuggestionContext
(
cursor
:
number
)
:
SuggestionsContext
<
S
>
Parameters
cursor
:
number
Returns
SuggestionsContext
<
S
>
get
Arguments
getArguments
()
:
Map
<
String
,
ParsedArgument
<
S
,
any
>
>
Returns
Map
<
String
,
ParsedArgument
<
S
,
any
>
>
get
Child
getChild
()
:
null
|
CommandContextBuilder
<
S
>
Returns
null
|
CommandContextBuilder
<
S
>
get
Command
getCommand
()
:
Command
<
S
>
Returns
Command
<
S
>
get
Dispatcher
getDispatcher
()
:
CommandDispatcher
<
S
>
Returns
CommandDispatcher
<
S
>
get
Last
Child
getLastChild
()
:
null
|
CommandContextBuilder
<
S
>
Returns
null
|
CommandContextBuilder
<
S
>
get
Nodes
getNodes
()
:
ParsedCommandNode
<
S
>
[]
Returns
ParsedCommandNode
<
S
>
[]
get
Range
getRange
()
:
StringRange
Returns
StringRange
get
Root
Node
getRootNode
()
:
null
|
CommandNode
<
S
>
Returns
null
|
CommandNode
<
S
>
get
Source
getSource
()
:
S
Returns
S
with
Argument
withArgument
(
name
:
String
,
argument
:
ParsedArgument
<
S
,
any
>
,
)
:
CommandContextBuilder
<
S
>
Parameters
name
:
String
argument
:
ParsedArgument
<
S
,
any
>
Returns
CommandContextBuilder
<
S
>
with
Child
withChild
(
child
:
CommandContextBuilder
<
S
>
)
:
CommandContextBuilder
<
S
>
Parameters
child
:
CommandContextBuilder
<
S
>
Returns
CommandContextBuilder
<
S
>
with
Command
withCommand
(
command
:
Command
<
S
>
)
:
CommandContextBuilder
<
S
>
Parameters
command
:
Command
<
S
>
Returns
CommandContextBuilder
<
S
>
with
Node
withNode
(
node
:
CommandNode
<
S
>
,
range
:
StringRange
)
:
CommandContextBuilder
<
S
>
Parameters
node
:
CommandNode
<
S
>
range
:
StringRange
Returns
CommandContextBuilder
<
S
>
with
Source
withSource
(
source
:
S
)
:
CommandContextBuilder
<
S
>
Parameters
source
:
S
Returns
CommandContextBuilder
<
S
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
build
copy
find
Suggestion
Context
get
Arguments
get
Child
get
Command
get
Dispatcher
get
Last
Child
get
Nodes
get
Range
get
Root
Node
get
Source
with
Argument
with
Child
with
Command
with
Node
with
Source
JSPrismarine
Loading...