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
Copy
import crafttweaker.api.util.sequence.SequenceType;

Static Properties

Link to static-properties

НазваниеТипИмеет GetterИмеет SetterОписание
Название
CLIENT_THREAD_LEVEL
Тип
SequenceType
Имеет Getter
true
Имеет Setter
false
Описание
The type of the CLIENT_THREAD_LEVEL sequence which is only ticked on the server thread.
Название
SERVER_THREAD_LEVEL
Тип
SequenceType
Имеет Getter
true
Имеет Setter
false
Описание
The type of the SERVER_THREAD_LEVEL sequence which is only ticked on the server thread.

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();

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
Gets the name of the sequence type.