Importare la Classe

Link to importare-la-classe

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

Name: at

Return Type: MCStringRange

ZenScript
Copy
MCStringRange.at(pos as int) as MCStringRange
ParametroTipoDescrizione
Parametro
pos
Tipo
int
Descrizione
No Description Provided

Name: between

Return Type: MCStringRange

ZenScript
Copy
MCStringRange.between(start as int, end as int) as MCStringRange
ParametroTipoDescrizione
Parametro
inizio
Tipo
int
Descrizione
No Description Provided
Parametro
fine
Tipo
int
Descrizione
No Description Provided

Name: encompassing

Return Type: MCStringRange

ZenScript
Copy
MCStringRange.encompassing(a as MCStringRange, b as MCStringRange) as MCStringRange
ParametroTipoDescrizione
Parametro
a
Tipo
MCStringRange
Descrizione
No Description Provided
Parametro
b
Tipo
MCStringRange
Descrizione
No Description Provided

Name: equals

Return Type: boolean

ZenScript
Copy
MCStringRange.equals(o as Object) as boolean
ParametroTipoDescrizione
Parametro
o
Tipo
Object
Descrizione
No Description Provided

Name: getEnd

Return Type: int

ZenScript
Copy
// MCStringRange.getEnd() as int

myMCStringRange.getEnd();

Name: getFrom

Return Type: string

ZenScript
Copy
MCStringRange.getFrom(reader as MCImmutableStringReader) as string
ParametroTipoDescrizione
Parametro
reader
Tipo
MCImmutableStringReader
Descrizione
No Description Provided

Name: getFrom

Return Type: string

ZenScript
Copy
MCStringRange.getFrom(string as string) as string
ParametroTipoDescrizione
Parametro
string
Tipo
string
Descrizione
No Description Provided

Name: getLength

Return Type: int

ZenScript
Copy
// MCStringRange.getLength() as int

myMCStringRange.getLength();

Name: getStart

Return Type: int

ZenScript
Copy
// MCStringRange.getStart() as int

myMCStringRange.getStart();

Name: hashCode

Return Type: int

ZenScript
Copy
// MCStringRange.hashCode() as int

myMCStringRange.hashCode();

Name: isEmpty

Return Type: boolean

ZenScript
Copy
// MCStringRange.isEmpty() as boolean

myMCStringRange.isEmpty();

Name: toString

Return Type: string

ZenScript
Copy
// MCStringRange.toString() as string

myMCStringRange.toString();