MCSuggestion

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.

script.zs
import crafttweaker.api.commands.custom.MCSuggestion;

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: string

script.zs
MCSuggestion.apply(input as string) as string
ParameterTypeDescription
Parameter
input
Type
string
Description
No Description Provided

Return Type: int

script.zs
MCSuggestion.compareTo(o as MCSuggestion) as int
ParameterTypeDescription
Parameter
o
Type
MCSuggestion
Description
No Description Provided

Return Type: int

script.zs
MCSuggestion.compareToIgnoreCase(b as MCSuggestion) as int
ParameterTypeDescription
Parameter
b
Type
MCSuggestion
Description
No Description Provided

Return Type: boolean

script.zs
MCSuggestion.equals(o as Object) as boolean
ParameterTypeDescription
Parameter
o
Type
Object
Description
No Description Provided

Return Type: MCSuggestion

script.zs
MCSuggestion.expandWith(command as string, range as MCStringRange) as MCSuggestion
ParameterTypeDescription
Parameter
command
Type
string
Description
No Description Provided
Parameter
range
Type
MCStringRange
Description
No Description Provided

Return Type: MCStringRange

script.zs
// MCSuggestion.getRange() as MCStringRange
myMCSuggestion.getRange();

Return Type: string

script.zs
// MCSuggestion.getText() as string
myMCSuggestion.getText();

Return Type: string

script.zs
// MCSuggestion.getTooltip() as string
myMCSuggestion.getTooltip();

Return Type: int

script.zs
// MCSuggestion.hashCode() as int
myMCSuggestion.hashCode();

Return Type: string

script.zs
// MCSuggestion.toString() as string
myMCSuggestion.toString();

Operators

script.zs
myMCSuggestion == o as Object