MCSingleRedirectModifier

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
Copy
import crafttweaker.api.commands.custom.MCSingleRedirectModifier;

Constructors

No Description Provided

ZenScript
Copy
new MCSingleRedirectModifier(fun as Function<MCCommandContext,MCCommandSource>) as MCSingleRedirectModifier
ParameterTypeDescription
funFunction<MCCommandContext,MCCommandSource>No Description Provided

Casters

Result typeIs Implicit
stringtrue

Methods

apply

Return Type: MCCommandSource

ZenScript
Copy
MCSingleRedirectModifier.apply(context as MCCommandContext) as MCCommandSource
ParameterTypeDescription
contextMCCommandContextNo Description Provided
equals

Return Type: boolean

ZenScript
Copy
MCSingleRedirectModifier.equals(o as Object) as boolean
ParameterTypeDescription
oObjectNo Description Provided
hashCode

Return Type: int

ZenScript
Copy
// MCSingleRedirectModifier.hashCode() as int

myMCSingleRedirectModifier.hashCode();
toString

Return Type: string

ZenScript
Copy
// MCSingleRedirectModifier.toString() as string

myMCSingleRedirectModifier.toString();

Operators

EQUALS
ZenScript
Copy
myMCSingleRedirectModifier == o as Object