MCStringRange
Link to mcstringrange
导入类
Link to 导入类
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 Copyimport crafttweaker.api.commands.custom.MCStringRange;
Static Methods
Link to static-methods
Name: at
Return Type: MCStringRange
ZenScript CopyMCStringRange.at(pos as int) as MCStringRange
参数 | 类型 | 描述 |
---|---|---|
参数 点 | 类型 int | 描述 No Description Provided |
Name: between
Return Type: MCStringRange
ZenScript CopyMCStringRange.between(start as int, end as int) as MCStringRange
参数 | 类型 | 描述 |
---|---|---|
参数 开始 | 类型 int | 描述 No Description Provided |
参数 结束 | 类型 int | 描述 No Description Provided |
Name: encompassing
Return Type: MCStringRange
ZenScript CopyMCStringRange.encompassing(a as MCStringRange, b as MCStringRange) as MCStringRange
参数 | 类型 | 描述 |
---|---|---|
参数 a | 类型 MCStringRange | 描述 No Description Provided |
参数 b | 类型 MCStringRange | 描述 No Description Provided |
使用方式
Link to 使用方式
Name: equals
Return Type: boolean
ZenScript CopyMCStringRange.equals(o as Object) as boolean
参数 | 类型 | 描述 |
---|---|---|
参数 o | 类型 Object | 描述 No Description Provided |
Name: getEnd
Return Type: int
ZenScript Copy// MCStringRange.getEnd() as int
myMCStringRange.getEnd();
Name: getFrom
Return Type: string
ZenScript CopyMCStringRange.getFrom(reader as MCImmutableStringReader) as string
参数 | 类型 | 描述 |
---|---|---|
参数 reader | 类型 MCImmutableStringReader | 描述 No Description Provided |
Name: getFrom
Return Type: string
ZenScript CopyMCStringRange.getFrom(string as string) as string
参数 | 类型 | 描述 |
---|---|---|
参数 string | 类型 string | 描述 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();