ISequenceTask<T : Object, U : Object>

Link to isequencetaskt--object-u--object

A task in a Sequence<T,U>.

Импорт класса

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

Name: isComplete

Checks if this task is complete.

Return Type: boolean

ZenScript
Copy
ISequenceTask.isComplete(actor as T, context as SequenceContext<T,U>) as boolean
ПараметрТипОписание
Параметр
actor
Тип
T
Описание
The actor that is being sequenced.
Параметр
контекст
Тип
SequenceContext<T,U>
Описание
The context for the sequence.

Name: tick

Ticks this task.

A check to isComplete should be done before ticking!.

ZenScript
Copy
// ISequenceTask.tick(actor as T, context as SequenceContext<T,U>)

new SleepTask(20).tick(level, new crafttweaker.api.util.sequence.SequenceContext(sequence, new crafttweaker.api.data.MapData()));
ПараметрТипОписание
Параметр
actor
Тип
T
Описание
The actor that is being sequenced.
Параметр
контекст
Тип
SequenceContext<T,U>
Описание
The context for the sequence.