MCSuggestionProvider

导入相关包

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

Constructor #构造函数

No Description Provided

ZenScript
Copy
new MCSuggestionProvider(fun as BiFunction<MCCommandContext,MCSuggestionsBuilder,MCSuggestions>) as MCSuggestionProvider
参数类型描述
有趣的BiFunction<MCCommandContext,MCSuggestionsBuilder,MCSuggestions>No Description Provided

Casters

结果类型是否隐藏
stringtrue

方法

equals #等于

Return Type: boolean

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

获取建议

Return Type: MCSuggestions

ZenScript
Copy
MCSuggestionProvider.getSuggestions(context as MCCommandContext, builder as MCSuggestionsBuilder) as MCSuggestions
参数类型描述
上下文:MCCommandContextNo Description Provided
生成器MCSuggestionsBuilderNo Description Provided

hashCode

Return Type: int

ZenScript
Copy
MCSuggestionProvider.hashCode() as int
myMCSuggestionProvider.hashCode();

toString

Return Type: string

ZenScript
Copy
MCSuggestionProvider.toString() as string
myMCSuggestionProvider.toString();

运算符

EQUALS

ZenScript
Copy
myMCSuggestionProvider == o 为对象