MCStringRange

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

Static Methods

Return Type: MCStringRange

script.zs
MCStringRange.at(pos as int) as MCStringRange
ParameterTypeDescription
Parameter
pos
Type
int
Description
No Description Provided

Return Type: MCStringRange

script.zs
MCStringRange.between(start as int, end as int) as MCStringRange
ParameterTypeDescription
Parameter
start
Type
int
Description
No Description Provided
Parameter
end
Type
int
Description
No Description Provided

Return Type: MCStringRange

script.zs
MCStringRange.encompassing(a as MCStringRange, b as MCStringRange) as MCStringRange
ParameterTypeDescription
Parameter
a
Type
MCStringRange
Description
No Description Provided
Parameter
b
Type
MCStringRange
Description
No Description Provided

Methods

Return Type: boolean

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

Return Type: int

script.zs
// MCStringRange.getEnd() as int
myMCStringRange.getEnd();

Return Type: string

script.zs
MCStringRange.getFrom(reader as MCImmutableStringReader) as string
ParameterTypeDescription
Parameter
reader
Type
MCImmutableStringReader
Description
No Description Provided

Return Type: string

script.zs
MCStringRange.getFrom(string as string) as string
ParameterTypeDescription
Parameter
string
Type
string
Description
No Description Provided

Return Type: int

script.zs
// MCStringRange.getLength() as int
myMCStringRange.getLength();

Return Type: int

script.zs
// MCStringRange.getStart() as int
myMCStringRange.getStart();

Return Type: int

script.zs
// MCStringRange.hashCode() as int
myMCStringRange.hashCode();

Return Type: boolean

script.zs
// MCStringRange.isEmpty() as boolean
myMCStringRange.isEmpty();

Return Type: string

script.zs
// MCStringRange.toString() as string
myMCStringRange.toString();