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.

import crafttweaker.api.commands.custom.MCSuggestionProvider;

Constructor #构造函数

No Description Provided

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

Casters

结果类型是否隐藏
stringtrue

方法

equals #等于

Return Type: boolean

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

获取建议

Return Type: MCSuggestions

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

hashCode

Return Type: int

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

toString

Return Type: string

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

运算符

EQUALS

myMCSuggestionProvider == o 为对象