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.
import crafttweaker.api.commands.custom.MCSuggestion;
Casters
Result type | Is Implicit |
---|---|
Result type string | Is Implicit true |
Methods
Return Type: string
MCSuggestion.apply(input as string) as string
Parameter | Type | Description |
---|---|---|
Parameter input | Type string | Description No Description Provided |
Return Type: int
MCSuggestion.compareTo(o as MCSuggestion) as int
Parameter | Type | Description |
---|---|---|
Parameter o | Type MCSuggestion | Description No Description Provided |
Return Type: int
MCSuggestion.compareToIgnoreCase(b as MCSuggestion) as int
Parameter | Type | Description |
---|---|---|
Parameter b | Type MCSuggestion | Description No Description Provided |
Return Type: boolean
MCSuggestion.equals(o as Object) as boolean
Parameter | Type | Description |
---|---|---|
Parameter o | Type Object | Description No Description Provided |
Return Type: MCSuggestion
MCSuggestion.expandWith(command as string, range as MCStringRange) as MCSuggestion
Parameter | Type | Description |
---|---|---|
Parameter command | Type string | Description No Description Provided |
Parameter range | Type MCStringRange | Description No Description Provided |
Return Type: MCStringRange
// MCSuggestion.getRange() as MCStringRange
myMCSuggestion.getRange();
Return Type: string
// MCSuggestion.getText() as string
myMCSuggestion.getText();
Return Type: string
// MCSuggestion.getTooltip() as string
myMCSuggestion.getTooltip();
Return Type: int
// MCSuggestion.hashCode() as int
myMCSuggestion.hashCode();
Return Type: string
// MCSuggestion.toString() as string
myMCSuggestion.toString();
Operators
myMCSuggestion == o as Object