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
Casters
方法
应用
Return Type: Collection<MCCommandSource>
MCRedirectModifier.apply(context as MCCommandContext) as Collection<MCCommandSource>
equals #等于
Return Type: boolean
MCRedirectModifier.equals(o as Object) as boolean
参数 | 类型 | 描述 |
---|
o | Object | No 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 为对象