Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

SequenceType

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.util.sequence.SequenceType;

Description

Represents the type of 'actor' a Sequence acts on and is used to ensure that Sequences are ticked correctly.

Some examples are a net.minecraft.world.level.Level or a net.minecraft.world.entity.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.

Members

Field
The type of the CLIENT_THREAD_LEVEL sequence which is only ticked on the server thread.
script.zs
// SequenceType.CLIENT_THREAD_LEVEL as SequenceType
SequenceType.CLIENT_THREAD_LEVEL

Return Type: SequenceType

Getter
Gets the name of the sequence type.
script.zs
// SequenceType.name as string
mySequenceType.name

Return Type: string

name() as string
Gets the name of the sequence type.

Returns: The name of the sequence type.

script.zs
// SequenceType.name() as string;
mySequenceType.name();

Return Type: string

Field
The type of the SERVER_THREAD_LEVEL sequence which is only ticked on the server thread.
script.zs
// SequenceType.SERVER_THREAD_LEVEL as SequenceType
SequenceType.SERVER_THREAD_LEVEL

Return Type: SequenceType