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

ISequenceTask

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.sequence.task.ISequenceTask;

Description

A task in a com.blamejared.crafttweaker.api.util.sequence.Sequence.

Members

isComplete(actor as T, context as SequenceContext<T, U>) as bool
Checks if this task is complete.
script.zs
// ISequenceTask<T,U>.isComplete(actor as T, context as SequenceContext<T, U>) as bool;
myISequenceTask.isComplete(level, mySequenceContext);

Parameters:

actor Type: T - The actor that is being sequenced.
context Type: SequenceContext<T, U> - The context for the sequence.

Return Type: bool

tick(actor as T, context as SequenceContext<T, U>)
Ticks this task.

A check to isComplete should be done before ticking!.

script.zs
// ISequenceTask<T,U>.tick(actor as T, context as SequenceContext<T, U>);
myISequenceTask.tick(level, new crafttweaker.api.util.sequence.SequenceContext(sequence, new crafttweaker.api.data.MapData()));

Parameters:

actor Type: T - The actor that is being sequenced.
context Type: SequenceContext<T, U> - The context for the sequence.