MCRequiredArgumentBuilder
Link to mcrequiredargumentbuilder
Diese Klasse importieren
Link to diese-klasse-importieren
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.MCRequiredArgumentBuilder;
Extending MCArgumentBuilder
Link to extending-mcargumentbuilder
MCRequiredArgumentBuilder extends MCArgumentBuilder. That means all methods available in MCArgumentBuilder are also available in MCRequiredArgumentBuilder
Casters
Link to casters
Result type | Is Implicit |
---|---|
Result type string | Is Implicit true |
Methoden
Link to methoden
Name: build
Return Type: MCArgumentCommandNode
ZenScript Copy// MCRequiredArgumentBuilder.build() as MCArgumentCommandNode
myMCRequiredArgumentBuilder.build();
Name: equals
Return Type: boolean
ZenScript CopyMCRequiredArgumentBuilder.equals(o as Object) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter o | Type Object | Beschreibung No Description Provided |
Name: executes
Return Type: MCRequiredArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.executes(command as MCCommand) as MCRequiredArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter command | Type MCCommand | Beschreibung No Description Provided |
Name: fork
Return Type: MCRequiredArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCRequiredArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter target | Type MCCommandNode | Beschreibung No Description Provided |
Parameter modifier | Type MCRedirectModifizierer | Beschreibung No Description Provided |
Name: forward
Return Type: MCRequiredArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCRequiredArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter target | Type MCCommandNode | Beschreibung No Description Provided |
Parameter modifier | Type MCRedirectModifizierer | Beschreibung No Description Provided |
Parameter fork | Type boolean | Beschreibung No Description Provided |
Name: getArguments
Return Type: Collection<MCCommandNode>
ZenScript Copy// MCRequiredArgumentBuilder.getArguments() as Collection<MCCommandNode>
myMCRequiredArgumentBuilder.getArguments();
Name: getCommand
Return Type: MCCommand
ZenScript Copy// MCRequiredArgumentBuilder.getCommand() as MCCommand
myMCRequiredArgumentBuilder.getCommand();
Name: getName
Return Type: string
ZenScript Copy// MCRequiredArgumentBuilder.getName() as string
myMCRequiredArgumentBuilder.getName();
Name: getRedirect
Return Type: MCCommandNode
ZenScript Copy// MCRequiredArgumentBuilder.getRedirect() as MCCommandNode
myMCRequiredArgumentBuilder.getRedirect();
Name: getRedirectModifier
Return Type: MCRedirectModifier
ZenScript Copy// MCRequiredArgumentBuilder.getRedirectModifier() as MCRedirectModifier
myMCRequiredArgumentBuilder.getRedirectModifier();
Name: getRequirement
Return Type: Predicate<MCCommandSource>
ZenScript Copy// MCRequiredArgumentBuilder.getRequirement() as Predicate<MCCommandSource>
myMCRequiredArgumentBuilder.getRequirement();
Name: getSuggestionsProvider
Return Type: MCSuggestionProvider
ZenScript Copy// MCRequiredArgumentBuilder.getSuggestionsProvider() as MCSuggestionProvider
myMCRequiredArgumentBuilder.getSuggestionsProvider();
Name: hashCode
Return Type: int
ZenScript Copy// MCRequiredArgumentBuilder.hashCode() as int
myMCRequiredArgumentBuilder.hashCode();
Name: isFork
Return Type: boolean
ZenScript Copy// MCRequiredArgumentBuilder.isFork() as boolean
myMCRequiredArgumentBuilder.isFork();
Name: redirect
Return Type: MCRequiredArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.redirect(target as MCCommandNode) as MCRequiredArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter target | Type MCCommandNode | Beschreibung No Description Provided |
Name: redirect
Return Type: MCRequiredArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCRequiredArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter target | Type MCCommandNode | Beschreibung No Description Provided |
Parameter modifier | Type MCSingleRedirectModifizierer | Beschreibung No Description Provided |
Name: requires
Return Type: MCRequiredArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCRequiredArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter voraussetzung | Type Predicate<MCCommandSource> | Beschreibung No Description Provided |
Name: suggests
Return Type: MCRequiredArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.suggests(provider as MCSuggestionProvider) as MCRequiredArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter provider | Type MCSuggestionProvider | Beschreibung No Description Provided |
Name: then
Return Type: MCArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.then(argument as MCArgumentBuilder) as MCArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter argument | Type MCArgumentBuilder | Beschreibung No Description Provided |
Name: then
Return Type: MCRequiredArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.then(argument as MCCommandNode) as MCRequiredArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter argument | Type MCCommandNode | Beschreibung No Description Provided |
Name: then
Return Type: MCRequiredArgumentBuilder
ZenScript CopyMCRequiredArgumentBuilder.then(argument as MCRequiredArgumentBuilder) as MCRequiredArgumentBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter argument | Type MCRequiredArgumentBuilder | Beschreibung No Description Provided |
Name: toString
Return Type: string
ZenScript Copy// MCRequiredArgumentBuilder.toString() as string
myMCRequiredArgumentBuilder.toString();
Operatoren
Link to operatoren
Name: EQUALS
ZenScript CopymyMCRequiredArgumentBuilder == o as Object