SequenceType
Link to sequencetype
Represents the type of 'actor' a Sequence<T,U> acts on and is used to ensure that Sequence<T,U>s are ticked correctly.
Some examples are a Level or a LivingEntity (which is not yet implemented).
Mods adding custom sequenceable actors (really anything that can be ticked) should make their own SequenceType and expose it to ZenScript.
导入类
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.util.sequence.SequenceType;
Static Properties
Link to static-properties
名称 | 类型 | 可获得 | 可设置 | 描述 |
---|---|---|---|---|
名称 CLIENT_THREAD_LEVEL | 类型 SequenceType | 可获得 true | 可设置 false | 描述 The type of the CLIENT_THREAD_LEVEL sequence which is only ticked on the server thread. |
名称 SERVER_THREAD_LEVEL | 类型 SequenceType | 可获得 true | 可设置 false | 描述 The type of the SERVER_THREAD_LEVEL sequence which is only ticked on the server thread. |
使用方式
Link to 使用方式
Name: name
Gets the name of the sequence type.
Returns: The name of the sequence type.
Return Type: string
ZenScript Copy// SequenceType.name() as string
SequenceType.SERVER_THREAD_LEVEL.name();
类型 | 可获得 | 可设置 | 描述 |
---|---|---|---|
类型 string | 可获得 true | 可设置 false | 描述 Gets the name of the sequence type. |