MCSingleRirectModifier

导入相关包

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;

Constructor #构造函数

No Description Provided

ZenScript
Copy
new MCSingleRedirectModifier(fun as Function<MCCommandContext,MCCommandSource>) as MCSingleRedirectModifier
参数类型描述
有趣的Function<MCCommandContext,MCCommandSource>No Description Provided

Casters

结果类型是否隐藏
stringtrue

方法

apply

Return Type: MCCommandSource

ZenScript
Copy
MCSingleRedirectModifier.apply(context as MCCommandContext) as MCCommandSource
参数类型描述
上下文:MCCommandContextNo Description Provided
equals

Return Type: boolean

ZenScript
Copy
MCSingleRedirectModifier.equals(o as Object) as boolean
参数类型描述
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();

运算符

EQUALS
ZenScript
Copy
myMCSingleRedirectModifier == o 为对象