MCArgumentBuilder
Link to mcargumentbuilder
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.commands.custom.MCArgumentBuilder;
Casters
Link to casters
반환 자료형 | 암묵적 |
---|---|
반환 자료형 string | 암묵적 true |
Methods
Link to methods
Name: build
Return Type: MCCommandNode
ZenScript Copy// MCArgumentBuilder.build() as MCCommandNode
myMCArgumentBuilder.build();
Name: equals
Return Type: boolean
ZenScript CopyMCArgumentBuilder.equals(o as Object) as boolean
Parameter | Type | Description |
---|---|---|
Parameter o | Type Object | Description No Description Provided |
Name: executes
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.executes(command as MCCommand) as MCArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter command | Type MCCommand | Description No Description Provided |
Name: fork
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter target | Type MCCommandNode | Description No Description Provided |
Parameter modifier | Type MCRedirectModifier | Description No Description Provided |
Name: forward
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter target | Type MCCommandNode | Description No Description Provided |
Parameter modifier | Type MCRedirectModifier | Description No Description Provided |
Parameter fork | Type boolean | Description No Description Provided |
Name: getArguments
Return Type: Collection<MCCommandNode>
ZenScript Copy// MCArgumentBuilder.getArguments() as Collection<MCCommandNode>
myMCArgumentBuilder.getArguments();
Name: getCommand
Return Type: MCCommand
ZenScript Copy// MCArgumentBuilder.getCommand() as MCCommand
myMCArgumentBuilder.getCommand();
Name: getRedirect
Return Type: MCCommandNode
ZenScript Copy// MCArgumentBuilder.getRedirect() as MCCommandNode
myMCArgumentBuilder.getRedirect();
Name: getRedirectModifier
Return Type: MCRedirectModifier
ZenScript Copy// MCArgumentBuilder.getRedirectModifier() as MCRedirectModifier
myMCArgumentBuilder.getRedirectModifier();
Name: getRequirement
Return Type: Predicate<MCCommandSource>
ZenScript Copy// MCArgumentBuilder.getRequirement() as Predicate<MCCommandSource>
myMCArgumentBuilder.getRequirement();
Name: hashCode
Return Type: int
ZenScript Copy// MCArgumentBuilder.hashCode() as int
myMCArgumentBuilder.hashCode();
Name: isFork
Return Type: boolean
ZenScript Copy// MCArgumentBuilder.isFork() as boolean
myMCArgumentBuilder.isFork();
Name: redirect
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.redirect(target as MCCommandNode) as MCArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter target | Type MCCommandNode | Description No Description Provided |
Name: redirect
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter target | Type MCCommandNode | Description No Description Provided |
Parameter modifier | Type MCSingleRedirectModifier | Description No Description Provided |
Name: requires
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter requirement | Type Predicate<MCCommandSource> | Description No Description Provided |
Name: then
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.then(argument as MCArgumentBuilder) as MCArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter argument | Type MCArgumentBuilder | Description No Description Provided |
Name: then
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.then(argument as MCCommandNode) as MCArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter argument | Type MCCommandNode | Description No Description Provided |
Name: toString
Return Type: string
ZenScript Copy// MCArgumentBuilder.toString() as string
myMCArgumentBuilder.toString();
연산자
Link to 연산자
Name: EQUALS
ZenScript CopymyMCArgumentBuilder == o as Object