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.
import crafttweaker.api.sequence.task.ISequenceTask;Description
A task in acom.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
new SleepTask(20).isComplete(level, mySequenceContext);Parameters:
actor: T Type: T
- The actor that is being sequenced.
Return Type:
bool
tick(actor as T, context as SequenceContext<T, U>)
Ticks this task.
script.zs
A check to isComplete should be done before ticking!.
new SleepTask(20).tick(level, new crafttweaker.api.util.sequence.SequenceContext(sequence, new crafttweaker.api.data.MapData()));Parameters:
actor: T Type: T
- The actor that is being sequenced.