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.

import crafttweaker.api.commands.custom.MCRedirectModifier;

Constructor #构造函数

No Description Provided

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

Casters

结果类型是否隐藏
stringtrue

方法

应用

Return Type: Collection<MCCommandSource>

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

equals #等于

Return Type: boolean

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

hashCode

Return Type: int

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

toString

Return Type: string

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

运算符

EQUALS

myMCRedctModifier == o 为对象