Proveedor de MCSuggestión

Importing the class

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;

Constructors

No Description Provided

ZenScript
Copy
new MCSuggestionProvider(fun as BiFunction<MCCommandContext,MCSuggestionsBuilder,MCSuggestions>) as MCSuggestionProvider
ParameterTypeDescription
diversiónBiFunction<MCCommandContext,MCSuggestionsBuilder,MCSuggestions>No Description Provided

Casters

Result typeIs Implicit
stringtrue

Methods

equals

Return Type: boolean

ZenScript
Copy
MCSuggestionProvider.equals(o as Object) as boolean
ParameterTypeDescription
oObjectNo Description Provided
getSuggestions

Return Type: MCSuggestions

ZenScript
Copy
MCSuggestionProvider.getSuggestions(context as MCCommandContext, builder as MCSuggestionsBuilder) as MCSuggestions
ParameterTypeDescription
contextoContexto MCCommandNo Description Provided
constructorConstructor de MCSuggestionsNo 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();

Operadores

EQUALS
ZenScript
Copy
myMCSuggestionProvider == o como objeto