MCSuggestionContext

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

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: boolean

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

Return Type: MCCommandNode

script.zs
// MCSuggestionContext.getParent() as MCCommandNode
myMCSuggestionContext.getParent();

Return Type: int

script.zs
// MCSuggestionContext.getStartPos() as int
myMCSuggestionContext.getStartPos();

Return Type: int

script.zs
// MCSuggestionContext.hashCode() as int
myMCSuggestionContext.hashCode();

Return Type: string

script.zs
// MCSuggestionContext.toString() as string
myMCSuggestionContext.toString();

Operators

script.zs
myMCSuggestionContext == o as Object