MCLiteralCommandNode

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.

script.zs
import crafttweaker.api.commands.custom.MCLiteralCommandNode;

Extending MCCommandNode

MCLiteralCommandNode extends MCCommandNode. That means all methods available in MCCommandNode are also available in MCLiteralCommandNode

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: void

script.zs
MCLiteralCommandNode.addChild(node as MCCommandNode) as void
ParameterTypeDescription
Parameter
node
Type
MCCommandNode
Description
No Description Provided

Return Type: boolean

script.zs
MCLiteralCommandNode.canUse(source as MCCommandSource) as boolean
ParameterTypeDescription
Parameter
source
Type
MCCommandSource
Description
No Description Provided

Return Type: MCLiteralArgumentBuilder

script.zs
// MCLiteralCommandNode.createBuilder() as MCLiteralArgumentBuilder
myMCLiteralCommandNode.createBuilder();

Return Type: boolean

script.zs
MCLiteralCommandNode.equals(o as Object) as boolean
ParameterTypeDescription
Parameter
o
Type
Object
Description
No Description Provided

Return Type: void

script.zs
MCLiteralCommandNode.findAmbiguities(consumer as MCAmbiguityConsumer) as void
ParameterTypeDescription
Parameter
consumer
Type
MCAmbiguityConsumer
Description
No Description Provided

Return Type: MCCommandNode

script.zs
MCLiteralCommandNode.getChild(name as string) as MCCommandNode
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided

Return Type: Collection<MCCommandNode>

script.zs
// MCLiteralCommandNode.getChildren() as Collection<MCCommandNode>
myMCLiteralCommandNode.getChildren();

Return Type: MCCommand

script.zs
// MCLiteralCommandNode.getCommand() as MCCommand
myMCLiteralCommandNode.getCommand();

Return Type: Collection<string>

script.zs
// MCLiteralCommandNode.getExamples() as Collection<string>
myMCLiteralCommandNode.getExamples();

Return Type: string

script.zs
// MCLiteralCommandNode.getLiteral() as string
myMCLiteralCommandNode.getLiteral();

Return Type: string

script.zs
// MCLiteralCommandNode.getName() as string
myMCLiteralCommandNode.getName();

Return Type: MCCommandNode

script.zs
// MCLiteralCommandNode.getRedirect() as MCCommandNode
myMCLiteralCommandNode.getRedirect();

Return Type: MCRedirectModifier

script.zs
// MCLiteralCommandNode.getRedirectModifier() as MCRedirectModifier
myMCLiteralCommandNode.getRedirectModifier();

Return Type: Collection<MCCommandNode>

script.zs
MCLiteralCommandNode.getRelevantNodes(input as string) as Collection<MCCommandNode>
ParameterTypeDescription
Parameter
input
Type
string
Description
No Description Provided

Return Type: Predicate<MCCommandSource>

script.zs
// MCLiteralCommandNode.getRequirement() as Predicate<MCCommandSource>
myMCLiteralCommandNode.getRequirement();

Return Type: string

script.zs
// MCLiteralCommandNode.getUsageText() as string
myMCLiteralCommandNode.getUsageText();

Return Type: int

script.zs
// MCLiteralCommandNode.hashCode() as int
myMCLiteralCommandNode.hashCode();

Return Type: boolean

script.zs
// MCLiteralCommandNode.isFork() as boolean
myMCLiteralCommandNode.isFork();

Return Type: boolean

script.zs
MCLiteralCommandNode.isValidInput(input as string) as boolean
ParameterTypeDescription
Parameter
input
Type
string
Description
No Description Provided

Return Type: MCSuggestions

script.zs
MCLiteralCommandNode.listSuggestions(context as MCCommandContext, builder as MCSuggestionsBuilder) as MCSuggestions
ParameterTypeDescription
Parameter
context
Type
MCCommandContext
Description
No Description Provided
Parameter
builder
Type
MCSuggestionsBuilder
Description
No Description Provided

Return Type: void

script.zs
MCLiteralCommandNode.parse(input as string, contextBuilder as MCCommandContextBuilder) as void
ParameterTypeDescription
Parameter
input
Type
string
Description
No Description Provided
Parameter
contextBuilder
Type
MCCommandContextBuilder
Description
No Description Provided

Return Type: string

script.zs
// MCLiteralCommandNode.toString() as string
myMCLiteralCommandNode.toString();

Operators

script.zs
myMCLiteralCommandNode < o as MCCommandNode
script.zs
myMCLiteralCommandNode == o as Object