MC重定向修改器

导入相关包

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.MCRedirectModifier;

Constructor #构造函数

No Description Provided

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

Casters

结果类型是否隐藏
stringtrue

方法

应用

Return Type: Collection<MCCommandSource>

ZenScript
Copy
MCRedirectModifier.apply(context as MCCommandContext) as Collection<MCCommandSource>
参数类型描述
上下文:MCCommandContextNo Description Provided

equals #等于

Return Type: boolean

ZenScript
Copy
MCRedirectModifier.equals(o as Object) as boolean
参数类型描述
oObjectNo Description Provided

hashCode

Return Type: int

ZenScript
Copy
MCRedirectModifier.hashCode() as int
myMCRedirectModifier.hashCode();

toString

Return Type: string

ZenScript
Copy
MCRedirectModifier.toString() as string
myMCRedirectModifier.toString();

运算符

EQUALS

ZenScript
Copy
myMCRedctModifier == o 为对象