JSPrismarine
Preparing search index...
@jsprismarine/brigadier
CommandContext
Class CommandContext<S>
Type Parameters
S
Index
Constructors
constructor
Methods
copy
For
equals
get
Argument
get
Child
get
Command
get
Input
get
Last
Child
get
Nodes
get
Range
get
Redirect
Modifier
get
Root
Node
get
Source
has
Nodes
is
Forked
Constructors
constructor
new
CommandContext
<
S
>
(
source
:
S
,
input
:
string
,
args
:
Map
<
String
,
ParsedArgument
<
S
,
any
>
>
,
command
:
null
|
Command
<
S
>
,
rootNode
:
null
|
CommandNode
<
S
>
,
nodes
:
null
|
ParsedCommandNode
<
S
>
[]
,
range
:
StringRange
,
child
:
null
|
CommandContext
<
S
>
,
modifier
:
null
|
RedirectModifier
<
S
>
,
forks
:
boolean
,
)
:
CommandContext
<
S
>
Type Parameters
S
Parameters
source
:
S
input
:
string
args
:
Map
<
String
,
ParsedArgument
<
S
,
any
>
>
command
:
null
|
Command
<
S
>
rootNode
:
null
|
CommandNode
<
S
>
nodes
:
null
|
ParsedCommandNode
<
S
>
[]
range
:
StringRange
child
:
null
|
CommandContext
<
S
>
modifier
:
null
|
RedirectModifier
<
S
>
forks
:
boolean
Returns
CommandContext
<
S
>
Methods
copy
For
copyFor
(
source
:
S
)
:
CommandContext
<
S
>
Parameters
source
:
S
Returns
CommandContext
<
S
>
equals
equals
(
o
?:
null
|
object
)
:
boolean
Parameters
o
:
null
|
object
= null
Returns
boolean
get
Argument
getArgument
(
name
:
string
,
clazz
?:
Function
)
:
any
Parameters
name
:
string
Optional
clazz
:
Function
Returns
any
get
Child
getChild
()
:
null
|
CommandContext
<
S
>
Returns
null
|
CommandContext
<
S
>
get
Command
getCommand
()
:
null
|
Command
<
S
>
Returns
null
|
Command
<
S
>
get
Input
getInput
()
:
string
Returns
string
get
Last
Child
getLastChild
()
:
null
|
CommandContext
<
S
>
Returns
null
|
CommandContext
<
S
>
get
Nodes
getNodes
()
:
ParsedCommandNode
<
S
>
[]
Returns
ParsedCommandNode
<
S
>
[]
get
Range
getRange
()
:
StringRange
Returns
StringRange
get
Redirect
Modifier
getRedirectModifier
()
:
null
|
RedirectModifier
<
S
>
Returns
null
|
RedirectModifier
<
S
>
get
Root
Node
getRootNode
()
:
CommandNode
<
S
>
Returns
CommandNode
<
S
>
get
Source
getSource
()
:
S
Returns
S
has
Nodes
hasNodes
()
:
boolean
Returns
boolean
is
Forked
isForked
()
:
boolean
Returns
boolean
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
copy
For
equals
get
Argument
get
Child
get
Command
get
Input
get
Last
Child
get
Nodes
get
Range
get
Redirect
Modifier
get
Root
Node
get
Source
has
Nodes
is
Forked
JSPrismarine
Loading...