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.

import crafttweaker.api.commands.custom.MCSingleRedirectModifier;

Constructor #构造函数

No Description Provided

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

Casters

结果类型是否隐藏
stringtrue

方法

应用

Return Type: MCCommandSource

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

equals #等于

Return Type: boolean

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

hashCode

Return Type: int

MCSingleRedirectModifier.hashCode() as int
myMCSingleRedirectModifier.hashCode();

toString

Return Type: string

MCSingleRedirectModifier.toString() as string
myMCSingleRedirectModifier.toString();

运算符

EQUALS

myMCSingleRedirectModifier == o 为对象